lbvirt cannot start VM due to missing kvm-spice in /etc/vmbuilder/libvirt/libvirtxml.tmpl
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vm-builder (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Using Ubuntu 12.04.2 Precise on amd64 with kvm_intel, libvirt and vmbuilder.
Building VMs with vmbuilder using, e.g:
$ sudo vmbuilder kvm ubuntu --suite precise --flavour virtual --arch i386 -o --libvirt qemu:///system --hostname vm-ubuntu-
followed by:
$ virsh -d 0 -c qemu:///system start vm-ubuntu-
results in a failure:
error: Failed to start domain vm-ubuntu-
error: internal error Process exited while reading console log output: Supported machines are:
pc Standard PC (alias of pc-1.0)
pc-1.0 Standard PC (default)
pc-0.14 Standard PC
pc-0.13 Standard PC
pc-0.12 Standard PC
pc-0.11 Standard PC, qemu 0.11
pc-0.10 Standard PC, qemu 0.10
isapc ISA-only PC
I eventually tracked this down to the libvirt domain definition using
<emulator>
instead of
<emulator>
editing that line using:
$ virsh -d 0 -c qemu:///system edit vm-ubuntu-
allows the VM to start correctly.
The problem stems from the libvirt template installed by vmbuilder at "/etc/vmbuilder
A simple fix is:
$ sudo sed -i 's,\(/usr/
Changed in vm-builder (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Medium |