<br><font size=2 face="sans-serif">Hi,</font>
<br>
<br><font size=2 face="sans-serif">I'm a libvirt user, I encountered a
problem when I use the libvirt java bindings, could you please help me
take a look£¿ Thanks in advance! Any suggestions from anyone of you will
be very appreciated.</font>
<br>
<br><font size=2 face="sans-serif">Here is my scenario:</font>
<br>
<br><font size=2 face="sans-serif">Remote access machine A is a RHEL 5.4
workstation with the command "virsh version" results:</font>
<br><font size=2 face="sans-serif">Compiled against library: libvir 0.8.1</font>
<br><font size=2 face="sans-serif">Using library: libvir 0.8.1</font>
<br><font size=2 face="sans-serif">Using API: Xen 3.0.1</font>
<br><font size=2 face="sans-serif">Running hypervisor: Xen 3.1.0</font>
<br>
<br><font size=2 face="sans-serif">Hypervisor machine B is a Fedora Core
14 Linux workstation with the command "virsh version" results:</font>
<br><font size=2 face="sans-serif">Compiled against library: libvir 0.8.3</font>
<br><font size=2 face="sans-serif">Using library: libvir 0.8.3</font>
<br><font size=2 face="sans-serif">Using API: QEMU 0.8.3</font>
<br><font size=2 face="sans-serif">Running hypervisor: QEMU 0.13.0</font>
<br>
<br><font size=2 face="sans-serif">I finished the code using libvirt java
bindings and run it on machine A, try to remote connect to the hypervisor
on machine B. It can be connected succussfully, but when the code calls
the function of conn.listDefinedStoragePools() or conn.listStoragePools,
the libvirt on machine B will get the errors below:</font>
<br>
<br><font size=2 face="sans-serif">04:19:10.467: error : phypStorageOpen:3884
: invalid argument in phypStorageOpen: unsupported flags (0x1)</font>
<br><font size=2 face="sans-serif">04:19:11.354: warning : qemudParsePCIDeviceStrs:1422
: Unexpected exit status '1', qemu probably failed</font>
<br><font size=2 face="sans-serif">04:19:12.128: error : virLibConnError:448
: </font><font size=2 color=red face="sans-serif">this function is not
supported by the connection driver: virConnectNumOfStoragePools</font>
<br>
<br><font size=2 face="sans-serif">With the errors above, my code can't
run the functions of conn.listDefinedStoragePools() or conn.listStoragePools
successfully. </font>
<br>
<br><font size=2 face="sans-serif">Could you please give me some suggestions?
  </font>
<br>
<br><font size=2 face="sans-serif">By the way, I try to use the libvirt
java bindings 0.3.2 and 0.4.6, both of them have this problem.</font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
Best Regards,<br>
<br>
Fengdan Liu, Casey<br>
<br>
AdTech, Tivoli China Development, <br>
China Software Development Lab, IBM Greater China Group<br>
Phone: 86-10-82453004<br>
Email: liufengd@cn.ibm.com<br>
Addr: No.28 Building, Zhong Guan Cun Software Park, No. 8 Dong Bei Wang
West Road, ShangDi, Haidian District, Beijing 100193, P.R.China</font>