Xen Project Q&A Forum: First Line Help for Simple Questions

This is your chance to ask questions and provide answers about basic use of the Xen Project software. For debugging problems and for more complex issues, consider using the xen-users mailing list instead. You can find information about xen-users under "HELP | Mailing Lists" in the navigation bar above.

Task

How do you tell if a VM is PV or HVM?

posted in General
Monday, August 05 2013, 06:48 PM
Peter
Peter
Offline
0
How do you know what VM's are PV and what are HVM?

I installed Ubuntu 12.04 from template, but its not using a virtual kernel, which leads me to believe its HVM. Is there a command that will show what each VM is?

Accepted Answer

Tuesday, August 06 2013, 01:46 PM - #permalink
0
Just stumbled across this...

xl list -l domain-id (as root)

6th line of the output clarifies the type of domU either "hvm" or "pv".
Like
The reply is currently minimized Show
Responses (2)
  • Accepted Answer

    John Slane
    John Slane
    Offline
    Monday, August 12 2013, 11:58 AM - #permalink
    0
    Where did you get the template from? It could be Xen PV, but using a PyGrub kernel, meaning it's using its own kernel rather than one from the node.
    The reply is currently minimized Show
  • Accepted Answer

    Peter
    Peter
    Offline
    Monday, August 12 2013, 02:58 PM - #permalink
    0
    @Kelvin, xl list -l domain-id only outputs "Neither kernel nor bootloader specified".... It doesn't give me more info like shown here: http://old-list-archives.xenproject.org/xen-devel/2010-09/msg01431.html

    So I still don't know if its PV...

    @John, One VM is from the ubuntu 12.04 template (in XCP 1.6). The other is one that I started at as "other media" and converted to PV using info grabbed from here: http://invalidlogic.com/2012/05/01/deploying-ubuntu-12-04-on-xenserver-made-easy/

    To do that I:
    - installed virtual kernel
    - removed the old kernel
    - updated grub
    - Ran the following:

    $ UUID=`xe vm-list name-label="$VMNAME" params=uuid --minimal`
    $ EDITOR=cat xe-edit-bootloader -n "$VMNAME" -p 1 \
    -f /grub/grub.cfg > /tmp/$VMNAME-grub
    $ KERNEL=`grep vmlinuz /tmp/$VMNAME-grub | grep virtual |
    grep -v recovery | awk '{print $2}'`
    $ ROOT=`grep vmlinuz /tmp/$VMNAME-grub | grep virtual |
    grep -v recovery | awk '{print $3}'`
    $ RAMDISK=`grep initrd /tmp/$VMNAME-grub | head -1 | awk '{print $2}'`
    $ xe vm-param-set uuid=$UUID PV-bootloader-args="--kernel=$KERNEL --ramdisk=$RAMDISK"
    $ xe vm-param-set uuid=$UUID PV-args="$ROOT ro quiet console=hvc0"
    The reply is currently minimized Show
Your Reply