Difference between revisions of "GSP Virtualisation with Xen"

From PDP/Grid Wiki
Jump to navigationJump to search
Line 114: Line 114:
  
 
The live migration of this VM still has to be tested - you may need to copy/clone the disk image to get it into VHD format...
 
The live migration of this VM still has to be tested - you may need to copy/clone the disk image to get it into VHD format...
 
 
==== Set the VM image type to PV ====
 
 
 
See also
 
* http://itproctology.blogspot.com/2009/06/pv-enable-hvm-on-xenserver.html
 
  
 
==== How NOT to do it ====
 
==== How NOT to do it ====
Line 189: Line 182:
  
 
= Troubleshooting =
 
= Troubleshooting =
 +
 +
== Wrong VM type - or resetting the boot loader ==
 +
 +
=== Set the VM image type to PV ===
 +
 +
The HVM configuration of a VM is obtained (via the CLI) using
 +
  xe vm-param-list uuid=
 +
where the uid is obtained using <tt>xe vm-list</tt>. The HVM configuration looks like:
 +
              HVM-boot-policy ( RW): BIOS order
 +
              HVM-boot-params (MRW): order: cn
 +
        HVM-shadow-multiplier ( RW): 1.000
 +
                    PV-kernel ( RW):
 +
                    PV-ramdisk ( RW):
 +
                      PV-args ( RW):
 +
                PV-legacy-args ( RW):
 +
                PV-bootloader ( RW):
 +
            PV-bootloader-args ( RW):
 +
 +
but we want to clear the HVM settings amd make it boot PV via pygrub. Try
 +
xe vm-param-set uuid=<vm uuid> HVM-boot-policy="" ''(clear the HVM boot mode)''
 +
xe vm-param-set uuid=<vm uuid> PV-bootloader=pygrub ''(set pygrub as the boot loader)''
 +
xe vm-param-set uuid=<vm uuid> PV-args="console=tty0 xencons=tty" ''(set the display arguments)''
 +
Other possible options are: �console=hvc0 xencons=hvc� or �console=tty0� or �console=hvc0�.
 +
 +
Followed by
 +
xe vm-disk-list uuid=<vm uuid> ''(this is to discover the UUID of the interface of the virtual disk)''
 +
xe vbd-param-set uuid=<vbd uuid> bootable=true ''(this sets the disk device as bootable)''
 +
 +
 +
See also
 +
* http://itproctology.blogspot.com/2009/06/pv-enable-hvm-on-xenserver.html
 +
 +
  
 
== Dead VM server ==
 
== Dead VM server ==

Revision as of 14:54, 8 March 2012