[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libvirt-users
Subject:    [libvirt-users] =?utf-8?q?Possible_to_change_=27machine_type=27_a?= =?utf-8?q?ttribute_while_vm_is_r
From:       Andre Goree <andre () drenet ! net>
Date:       2015-02-09 20:24:36
Message-ID: 27a0166e5a46eea9db5e5141f2378d45 () drenet ! net
[Download RAW message or body]

Hello.  I'd like to determine if it's possible to change the 'machine 
type' attribute while a vm is running.

For example, I have:

   <os>
     <type arch='x86_64' machine='pc-i440fx-trusty'>hvm</type>
     <boot dev='hd'/>
   </os>

I'd like to change that to "machine='pc-i440fx-1.7'" due to an error[1] 
I'm seeing while migrated similar images to another host.

The only way I've been able to change the machine is by first shutting 
down the vm, making the change, then starting the vm back up.  I'd like 
to avoid that if at all possible.

I did find the tool "libvirt-migrate-qemu-machinetype", but it doesn't 
seem to do what I think it's intended to do -- i.e., it does NOT change 
the machine type, even after reboot.  Perhaps I'm just using it wrong?  
I performed the following:

root:~# libvirt-migrate-qemu-machinetype -t pc-i440fx-1.7 <domain>
Waiting up to 10 seconds for libvirtd to start...
Waiting up to 30 seconds for libvirtd to respond to requests...
Checking domains defined in /etc/libvirt/qemu...
Migration complete

But the machine type remains the same after the above command has been 
run.

Thanks in advance for any insight you can provide.


[1] - error: internal error: process exited while connecting to monitor: 
Supported machines are:

-- 
Andre Goree
-=-=-=-=-=-
Email     - andre at drenet.net
Website   - http://www.drenet.net
PGP key   - http://www.drenet.net/pubkey.txt
-=-=-=-=-=-

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic