thanks for your reply !<br>At first ,I use " apt-get install libvirt-bin " to install the libvirt ,the version is 0.8.3 ,and "virsh nodedev-list" works well .<br>but I need the version 0.9.0. So I complied the libvirt use source code as follows:<br>
#./configure --prefix=/usr --libdir=/usr/lib64  --localstatedir=/var --sysconfdir=/etc<br>#make<br>#make install<br>can you tell me how to complie the libvirt with udev and hal ?<br><br>one machine:<br>qinguan@Optiplex-780:~$ dpkg -l | grep udev<br>
ii  libgudev-1.0-0                       164-3                             GObject-based wrapper library for libudev<br>ii  libudev0                             164-3                             libudev shared library<br>
ii  system-config-printer-udev           1.2.3-3                           Utilities to detect and configure printers automatically<br>ii  udev                                 164-3                             /dev/ and hotplug management daemon<br>
qinguan@Optiplex-780:~$ dpkg -l | grep hal<br>ii  libhal-storage1                      0.5.14-3                          Hardware Abstraction Layer - shared library for storage devices<br>ii  libhal1                              0.5.14-3                          Hardware Abstraction Layer - shared library<br>
qinguan@Optiplex-780:~$ <br><br>another machine:<br>root@shahe26:~# dpkg -l | grep udev<br>ii  libudev0                            164-3                            libudev shared library<br>ii  udev                                164-3                            /dev/ and hotplug management daemon<br>
root@shahe26:~# dpkg -l | grep hal<br>| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend<br>root@shahe26:~# <br><br>the problem appears in both of two machines above.<br><br>best regards,<br>qinguan<br>
<br><div class="gmail_quote">2011/5/9 Osier Yang <span dir="ltr"><<a href="mailto:jyang@redhat.com">jyang@redhat.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
于 2011年05月09日 16:02, guan qin 写道:<div><div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I meet a problem when I use the command "virsh nodedev-dumpxml<br>
pci_0000_00_19_0",it shows as follows:<br>
<br>
root@shahe26:~# virsh nodedev-list<br>
error: Failed to count node devices<br>
error: this function is not supported by the connection driver:<br>
virNodeNumOfDevices<br>
<br>
root@shahe26:~# virsh nodedev-dumpxml pci_0000_00_19_0<br>
error: Could not find matching device 'pci_0000_00_19_0'<br>
error: this function is not supported by the connection driver:<br>
virNodeDeviceLookupByName<br>
<br>
root@shahe26:~# virsh -version<br>
0.9.0<br>
root@shahe26:~# virsh net-list<br>
Name                 State      Autostart<br>
-----------------------------------------<br>
default              active     yes<br>
root@shahe26:~# virsh list<br>
  Id Name                 State<br>
----------------------------------<br>
root@shahe26:~#<br>
<br>
I find that only the command "virsh nodedev-? ***" can't work . How can<br>
I solve this problem ? thanks.<br>
<br>
best regards,<br>
qinguan<br>
<br>
</blockquote>
<br></div></div>
Looks like your libvirt is compiled without "with-udev" and<br>
"with-hal", you need to install the required devel pkgs, and<br>
re-compile.<br>
<br>
Regards<br>
Osier<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
--<br>
libvir-list mailing list<br>
<a href="mailto:libvir-list@redhat.com" target="_blank">libvir-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/libvir-list" target="_blank">https://www.redhat.com/mailman/listinfo/libvir-list</a><br>
</blockquote>
<br>
</blockquote></div><br>