So it’s here-KVM&XEN for 64-bit ARMs: http://www.phoronix.com/scan.php?page=news_item&px=MTQwMDY
And life will be much easier :)
So it’s here-KVM&XEN for 64-bit ARMs: http://www.phoronix.com/scan.php?page=news_item&px=MTQwMDY
And life will be much easier :)
Some time ago while using XEN we had our own scripts we used during shutdown / start host machine. Those scripts were responsible for auto – saving and auto – resuming VMs. In KVM we no longer use our own scripts – we use libvirt-guests service instead. In RHEL/CentOS You’ll find init script for this service in /etc/rc.d/init.d/libvirt-guests. If You want to do some changes in this service’s configuration do that in /etc/sysconfig/libvirt-guests instead of init script. If You installed KVM env using defaults You’ll be interested only in following params:
1 2 3 4 5 |
ON_BOOT=start ON_SHUTDOWN=suspend #START_DELAY=0 #PARALLEL_SHUTDOWN=0 #SHUTDOWN_TIMEOUT=300 |
Using above config Your VMs would be auto – paused while system enters runlevel 0/6 (so shutdown or reboot). When host comes back (“back” means runlevels in which libvirt-guests is configured) Your VMs will be resumed.
Order of stopping / starting VMs is tricky – I found this discussion interesting: http://www.redhat.com/archives/libvir-list/2011-April/msg00819.html
Last time I promised, that I’ll write how to connect to VM via serial console. So – this time very shortly and without any explanations:
On the guest OS:
1 |
echo ttyS0 >> /etc/securetty |
Now add following param to kernel params in /etc/grub.conf:
1 |
console=ttyS0 |
And the last thing:
1 |
echo "S0:12345:respawn:/sbin/agetty ttyS0 115200" >> /etc/inittab && init q |
Now restart the guest OS and You’re good to connct to VM via:
virsh console guest_id
If You feel like interested in what happened above – please ask questions in comments – I’ll explain :)