OK,I recompile with  "#./configure --prefix=/usr --libdir=/usr/lib64 --localstatedir=/var 
--sysconfdir=/etc --with-hal=yes --with-udev=yes --with-polkit=yes",now I can use the command "virsh nodedev-list".<br><br>thank you very much!<br><br>best regards,<br>qinguan<br><br><div class="gmail_quote">
在 2011年5月9日 下午8:04,guan qin <span dir="ltr"><<a href="mailto:qinguan0619@gmail.com">qinguan0619@gmail.com</a>></span>写道:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I do as you said ,and find one machine can work well,but the other is still can't work.<br>I check the Configuration summary ,find that compare to the machine can't work,<br>the machine working well has an item: "polkit: /usr/bin/pkcheck (version 1)" <br>

what's the polkit ? can I configure the libvirt with "--with-polkit=yes" ?<br><br>the machine works well:<br>Configuration summary:<br>configure: =====================<br>configure: <br>configure: Drivers<br>

configure: <br>configure:      Xen: yes<br>configure:     QEMU: yes<br>configure:      UML: yes<br>configure:   OpenVZ: yes<br>configure:   VMware: yes<br>configure:     VBox: yes<br>configure:   XenAPI: no<br>configure: xenlight: no<br>

configure:      LXC: yes<br>configure:     PHYP: no<br>configure:      ESX: no<br>configure:     Test: yes<br>configure:   Remote: yes<br>configure:  Network: yes<br>configure: Libvirtd: yes<br>configure:    netcf: no<br>

configure:  macvtap: yes<br>configure: virtport: no<br>configure: <br>configure: Storage Drivers<br>configure: <br>configure:      Dir: yes<br>configure:       FS: yes<br>configure:    NetFS: yes<br>configure:      LVM: yes<br>

configure:    iSCSI: no<br>configure:     SCSI: yes<br>configure:    mpath: yes<br>configure:     Disk: no<br>configure: <br>configure: Security Drivers<br>configure: <br>configure:  SELinux: yes<br>configure: AppArmor: no<br>

configure: <br>configure: Driver Loadable Modules<br>configure: <br>configure:   dlopen: no<br>configure: <br>configure: Libraries<br>configure: <br>configure:   libxml: -I/usr/include/libxml2   -lxml2  <br>configure:  libcurl: no<br>

configure:  libssh2: no<br>configure:   gnutls:   -lgnutls   -lgcrypt<br>configure:     sasl: no<br>configure:     yajl: no<br>configure:    avahi: no<br>configure:   polkit: /usr/bin/pkcheck (version 1)<br>configure:    audit: no<br>

configure:  selinux:  -lselinux<br>configure: apparmor: no<br>configure:  numactl: no<br>configure:    capng: no<br>configure:      xen:   -lxenstore<br>configure:   xenapi: no<br>configure: xenlight: no<br>configure:      hal: -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -lhal -ldbus-1 -lpthread -lrt  <br>

configure:     udev:   -ludev     -lpciaccess  <br>configure:    netcf: no<br>configure:     pcap: no<br>configure:       nl:   -lnl  <br>configure:    mscom: no<br>configure:      xdr: <br>configure: <br>configure: Test suite<br>

configure: <br>configure:    Coverage: no<br>configure:   Alloc OOM: no<br>configure: <br>configure: Miscellaneous<br>configure: <br>configure:         Debug: yes<br>configure:      Warnings: maximum<br>configure:      Readline: no<br>

configure:        Python: no<br>configure:        DTrace: no<br>configure:   XML Catalog: /etc/xml/catalog<br>configure: <br>configure: Privileges<br>configure: <br>configure:       QEMU: root:root<br>configure: <br>root@Optiplex-780:/home/qinguan/libvirt-0.9.0# virsh nodedev-dumpxml pci_0000_00_19_0<br>

<device><br>  <name>pci_0000_00_19_0</name><br>  <parent>computer</parent><br>  <driver><br>    <name>e1000e</name><br>  </driver><br>  <capability type='pci'><br>

    <domain>0</domain><br>    <bus>0</bus><br>    <slot>25</slot><br>    <function>0</function><br>    <product id='0x10de'>82567LM-3 Gigabit Network Connection</product><br>

    <vendor id='0x8086'>Intel Corporation</vendor><br>  </capability><br></device><br>root@Optiplex-780:/home/qinguan/libvirt-0.9.0# <br><br>the machine still can't work:<br>configure: Configuration summary<br>

configure: =====================<br>configure: <br>configure: Drivers<br>configure: <br>configure:      Xen: no<br>configure:     QEMU: yes<br>configure:      UML: yes<br>configure:   OpenVZ: yes<br>configure:   VMware: yes<br>

configure:     VBox: yes<br>configure:   XenAPI: no<br>configure: xenlight: no<br>configure:      LXC: yes<br>configure:     PHYP: no<br>configure:      ESX: no<br>configure:     Test: yes<br>configure:   Remote: yes<br>
configure:  Network: yes<br>
configure: Libvirtd: yes<br>configure:    netcf: no<br>configure:  macvtap: yes<br>configure: virtport: no<br>configure: <br>configure: Storage Drivers<br>configure: <br>configure:      Dir: yes<br>configure:       FS: yes<br>

configure:    NetFS: yes<br>configure:      LVM: yes<br>configure:    iSCSI: no<br>configure:     SCSI: yes<br>configure:    mpath: yes<br>configure:     Disk: no<br>configure: <br>configure: Security Drivers<br>configure: <br>

configure:  SELinux: yes<br>configure: AppArmor: no<br>configure: <br>configure: Driver Loadable Modules<br>configure: <br>configure:   dlopen: no<br>configure: <br>configure: Libraries<br>configure: <br>configure:   libxml: -I/usr/include/libxml2   -lxml2  <br>

configure:  libcurl: no<br>configure:  libssh2: no<br>configure:   gnutls:   -lgnutls   -lgcrypt<br>configure:     sasl: no<br>configure:     yajl: no<br>configure:    avahi: no<br>configure:   polkit: no<br>configure:    audit: no<br>

configure:  selinux:  -lselinux<br>configure: apparmor: no<br>configure:  numactl: no<br>configure:    capng: no<br>configure:      xen: no<br>configure:   xenapi: no<br>configure: xenlight: no<br>configure:      hal: -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -lhal -ldbus-1 -lpthread -lrt  <br>

configure:     udev:   -ludev     -lpciaccess  <br>configure:    netcf: no<br>configure:     pcap: no<br>configure:       nl:   -lnl  <br>configure:    mscom: no<br>configure:      xdr: <br>configure: <br>configure: Test suite<br>

configure: <br>configure:    Coverage: no<br>configure:   Alloc OOM: no<br>configure: <br>configure: Miscellaneous<br>configure: <br>configure:         Debug: yes<br>configure:      Warnings: maximum<br>configure:      Readline: no<br>

configure:        Python: no<br>configure:        DTrace: no<br>configure:   XML Catalog: /etc/xml/catalog<br>configure: <br>configure: Privileges<br>configure: <br>configure:       QEMU: root:root<br>configure: <br>root@shahe26:~/libvirt-0.9.0# virsh<br>

Welcome to virsh, the virtualization interactive terminal.<br><br>Type:  'help' for help with commands<br>       'quit' to quit<br><br>virsh # ^C<br>root@shahe26:~/libvirt-0.9.0# virsh nodedev-dumpxml pci_0000_01_00_1<br>

error: Could not find matching device 'pci_0000_01_00_1'<div class="im"><br>error: this function is not supported by the connection driver: virNodeDeviceLookupByName<br><br></div>root@shahe26:~/libvirt-0.9.0# virsh nodedev-list<div class="im">
<br>error: Failed to count node devices<br>
error: this function is not supported by the connection driver: virNodeNumOfDevices<br><br></div>root@shahe26:~/libvirt-0.9.0# dpkg -l | grep udev<br>ii  libudev-dev                         164-3                            libudev development files<div class="im">
<br>
ii  libudev0                            164-3                            libudev shared library<br>ii  udev                                164-3                            /dev/ and hotplug management daemon<br><br><br><br>
</div>
best regards,<br>qinguan<br><br><br><div class="gmail_quote"><div class="im">2011/5/9 Osier Yang <span dir="ltr"><<a href="mailto:jyang@redhat.com" target="_blank">jyang@redhat.com</a>></span><br></div><div><div></div>
<div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
于 2011年05月09日 17:43, guan qin 写道:<div><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
thanks for your reply !<br>
At first ,I use " apt-get install libvirt-bin " to install the libvirt<br>
,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<br>
as follows:<br>
#./configure --prefix=/usr --libdir=/usr/lib64 --localstatedir=/var<br>
--sysconfdir=/etc<br>
#make<br>
#make install<br>
can you tell me how to complie the libvirt with udev and hal ?<br>
</blockquote>
<br></div>
I'm not sure how ubuntu do pkgs, on FC14, devel pkg is seperated.<br>
# rpm -q hal-devel<br>
hal-devel-0.5.14-5.fc14.1.x86_64<br>
<br>
Anyway, you can get prompt if don't have the required pkgs by:<div><br>
<br>
#./configure --prefix=/usr --libdir=/usr/lib64 --localstatedir=/var<br></div>
--sysconfdir=/etc --with-hal=yes --with-udev=yes<br>
<br>
Regards<br><font color="#888888">
Osier<br>
</font></blockquote></div></div></div><br>
</blockquote></div><br>