0

I have a vm with the machine type = "pc-012". For a reason linked with virtio, I changed the machine type for "pc-1.1" with virsh edit domain command.

When I reboot the host, I find again "pc-012" !?

How to change definitively the parameter ?

Thank you by advance

Bertaud
  • 133
  • 1
  • 8
  • Did you shut down the VM? – Michael Hampton Nov 19 '15 at 18:00
  • yes I did: I stopped the vm, edited the xml, reboot the machine. Easy to reproduce – Bertaud Nov 19 '15 at 22:04
  • If it's Debian, who knows? Try another distribution. – Michael Hampton Nov 19 '15 at 22:25
  • Debian or libvirt ! do you know where libvirt find the machine type ? – Bertaud Nov 20 '15 at 12:15
  • I probably made a big error just now: I stopped libvirtd, delete the /var/cache/libvirt/qemu/capabilities folder and restarted libvirtd. Now I cannot start my virtual machines, I cannot access to the xml files by virsh edit. Do you know how to "regenerate" the qemu capabilities or start libvirtd without the cache ? – Bertaud Nov 20 '15 at 14:02
  • forget my last message: the /var folder was full !!!!! – Bertaud Nov 20 '15 at 17:46
  • My vm was created under Wheezy and now I am under Jessie. I suspect that is the reason. If I create a new vm, the machine type is not anymore pc-0.12 but pc-i440fx-2.1 and if I reboot the machine then the vm file keeps this value ! Therefore, the question becomes how to adapt an "old vm file" ? – Bertaud Nov 20 '15 at 17:52
  • Finally the work around is to create a clone of the vm,then swap the clone and the original. – Bertaud Nov 21 '15 at 00:34

0 Answers0