Domains created and managed via libvirt/virsh fail to autostart
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Expired
|
Medium
|
Unassigned |
Bug Description
1. Release of Ubuntu: 14.04 LTS ( 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux)
2. Version of package
sudo apt-cache policy libvirt-bin
libvirt-bin:
Installiert: 1.2.2-0ubuntu13.1.1
Installations
Versionstabelle:
*** 1.2.2-0ubuntu13.1.1 0
500 http://
100 /var/lib/
1.
500 http://
3. What I expected to happen:
Domains (guest machines) that are marked `autostart' should be running after the host was booted.
4. What happened instead:
auto starting domains (guest machines) fails when booting the host OS (Ubuntu Server 14.04 LTS)
Libvirtd is running.
There are symlinks in /etc/libvirt/
All domains are using a bridge device (br0) that I specified myself, and using static IP addresses.
I removed the default network created by libvirt (virtual network virbr0 for NAT slows down things
and only recommended for desktop installations).
The bridge device works properly, I can log in my virtual machines via ssh and I use the bridge as
well to communicate to internal network.
sudo brctl show
bridge name bridge id STP enabled interfaces
br0 8000.6cf049051c2f no eth0, vnet0
cat /etc/network/
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet manual
auto br0
iface br0 inet static
address 192.168.2.4
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
gateway 192.168.2.1
bridge_stp off
Changed in libvirt (Ubuntu): | |
importance: | Undecided → High |
summary: |
- Domains created and managed via libvirt/virsh do not autostart + Domains created and managed via libvirt/virsh fail to autostart |
Changed in libvirt (Ubuntu): | |
status: | Incomplete → New |
Changed in libvirt (Ubuntu): | |
status: | Incomplete → New |
Changed in libvirt (Ubuntu): | |
status: | New → Incomplete |
I couldn't trivially reproduce this on Trusty, using cloud image 20140724 on amd64.
Steps I followed (from memory):
sudo apt-get update ms-libvirt sync release=trusty arch=amd64
sudo apt-get install -y libvirt-bin uvtool
newgrp libvirtd
uvt-simplestrea
uvt-kvm create foo
virsh autostart foo
sudo reboot
After reboot, "virsh list" shows "foo" as running.
(uvtool/uvt-* is just a wrapper to set up a libvirt domain quickly; it shouldn't affect this test)
I wonder if there is some interaction with your bridge setup here, but /etc/init/ libvirt- bin.conf only starts the libvirt-bin job on entering runlevel 2. Is the bridge guaranteed set up by this point?
Dropping this to Medium, as it only appears to affect a non-default case.