Previous Topic: UsageNext Topic: wincfg: Windows Configuration Utility


hvm2pv: Hardware Emulation to Paravirtualized Appliance Conversion Utility

This section contains the following topics:

Overview

Usage

Preparing for hvm2pv Conversion

Notes

Overview

The hvm2pv utility assists the conversion of an un-managed HVM (fully-virtualized) appliance to a managed PV (Para-virtualized) appliance. This utility can be used with iso2class to convert an appliance created using iso2class to a fully-managed para-virtualized appliance. The resulting appliance can be used as a singleton or can be added to the catalog. The process does involve some amount of user input and cannot be automated.

Usage

Convert unmanaged HVM appliance to a managed appliance. The appliance can run HVM, PV or both.

Syntax
util hvm2pv name=<app_name>:main.<instance_name> [virt_mode=<mode>] [os=<rd|deb>] [arch=<32|64>] [--batch] 
Options
name=app_name:main.instance_name

Name of application:class to convert.

virt_mode=<mode>

Virtualization mode for the appliance that is created. Valid values are 'xen_pv', 'xen_hvm' and 'vmware'. More than one value can be specified, separated by a coma. Default: 'xen_pv,xen_hvm,vmware'.

os=<rd|deb>

Specify the os of the appliance. Currently hvp2pv supports 'rh' (Redhat) and 'deb' (Debian). If no OS is specified, hvm2pv will try to automatically determine the operating system.

arch=<32|64>

Specify the os architecture of the appliance. Supported values are 32 and 64. If no OS architecture is specified, hvm2pv will try to automatically determine the architecture.

--batch

Non-interactive mode, does not request user input. If a the utility cannot proceed without user input, the operation will fail.

Notes
Examples
util hvm2pv name=centos-hvm:main.iso2class 

Convert unmanaged ISO2CLASS singleton to a managed appliance that can run in xen_pv, xen_hvm and vmware virtualization modes.

util hvm2pv name=centos-hvm:main.iso2class virt_mode='xen_pv' --batch

Convert unmanaged ISO2CLASS singleton to a managed appliance running in PV mode.

Preparing for hvm2pv Conversion

Perform the following pre-requisites to prepare the un-managed HVM for PV conversion. Perform this procedure before using the hvm2pv utility.

To prepare an HVM appliance for PV conversion Install, or verify the presence of an openssh server.

  1. Install or verify the presence of openssh server.
  2. Install or verify the presence of iproute2.
  3. Install or verify the presence of libc6-i386 for 64-bit appliances,
  4. Verify that sshd is configured with PubkeyAuthentication=yes and PermitRootLogin=yes.
  5. Verify that dhclient is present in the appliance.

The following OS specific notes have been garnered from practical experience:

Notes
Supported Operating systems
Debugging Appliance Start issues

If you are trying to start an appliance that is converted from HVM to PV using hvm2pv and the appliance fails to start within the boot timeout, verify the following: