• Arnaud's links
  • Home
  • RSS Feed
  • Tag cloud
  • Login
all links
  • linux - Determine which guest is running on XEN: HVM or PV guest - Server Fault

    A quick note, there are actually 3 modes, not two when it comes to the drivers in use:

    HVM: unmodified kernel and drivers using software emulated devices
    PV-HVM: unmodified kernel with paravirtualized (Xen specific) disk and network drivers
    PV: modified kernel and drivers
    

    For a Xen guest/DomU you can do a very basic uname and lsmod with a grep to list the modules in use:

    uname -a
    lsmod | grep xen

    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 the lsmod command to confirm it. If you have output from the grep on lsmod 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.

    August 21, 2015 - permalink - http://serverfault.com/questions/511923/determine-which-guest-is-running-on-xen-hvm-or-pv-guest
    xen