qemu fails when starting with more than one virtual NIC
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qemu-kvm (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
I just upgraded my VM-host from 14.04 (trusty) to 16.04 (xenial) with qemu version 1:2.5+dfsg-
libvirtd[6335]: internal error: process exited while connecting to monitor: 2016-07-
Experimenting using the qemu command line logged by libvirt, I determined that removing all NICs but one would let me start VMs. I created this minimal example to replicate the behaviour:
$ sudo /usr/bin/kvm -nographic -machine pc-0.11,
qemu-
Removing one NIC makes this setup work just fine:
$ sudo /usr/bin/kvm -nographic -machine pc-0.11,
[abort using 'ctrl-a', followed by 'x']
To verify that this was not due to the upgrade process, I have also booted a Live CD of the Desktop version of Xenial, and reproduced the error there successfully.
To try and mitigate the issue, I did download the source for the qemu package and did a dirty workaround by replacing the exit(1) below the error message with return, but the real issue seems to be that qemu tries to re-add the fw_cfgs for each NIC defined on the command line.
Thanks,
/Jonas
Update:
The issue seems tied to the pc-0.11 machine type. Using the latest available pc-* (pc-0.15) does not show the same issue. Perhaps this would warrent a wontfix, but at least the issue is now indexable by google :)