I'm working with a Xen host which is installed XenServer from Citrix by someone. He already installed a lot of CentOS 5.2 guests on the host. I wonder how to check those guests to know they are PV types or HVM types?
Linux – Determine which guest is running on XEN: HVM or PV guest
centos5linuxxenxenserver
Best Answer
A quick note, there are actually 3 modes, not two when it comes to the drivers in use:
For a Xen guest/DomU you can do a very basic
uname
andlsmod
with a grep to list the modules in use:If
uname -a
lists a kernel with the string "xen" in it, then you have a modified kernel and it's likely a PV guest, and you will see output from thelsmod
command to confirm it. If you have output from the grep onlsmod
but no sign of a modified kernel then you are PV-HVM. Without any sign of either, it's a straight HVM.Note: Generally you can do more with VMs that have the PV tools installed, so that can be quite an obvious pointer, however you can fake the presence of the PV tools to allow suspend/resume etc. so you cannot rely on that in general.