Skip Headers
Oracle® VM Server User's Guide
Release 2.1

Part Number E10898-04
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

8 Converting Hosts and VMware Virtual Machines

This Chapter discusses creating hardware virtualized guest images from existing physical computers running Linux or Windows, and converting VMware virtual machines to Oracle VM guest images. This Chapter contains:

You can import and manage guest images in Oracle VM Manager. See the Oracle VM Manager User's Guide for information on importing and managing guest images in Oracle VM Manager.

8.1 Converting a Linux or Windows Host

You can convert a Linux or Windows computer to an Oracle VM hardware virtualized guest image using the Physical to Virtual (P2V) conversion utility. The P2V utility is included on the Oracle VM Server CD. The operating system must be one of the Oracle VM supported guest operating systems. See the Oracle VM Server Release Notes for a list of the supported guest operating systems. The host computer must also have a CPU that supports PAE (Physical Address Extension).

The P2V conversion process creates a virtual machine configuration file (vm.cfg), allows you to make some modifications in terms of sizing of the virtual machine hardware, and then replicates the physical image and transfers it over the network to the server pool's repository using Oracle VM Manager. The image on your physical computer is not changed in any way.

The P2V utility converts disks on the computer to virtual disk images. The first four virtual disk images are created as IDE disks (hda, hdb, hdc, and hdd) on the guest, using the original disk names. Up to seven additional disks are created as SCSI devices (sda, sdb, sdc, and so on). The disk entries in the vm.cfg file look similar to:

disk = ['file:System-sda.img,hda,w',
'file:System-sdb.img,hdb,w',
'file:System-sdc.img,hdc,w',
'file:System-sdd.img,hdd,w',
'file:System-sde.img,sda,w',
'file:System-sdf.img,sdb,w',
'file:System-sdg.img,sdc,w',
'file:System-sdh.img,sdd,w',
'file:System-sdi.img,sde,w',
'file:System-sdj.img,sdf,w',
'file:System-sdk.img,sdg,w',
]

The hardware virtualized guest created by the P2V utility must have it's own network configuration. If you use the same network configuration as the original computer, a network clash may occur as two computers on the network may have the same IP and MAC address. When the guest is started, make sure Kudzu detects the network device and configures the new network device.

You can run the P2V utility interactively, or as an automated process using a kickstart configuration file. When you use the P2V utility with a kickstart file, no user intervention is required.

8.1.1 Using the P2V Utility Interactively

When you use the P2V utility interactively, you are prompted for all required information. To create an Oracle VM guest image of a computer using the P2V utility interactively:

  1. Insert the Oracle VM Server CDROM into your CDROM drive.

  2. Start the computer with the Oracle VM Server CDROM.

  3. The Oracle VM Server screen is displayed.

    Figure 8-1 Oracle VM Server Installation Screen

    Description of Figure 8-1 follows
    Description of "Figure 8-1 Oracle VM Server Installation Screen"

    At the boot: prompt, enter:

    linux p2v
    

    Press Enter.

  4. The CD Found screen is displayed.

    Figure 8-2 CD Found Screen

    Description of Figure 8-2 follows
    Description of "Figure 8-2 CD Found Screen"

    If you want to make sure the CDROM is error free, you can have the installer test it for errors. To test the CDROM, select OK and press Enter. The CDROM is tested and any errors are reported.

    To skip media testing and continue with the installation, select Skip and press Enter.

  5. The P2V Network Configuration screen is displayed.

    Figure 8-3 P2V Network Configuration Screen

    Description of Figure 8-3 follows
    Description of "Figure 8-3 P2V Network Configuration Screen"

    Select your ethernet driver from the list displayed.

    If your computer uses DHCP to assign its IP address, select Automatically obtain via DHCP.

    If your computer uses a static IP address, select Manually configure, and enter the IP address and netmask, gateway, domain and nameserver for your computer.

    Select OK and press Enter.

  6. The disk selection screen is displayed.

    Figure 8-4 Disk Selection Screen

    Description of Figure 8-4 follows
    Description of "Figure 8-4 Disk Selection Screen"

    Select the disk partition(s) on the computer to include in the guest image. Select OK and press Enter.

  7. The Other parameters for VM screen is displayed.

    Figure 8-5 Other Parameters for VM Screen

    Description of Figure 8-5 follows
    Description of "Figure 8-5 Other Parameters for VM Screen"

    Enter information about the guest image for:

    • VM (guest) name

    • VM (guest) memory

    • Number of virtual CPUs

    • Console password

    Select OK and press Enter.

  8. A secure web server (HTTPS) is started. The IP address of the computer, and port number the web server is available on is displayed.

    Figure 8-6 Web Server Screen

    Description of Figure 8-6 follows
    Description of "Figure 8-6 Web Server Screen"

    Log in to Oracle VM Manager and import the guest using the P2V feature. See the Oracle VM Manager User's Guide for information on importing P2V guest images.

  9. The guest image is created and transferred to the server pool's repository. To cancel the transfer at any time, enter Control+C. When the file transfer is complete, Oracle VM Manager sets the status of the imported guest template as Pending.

    Press Control+Alt+Delete to terminate the P2V utility on the computer. Remove the Oracle VM Server CDROM from your CDROM drive. Restart the computer.

