How to work with paravirtualized workloads using PlateSpin Migrate or Protect

  • 7008892
  • 24-Jun-2011
  • 25-Jan-2013

Environment

PlateSpin Migrate 9.1
PlateSpin Protect 10.1
PlateSpin Forge 3.1
 
Paravirtualized linux source workload on Xen on SLES 10
Paravirtualized linux target on Xen on SLES 10

Situation

When working with paravirtualized (PV) source or target VMs on SLES 10 Xen servers certain changes must be made in order to support the migration.

Resolution

Source
 
Paravirtualized (PV) source workloads use a PV kernel which cannot run on a fully virtualized target VM, such as with VMware ESX. PlateSpin products do not replace the kernel during the migration process, so special consideration needs to be take on the source workload before migrating in order for it to boot on the fully virtualized target.
 
To work with a PV source workload, the user must first install a standard kernel for the Linux OS on the source server. When this kernel is present, PlateSpin will automatically switch to the standard kernel on the target VM in order for it to boot.
 
Target
 
There are several steps involved when migrating a fully virtualized, or standard, Linux workload into a PV VM.
 

X2P/Failback to Paravirtualized Virtual Machine on Xen

 

 

Background

 

PlateSpin Migrate/Protect provides a two-stage operation to X2P/failback a Linux workload from ESX server to a paravirtualized virtual machine on Xen on SLES10.

  1. Failback the Linux workload to a fully virtualized virtual machine by using regular X2P failback.
  2. Transform the fully virtualized virtual machine into paravirtualized virtual machine.

 

Use Cases

 

There are two use cases to be considered for failing back to a paravirtualized virtual machine on Xen.

  1. Failback to a new paravirtualized virtual machine.
  2. Failback to an existing paravirtualized virtual machine.

 

User Case 1: X2P/Failback to New Paravirtualized virtual machine

 

  1. Copy PlateSpin Linux Boot ISO (bootofx.x2p.sles11sp1.iso) to Xen/SLES server.

 

  1. Start Virtual Machine Manager, and create a fully virtualized machine:
    a) Select “I need to install an operating system”
    b) Choose suitable operating system
    c) In the Summary page:
    1. select “Fully virtualized” as Virtualization method
    2. choose a suitable size for disk image (disk size should equal to or bigger than that of the source machine)
    3. choose PlateSpin Linux Boot ISO as installation source

 

  1. Virtual machine will boot into PlateSpin/OS and start failback procedure. (Please refer to PlateSpin document for the information of X2P failback procedure).

 

  1. After failback completes, the virtual machine will be fully functional as a fully virtualized machine.

 

  1. Reboot the virtual machine (make sure it still boots into PlateSpin/OS).

 

 

Type “switch” (without quotes) to re-configure the operating system to be bootable as a paravirtualized machine.

 

When the re-configuration is done, you will see the following information displayed (see screenshot below, and the information is dependent on the OS configuration):

 

Please apply the following data as bootloader_args for switching Xen fully-virt machine to Para-virt machine:

 

‘—entry=xvda1:/vmlinuz-2.6.16.60-0.54.5-xen, /initrd-2.6.16.60-0.54.5-xen’

 

Note:

The information “switch” displays is used by the xmps utility to setup the location of kernel and initrd image where the Paravirtualized machine boot from.

 

  1. Power off the virtual machine.

 

[DB]$ poweroff

 

  1. Login XEN/SLES server as root.

 

Mount the PlateSpin Linux boot ISO (assumes the ISO has been copied under /root):

 

# mkdir /mnt/ps
# mount -o loop /root/bootofx.x2p.sles11sp1.iso /mnt/ps

 

  1. Run xmps utility to create a paravirtualized virtual machine based on the configuration of a fully virtualized virtual machine:

 

# /mnt/ps/tools/xmps --pv --vm_name=SLES10-FV --new_vm_name= SLES10-PV --bootloader_args=”--entry=xvda1:/vmlinuz-2.6.16.60-0.54.5-xen, /initrd-2.6.16.60-0.54.5-xen”

 

The utility takes as input the name of the fully virtualized machine on which the configuration of the paravirtualized machine will be based on (SLES10-FV), the name of the virtual machine to create (SLES10-PV) and the paravirtualized machine’s boot loader arguments  “--bootloader_args” ( the ones displayed at step 5)

Note: if a virtual machine with the same name as the one passed as new_vm_name already exists, the xmps utility will fail.

 

 

  1. The newly created paravirtualized virtual machine (SLES10-PV) will show up in Virtual Machine Manager, and it is now ready to be turned on.

 

NOTE:

Once the paravirtualized machine is created, the corresponding fully virtualized machine is retired and the machine will fail to boot. This virtual machine could be deleted safely (only vm configuration will be removed).

 

  1. unmount the PlateSpin Linux boot ISO:

 

# umount /mnt/ps

 

User Case 2: X2P/Failback to an existing Paravirtualized virtual machine

 

  1. Copy the PlateSpin Linux Boot ISO (bootofxx2p.iso) to Xen/SLES server.

 

  1. Login XEN/SLES server as root.

 

Mount the PlateSpin Linux boot ISO (the iso has been copied to this server):

 

# mkdir /mnt/ps
# mount –o loop /root/bootofxx2p.iso /mnt/ps

 

  1. Run the xmps utility to create a fully virtualized virtual machine based on the configuration of the paravirtualized virtual machine to which you are going to failback.
    Here is the example:

    # /mnt/ps/tools/xmps --fv --vm_name=SLES10-PV  --new_vm_name=SLES10-FV --bootiso=/root/booxofxx2p.iso

 

The utility takes as input the name of the existing paravirtualized machine (SLES10-PV) to which you want to failback; The name of the temporary fully virtualized machine (SLES10-FV) to be created for the two-stage failback operation and the full path of the boot ISO (assuming that the ISO file is located uner /root: /root/booxofxx2p.iso).

Note: if a virtual machine with the same name as the one passed as new_vm_name already exists, the xmps utility will fail.

 

  1. The newly created fully virtualized machine (SLES10-FV) will show up in the virtual machine manager.

 

  1. Turn on the newly created fully virtualized machine (SLES10-FV). It will boot into the PlateSpin OS and start a regular X2P failback. (Please refer to PlateSpin document for the information of X2P failback procedure).

 

  1. Refer to step 4-11 in “Steps to Failback to New Paravirtualized virtual machine” to complete the remaining steps.

Feedback service temporarily unavailable. For content questions or problems, please contact Support.