Mailinglist Archive: opensuse-bugs (4206 mails)

< Previous Next >
[Bug 731437] KVM virt-manager NAT virtual network "default" disappeared on upgrade

https://bugzilla.novell.com/show_bug.cgi?id=731437

https://bugzilla.novell.com/show_bug.cgi?id=731437#c3


--- Comment #3 from James Fehlig <jfehlig@xxxxxxxx> 2011-12-02 04:13:23 UTC ---
Very strange. The postinstall script for libvirt in 12.1 has

# rpm -q libvirt --scripts
..
# Install the default network if one doesn't exist
if test ! -f /etc/libvirt/qemu/networks/default.xml
then
UUID=`/usr/bin/uuidgen`
sed -e "s,</name>,</name>\n <uuid>$UUID</uuid>," \
< /usr/share/libvirt/networks/default.xml \
> /etc/libvirt/qemu/networks/default.xml
fi
..

A package update should leave the file untouched if it exists.

As a workaround, you can copy the one from /usr/share/libvirt/networks and
restart libvirtd. Or, just "import" your own the default network, e.g.

# virsh net-define /path/to/my/default.xml

The definition will be placed in /etc/libvirt/qemu/networks/<netowrk-name>.xml,
with a link in /etc/libvirt/qemu/networks/autostart after

# virsh net-autostart <network-name>

I suppose you haven't tried to reproduce? I'll see if I can find time to test
an 11.4 -> 12.1 upgrade.

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >