Re: [Q]Will virConnectNumOfNetworks and virConnectNumOfDefinedNetworks be supported by Xen ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Daniel P. Berrange wrote:
On Thu, Jul 05, 2007 at 11:41:07AM +0100, Richard W.M. Jones wrote:
Daniel Veillard wrote:
On Thu, Jul 05, 2007 at 02:21:02PM +0900, S.Sakamoto wrote:
Hi, Rich


Because log is pressed, I want to the breakage is revised if possible...
If it will be revised, when is it ?
Based on Dan's message:

 https://www.redhat.com/archives/libvir-list/2007-July/msg00012.html

and the ChangeLog
Actually it's not working at the moment unless you specify a qemu:///... URI. For example, with default / Xen URI:

# ./mlvirsh net-list
libvir: error : this function is not supported by the hypervisor: virConnectNumOfNetworks mlvirsh: libvirt: VIR_ERR_NO_SUPPORT: VIR_FROM_NONE: this function is not supported by the hypervisor: virConnectNumOfNetworks

A dumb typo - I had  transcribed  'flags' and 'rflags' - its fixed now.

The second issue was that the conversion of 'NULL' and 'xen' into a valid
'xen:///' URI was being done in the xen_unified.c driver. It needs to be
done in the libvirt.c open function - the network drivers need a valid
URI to parse. So I simply moved the 4 lines of code doing that conversion
So with current checked in code:


[root@celery libvirt]# ./src/virsh --connect xen:/// net-list --all
Name State Autostart ----------------------------------------- default active yes
[root@celery libvirt]# ./src/virsh --connect xen net-list --all
Name State Autostart ----------------------------------------- default active yes
[root@celery libvirt]# ./src/virsh  net-list --all
Name State Autostart ----------------------------------------- default active yes

Confirmed here also.

Rich.

--
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in
England and Wales under Company Registration No. 03798903

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]