The guest image is created and transferred to the server pool's repository as a hardware virtualized guest template.

8.1.2 Using the P2V Utility with a Kickstart File

You can use a kickstart file to automate the creation of a guest image of a physical computer using the P2V utility. When you use the P2V utility with a kickstart file, no user intervention is required. If there are any missing parameters in the kickstart file, you are prompted to enter them.

To use a P2V kickstart file, you must create a file with the P2V configuration options and parameters and place it on a kickstart server. The kickstart server can be made available using NFS, FTP, or HTTP. The kickstart server is set up in the same way as a standard Oracle Enterprise Linux or Red Hat kickstart server.

The following example P2V kickstart file starts sends the guest image to an instance of Oracle VM Manager via network device eth0, which obtained an IP address via DHCP:

p2v
cdrom
lang en_US.UTF-8
keyboard us
target --ovmmanager
network --device eth0 --bootproto dhcp
diskimage --device /dev/sda --type IDE
vm_options --name myGuest --mem 1024 --vcpus 1 --consolepasswd mypassword

See "P2V" in Appendix A, "Command-Line Tools" for detailed information on P2V kickstart file options and parameters.

To create an Oracle VM guest image of a computer using the P2V utility with a kickstart file:

  1. Create a P2V kickstart file and copy it to your kickstart server.

  2. Insert the Oracle VM Server CDROM into your CDROM drive.

  3. Restart the computer with the Oracle VM Server CDROM.

  4. The Oracle VM Server screen is displayed. At the boot: prompt, enter linux p2v and the protocol and location for the kickstart file. For example, to use a kickstart file called ks.cfg on an HTTP server named http://example.com, enter:

    linux p2v ks=http://example.com/mypath/ks.cfg
    

    Press Enter.

  5. If there are any missing parameters in the kickstart file, you are prompted to enter them.

  6. If the kickstart file includes the directive to import the guest image to Oracle VM Manager, a secure web server (HTTPS) is started. A screen is displayed giving the IP address of the computer, and port number the web server is available on. Log in to Oracle VM Manager and import the guest using the P2V feature. See the Oracle VM Manager User's Guide for information on importing P2V guest images.

  7. Remove the Oracle VM Server CDROM from your CDROM drive. Restart the computer.

The guest image is created and transferred to the server pool's repository as a hardware virtualized guest template.

8.2 Converting a VMware Virtual Machine

Oracle VM Manager automatically converts a VMware virtual machines to an Oracle VM guest image when you import it into Oracle VM Manager. See the Oracle VM Manager User's Guide for information on importing VMware guest images.