[Pkg-libvirt-maintainers] Bug#543970: Bug#543970: libvirt-bin: net-create does not save new network
Filip Van Raemdonck
mechanix at debian.org
Fri Aug 28 16:39:57 UTC 2009
Hi Guido,
On Fri, Aug 28, 2009 at 04:24:08AM +0200, Guido Günther wrote:
> On Thu, Aug 27, 2009 at 10:15:16PM +0200, Filip Van Raemdonck wrote:
> >
> > When running "virsh -c qemu:///system net-create definition.xml", a new
> > virtual network is defined as expected, but the definition of it is not
> > saved into the /etc/libvirt/qemu/networks directory.
> > As a result, a number of things do not work properly, such as marking the
> > new network for autostart.
>
> I can't reproduce this on 0.4.6-10 or 0.7.0. Please attache the network
> xml and the output of:
> virsh net-dumpxml <network-name>
> after defining the network.
I've been able to reproduce this on a RHEL5.3 system with the RHEL5.4
virtualization beta packages installed; I'm positive that this bug exists,
is upstream, and is reproducable.
Test sequence on the lenny system I reported from:
mechanix at jotunn:~$ find /etc/libvirt/qemu/networks/ ! -type d
/etc/libvirt/qemu/networks/autostart/sysfs.ovirt.xml
/etc/libvirt/qemu/networks/autostart/sysfs.vlan.xml
/etc/libvirt/qemu/networks/sysfs.ovirt.xml
/etc/libvirt/qemu/networks/sysfs.vlan.xml
mechanix at jotunn:~$ virsh -c qemu:///system net-list
Name State Autostart
-----------------------------------------
sysfs.ovirt active yes
sysfs.vlan active yes
mechanix at jotunn:~$ cat /tmp/foo
<network>
<name>blah</name>
<forward mode='nat'/>
<bridge name='virbr2' stp='on' forwardDelay='0' />
<ip address='10.40.0.1' netmask='255.255.254.0'>
<dhcp>
<range start='10.40.1.2' end='10.40.1.253' />
</dhcp>
</ip>
</network>
mechanix at jotunn:~$ virsh -c qemu:///system net-create /tmp/foo
Network blah created from /tmp/foo
mechanix at jotunn:~$ virsh -c qemu:///system net-list
Name State Autostart
-----------------------------------------
blah active no
sysfs.ovirt active yes
sysfs.vlan active yes
mechanix at jotunn:~$ virsh -c qemu:///system net-dumpxml blah
<network>
<name>blah</name>
<uuid>36bec76f-b5ae-948c-4cfd-3fabd83bcf96</uuid>
<forward mode='nat'/>
<bridge name='virbr2' stp='on' forwardDelay='0' />
<ip address='10.40.0.1' netmask='255.255.254.0'>
<dhcp>
<range start='10.40.1.2' end='10.40.1.253' />
</dhcp>
</ip>
</network>
mechanix at jotunn:~$ find /etc/libvirt/qemu/networks/ ! -type d
/etc/libvirt/qemu/networks/autostart/sysfs.ovirt.xml
/etc/libvirt/qemu/networks/autostart/sysfs.vlan.xml
/etc/libvirt/qemu/networks/sysfs.ovirt.xml
/etc/libvirt/qemu/networks/sysfs.vlan.xml
mechanix at jotunn:~$ virsh -c qemu:///system net-autostart blah
libvir: QEMU error : internal error Failed to create symlink '(null)' to '(null)': Bad address
error: failed to mark network blah as autostarted
mechanix at jotunn:~$ virsh -c qemu:///system net-edit blah
Network blah XML configuration edited.
mechanix at jotunn:~$ find /etc/libvirt/qemu/networks/ ! -type d
/etc/libvirt/qemu/networks/autostart/sysfs.ovirt.xml
/etc/libvirt/qemu/networks/autostart/sysfs.vlan.xml
/etc/libvirt/qemu/networks/blah.xml
/etc/libvirt/qemu/networks/sysfs.ovirt.xml
/etc/libvirt/qemu/networks/sysfs.vlan.xml
Kind regards,
Filip
--
My weblog: http://blog.sysfs.net/
More information about the Pkg-libvirt-maintainers
mailing list