I can reproduce the issue on Questing. The libvirt default network is
not started at runtime right after installation, but the autostart
symlink is properly installed. A restart of libvirtd.service does not
help, a reboot of the VM OTOH makes the virbr0 come up.
$ uvt-kvm create --password=ubuntu q2 arch=amd64 label=daily release=questing
$ uvt-kvm ssh q2
sudo add-apt-repository ppa:slyon/lp-2107448-libvirt-pre-depends
sudo apt install uvtool-libvirt
[...]
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group
default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host noprefixroute
valid_lft forever preferred_lft forever
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP
group default qlen 1000
link/ether 52:54:00:66:33:e6 brd ff:ff:ff:ff:ff:ff
altname enx5254006633e6
inet 192.168.122.218/24 metric 100 brd 192.168.122.255 scope global dynamic
enp1s0
valid_lft 3538sec preferred_lft 3538sec
inet6 fe80::5054:ff:fe66:33e6/64 scope link proto kernel_ll
valid_lft forever preferred_lft forever
sudo virsh net-list --all
Name State Autostart Persistent
----------------------------------------------
default inactive yes yes
ll /etc/libvirt/qemu/networks/autostart/
total 8
drwxr-xr-x 2 root root 4096 Jun 11 09:00 ./
drwxr-xr-x 3 root root 4096 Jun 11 09:00 ../
lrwxrwxrwx 1 root root 38 Jun 11 09:00 default.xml ->
/etc/libvirt/qemu/networks/default.xml
udo virsh net-dumpxml default
<network>
<name>default</name>
<uuid>cd41685c-8c0c-4fc4-b58c-f29548ab2e20</uuid>
<forward mode='nat'/>
<bridge name='virbr0' stp='on' delay='0'/>
<mac address='52:54:00:a9:b9:0f'/>
<ip address='192.168.123.1' netmask='255.255.255.0'>
<dhcp>
<range start='192.168.123.2' end='192.168.123.254'/>
</dhcp>
</ip>
</network>
sudo systemctl restart libvirtd.service
sudo virsh net-list --all
Name State Autostart Persistent
----------------------------------------------
default inactive yes yes
sudo reboot
[...]
$ uvt-kvm ssh q2
sudo virsh net-list --all
Name State Autostart Persistent
--------------------------------------------
default active yes yes
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group
default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host noprefixroute
valid_lft forever preferred_lft forever
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP
group default qlen 1000
link/ether 52:54:00:66:33:e6 brd ff:ff:ff:ff:ff:ff
altname enx5254006633e6
inet 192.168.122.218/24 metric 100 brd 192.168.122.255 scope global dynamic
enp1s0
valid_lft 3582sec preferred_lft 3582sec
inet6 fe80::5054:ff:fe66:33e6/64 scope link proto kernel_ll
valid_lft forever preferred_lft forever
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state
DOWN group default qlen 1000
link/ether 52:54:00:a9:b9:0f brd ff:ff:ff:ff:ff:ff
inet 192.168.123.1/24 brd 192.168.123.255 scope global virbr0
valid_lft forever preferred_lft forever
It seems like only the first start of libvirtd.service (after a boot)
triggers the autostart of the "default" network.
** Changed in: libvirt (Ubuntu)
Assignee: (unassigned) => Lukas Märdian (slyon)
** Changed in: libvirt (Ubuntu)
Status: New => In Progress
** Tags added: server-todo
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2093864
Title:
default network no more configured in 10.10
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/2093864/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs