Tag Archives: kvm - Page 2

XEN and KVM on 64-bit ARMs

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 :)

KVM – libvirt-guests – autostart / shutdown / pause

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:

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

Using serial console to access virtual machines (Centos, KVM)

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:

 

Now add following param to kernel params in /etc/grub.conf:

And the last thing:

 

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 :)