Re: how to change machine type in virt-manager

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Nov 27, 2016 at 02:12:14PM +0100, Marc Haber wrote:
Hi,

according to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=845964
and my own experiences, the combo of qemu, libvirt and virt-manager
that is currently in Debian unstable causes guests to hang during
reboot if the machine type is set to some older value like pc-0.14.
pc-i440fx-2.7 works fine.


Well, I know you are looking for a workaround, but fixing the bug would
be the best thing to do in the long run.

Doing the replace manually on one of my xmls showed that a simple
replace is unproblematic, but is there a more "cleaner" way between
editing the XML and totally recreating the machine entry with
virt-manager?

Working XML:
 <os>
   <type arch='x86_64' machine='pc-i440fx-2.7'>hvm</type>

Non-working XML:
 <os>
   <type arch='x86_64' machine='pc-0.14'>hvm</type>

Any hints will be appreciated.


I haven't found anything in virt-manager.  Ths would be perfect job for
virt-xml, but it looks like support for os type was not added there
either (or I just missed it).  It'd be nice to have that added from
someone.  It should be trivial, too.

Ugly workaround (so you don't have to do it manually) would be:

 virsh dumpxml $domain | \
   xmlstarlet ed -u '/domain/os/type/@machine' -v pc-i440fx-2.7 | \
   virsh define /dev/stdin


Greetings
Marc

--
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany    |  lose things."    Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list

Attachment: signature.asc
Description: Digital signature

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list

[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux