Skip to end of metadata
Go to start of metadata

BMR of a Citrix Xen 6.0 paravirtualized VM

Issue


A bare-metal-restore from a recovery point of a Citrix Xen paravirtualized VM is successful, but the restored machine does not boot properly or does not run in a paravirtualized mode.

Output from a HVM machine Output from a PV machine # ps ax | grep xen Instead of: # ps ax | grep xen 8419 tty1 S+ 0:00 grep xen 24 ? S 0:00 [xenwatch] 25 ? S 0:00 [xenbus] 8419 hvc0 S+ 0:00 grep xen # mount # mount /dev/sda1 on / type ext3 Instead of: /dev/xvda1 on / type ext3

Solution


The machine that was created or used for booting the R1Soft Recovery ISO was running in a HVM (hardware-based virtual machine).

The xvdaX type partitions from the original PV (paravirtualized machine) were restored to the available sdaX type partitions discovered by the R1Soft Recovery environment.

Converting the restored machine from an HVM to a PV will resolve the issue.

Performing the successful bare-metal-restore


These instructions demonstrate using an "alternate host" as the target of your bare-metal-restore.

The R1Soft Recovery disk ISO image can be added to XenCenter by burning it to physical media, or placing the ISO on an NFS share accessible as an "NFS ISO Library".

1. Review the details of your restore in the CDPServer Recovery Point, noting under "Recovery Point Details" the sizes of the devices and partitions used in the PV machine.

2. Enter your XenCenter application, and choose "New VM"

3. Select the template "Other install media", create a VM Name, select "r1soft-cdp-bootcd-agent-3.18.2.iso" in the virtual drive as the installation method, choose the VM home server, CPUs, memory, create a new virtual disk of proper size, and select a network.

4. When booting of the R1Soft Recovery environment is complete, run "ifconfig" at the prompt, and note its IP address.

5. Complete the necessary steps to bare-metal-restore to an "Alternate Host Name/IP", and restore the source "xvdX" partition tables and devices to the matching target "sdX" tables and devices discovered by the R1Soft Recovery environment.

Converting the successfully bare metal restored machine back into a paravirtualized VM:


Editing of the virtual machine record will convert the restored machine from HVM to PV mode.

In this example the virtual machine is named “Ubuntu 10.04 x64”

After the successful bare-metal-restore, proceed with the following steps:

From the console of the XenServer host (dom0), use the following xe commands: #1. Retrieve the UUID of the virtual machine: Cut & paste for further usage. xe vm-list name-label="Ubuntu 10.04 x64" params=uuid #2. Clear the HVM boot mode: xe vm-param-set uuid=[vm uuid] HVM-boot-policy= #3. Set pygrub as the boot loader: xe vm-param-set uuid=[vm uuid] PV-bootloader=pygrub #4. Set the display arguments: xe vm-param-set uuid=[vm uuid] PV-args="console=hvc0 xencons=hvc" (Other possible options are: "console=tty0" or "console=hvc0") #5. Find the UUID of the interface of the VBD virtual disk: xe vm-disk-list uuid=[vm uuid] #6. Set the disk device as bootable: xe vbd-param-set uuid=[vbd uuid] bootable=true

Reboot the VM.  ( Restarting the XenCenter GUI is also recommended, [by Citrix] as the consoles may have changed.)

Remove any isos from the virtual cdrom device, so that there is no competition for boot devices.

You may need to change the various options for the consoles that are shown, to match your intended console needs.

Run the commands "mount" and "ps ax |grep xen" as shown above, to verify that the restored machine is now running in a paravirtualized mode.


Note: Typical HVM to PV conversions may require other steps, including creating hvc console .conf files, adding xen-kernels, editing pygrub to point to proper root and initrd paths, adding xen_blkfront to the initrd, and adding xen-tools.

Steps for these procedures can be found in the links shown below.

Various sources regarding converting HVM to paravirtualized, and installing XenTools:

http://blog.403labs.com/post/1546501840/paravirtulization-with-citrix-xenserver-5-5-and-ubuntu

http://support.citrix.com/article/CTX121875

http://www.cetic.be/Paravirtualize-an-Ubuntu-VM-using

http://www.jansipke.nl/installing-xenserver-tools-on-ubuntu-10-04

http://docs.vmd.citrix.com/XenServer/6.0.0/1.0/en_gb/guest.html

Related Articles


Page: Restoring File Permissions (Knowledge Base) Labels: file_restore_3, bare-metal_restore_3, permission_3
Page: BMR of a Citrix Xen 6.0 paravirtualized VM (Knowledge Base) Labels: bare-metal_restore_3, disk_safe_3, partition_3, file_system_3, bmr_3, citrix_3, xen_3, pv_3, hvm_3
Page: Restoring Files to a Smaller Drive (Knowledge Base) Labels: bare-metal_restore_3, partition_3
Page: BMR of a Citrix Xen 6.0 paravirtualized VM (Knowledge Base) Labels: bare-metal_restore_3, disk_safe_3, partition_3, file_system_3, bmr_3, citrix_3, xen_3, pv_3, hvm_3
Page: Error - Caused by Java SQL SQLException Database Is Locked (Knowledge Base) Labels: nfs_3, disk_safe_3, troubleshoot_3
Page: Error - Location Does Not Contain a Valid Disk Safe (Knowledge Base) Labels: disk_safe_3, troubleshoot_3
Page: Assigning Backups to a Different Disk Safe (Knowledge Base) Labels: disk_safe_3
Page: Using Two Policies per Agent (Knowledge Base) Labels: disk_safe_3, policy_3, agent_3, troubleshoot_3, volumes_3
Page: Setting Permissions on SSHFS File System (Knowledge Base) Labels: disk_safe_3, troubleshoot_3
Page: Error - Could Not Create Disk Safe Directory (Knowledge Base) Labels: disk_safe_3, troubleshoot_3, cdp_server_3
Page: Backing Up Disks Without Partitioning (Knowledge Base) Labels: backup_3, partition_3, ext3_3
Page: BMR of a Citrix Xen 6.0 paravirtualized VM (Knowledge Base) Labels: bare-metal_restore_3, disk_safe_3, partition_3, file_system_3, bmr_3, citrix_3, xen_3, pv_3, hvm_3
Page: Restoring Files to a Smaller Drive (Knowledge Base) Labels: bare-metal_restore_3, partition_3
Page: Creating a Unique Partition ID with fdisk (Knowledge Base) Labels: partition_3, fdisk_3
Page: Supporting Linux OCFS2 File System (Knowledge Base) Labels: file_system_3, ext3_3, ext2_3, reiserfs3_3, linux_3
Page: BMR of a Citrix Xen 6.0 paravirtualized VM (Knowledge Base) Labels: bare-metal_restore_3, disk_safe_3, partition_3, file_system_3, bmr_3, citrix_3, xen_3, pv_3, hvm_3
Page: BMR of a Citrix Xen 6.0 paravirtualized VM (Knowledge Base) Labels: bare-metal_restore_3, disk_safe_3, partition_3, file_system_3, bmr_3, citrix_3, xen_3, pv_3, hvm_3
Page: BMR of a Citrix Xen 6.0 paravirtualized VM (Knowledge Base) Labels: bare-metal_restore_3, disk_safe_3, partition_3, file_system_3, bmr_3, citrix_3, xen_3, pv_3, hvm_3
Page: BMR of a Citrix Xen 6.0 paravirtualized VM (Knowledge Base) Labels: bare-metal_restore_3, disk_safe_3, partition_3, file_system_3, bmr_3, citrix_3, xen_3, pv_3, hvm_3
Page: BMR of a Citrix Xen 6.0 paravirtualized VM (Knowledge Base) Labels: bare-metal_restore_3, disk_safe_3, partition_3, file_system_3, bmr_3, citrix_3, xen_3, pv_3, hvm_3
Page: BMR of a Citrix Xen 6.0 paravirtualized VM (Knowledge Base) Labels: bare-metal_restore_3, disk_safe_3, partition_3, file_system_3, bmr_3, citrix_3, xen_3, pv_3, hvm_3
Labels:
bare-metal_restore_3 bare-metal_restore_3 Delete
disk_safe_3 disk_safe_3 Delete
partition_3 partition_3 Delete
file_system_3 file_system_3 Delete
bmr_3 bmr_3 Delete
citrix_3 citrix_3 Delete
xen_3 xen_3 Delete
pv_3 pv_3 Delete
hvm_3 hvm_3 Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.