I setup a local case to test:
Xenial sys
Create Guest
Make it "old" e.g. vivid type
Upgrade to Yakkety
(Could as well just add an old type in Y, but for the sake of reproducing the 
most ususal case)
Try to start "old" guest

Error out of the Box:
$virsh start old-guest-type
error: Failed to start domain old-guest-type
error: internal error: process exited while connecting to monitor: 
2016-11-02T13:43:11.676198Z qemu-system-x86_64: -enable-kvm: unsupported 
machine type
Use -machine help to list supported machines

The same message is shown in graphical libvirt exploiters like virt-manager.
That is good, as it means we can likely fix all libvirt consuming tools in one 
place.

That message itself is from qemu - so it can as well become part of the
type changing delta.

I created an experimental fix and tested it in a local KVM.
$ virsh start wrong-guest-type
It now behaves as befor on "wrong types", but reports what the failing type was.
error: Failed to start domain wrong-guest-type
error: internal error: process exited while connecting to monitor: 
2016-11-02T15:04:48.396884Z qemu-system-x86_64: -enable-kvm: unsupported 
machine type 'pc-i440fx-blubber'
Use -machine help to list supported machines

On unsupported distro specific types it now hints at the case and solutions.
$ virsh start old-guest-type
error: Failed to start domain old-guest-type
error: internal error: process exited while connecting to monitor: 
2016-11-02T15:04:53.521081Z qemu-system-x86_64: -enable-kvm: unsupported 
machine type 'pc-i440fx-vivid'
Use -machine help to list supported machines
The type is too old and out of support now
Please study https://wiki.ubuntu.com/QemuKVMMigration#Upgrade_machine_type how 
toupgrade machine types

As intended it even works on virt-manager and such.

I provided a ppa with the same at 
https://launchpad.net/~paelzer/+archive/ubuntu/bug-1637936-qemu
Could someone other than me please check if that would fulfill the need?


** Changed in: serverguide
     Assignee: (unassigned) => ChristianEhrhardt (paelzer)

** Changed in: qemu (Ubuntu)
     Assignee: (unassigned) => ChristianEhrhardt (paelzer)

** Changed in: qemu (Ubuntu)
       Status: Confirmed => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1637936

Title:
  better upgrading machine types

To manage notifications about this bug go to:
https://bugs.launchpad.net/serverguide/+bug/1637936/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to