This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Xen Server Configuration

    This section describes about configuring the Xen Server.

    Appliance Configuration Files for PVM

    The following table describes the appliance configuration files that are affected by the appliance Xen Paravirtualization tool.

    File NameDescriptionHVMPVM
    /boot/grub/menu.lstBoot Manager. The root partition is affected and the console parameters.root=/dev/hda1root=/dev/xvda1
    console=hvc0
    xencons=hvc0
    /etc/fstabMounting tableUsing the hda device name (/dev/hda1,/dev/hda2,…)Using the xvda device-name (/dev/xvda1,…)
    /etc/inittabConsoletty1hvc0

    Xen Server Parameters for PVM

    This section lists the Xen Server Parameters for PVM.

    The following settings are affected by the Appliance Paravirtualization Support Tool.

    Parameter NameDescriptionHVMPVM
    HVM-boot-policyVM parameter: boot-loaderBIOS Order“” (empty)
    PV-bootloaderVM Parameter: paravirtualization loader“” (empty)Pygrub
    BootableVirtual Block Device parameterfalse“true”

    Manual Configuration of Xen Server

    This section describes about configuring the Xen Server manually.

    It is recommended that you use the Xen Paravirtualization Support Tool to switch between HVM and PVM. However, you sometimes might need to manually configure the XenServer. This section describes the commands you use to switch between the two modes.

    It is recommended that you consult Protegrity Support before manually applying the commands. Back up your data prior to configuration changes. Read the XenServer documentation to avoid errors.

    Converting HVM to PVM

    This section describes the steps to convert HVM to PVM.

    To convert HVM to PVM use the following commands to convert from HVM to PVM, where NAME_OF_VM_MACHINE is the name of the virtual machine.

    ```
    TARGET_VM_NAME="NAME_OF_VM_MACHINE"
    TARGET_VM_UUID=$(xe vm-list name-label="$TARGET_VM_NAME" params=uuid --minimal)
    TARGET_VM_VBD=$(xe vm-disk-list uuid=$TARGET_VM_UUID | grep -A1 VBD | tail -n 1 | cut -f2 - | sed "s/ *//g")
    xe vm-param-set uuid=$TARGET_VM_UUID HVM-boot-policy=""
    xe vm-param-set uuid=$TARGET_VM_UUID PV-bootloader="pygrub"
    xe vbd-param-set uuid=$TARGET_VM_VBD bootable="true"
    ```
    

    Converting PVM to HVM

    This section describes the steps to convert PVM to HVM.

    To convert PVM to HVM use the following commands to convert from PVM to HVM, where NAME_OF_VM_MACHINE is the name of the virtual machine.

    ```
    TARGET_VM_NAME="NAME_OF_VM_MACHINE"
    TARGET_VM_UUID=$(xe vm-list name-label="$TARGET_VM_NAME" params=uuid --minimal)
    TARGET_VM_VBD=$(xe vm-disk-list uuid=$TARGET_VM_UUID | grep -A1 VBD | tail -n 1 | cut -f2 - | sed "s/ *//g")
    xe vm-param-set uuid=$TARGET_VM_UUID HVM-boot-policy="BIOS order"
    xe vm-param-set uuid=$TARGET_VM_UUID PV-bootloader=""
    xe vbd-param-set uuid=$TARGET_VM_VBD bootable="false"
    ```