4.2 Using the P2V Utility

Note

The P2V utility is not available on the Oracle VM Server 3.3 Installation ISO or CDROM. If you intend to use it, you must download the Oracle VM Server Installation ISO for the 3.2 release. You can download this ISO from:

https://edelivery.oracle.com/oraclevm

When you use the P2V utility, you are prompted for all required information.

To create a virtual machine image of a computer:

  1. Insert the Oracle VM Server 3.2 CDROM into the CDROM drive of the computer you want to image.

    Note

    This procedure is for 64-bit computers. If you want to convert a 32-bit host computer to a virtual machine template, you must use the Oracle VM 2.x CD.

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

  3. The Oracle VM Server screen is displayed.

    This figure shows the Oracle VM Server installation screen.

    At the boot: prompt, enter:

    p2v

    Press Enter.

  4. The CD Found screen is displayed.

    This figure shows the Oracle VM Server CD Found screen. Selections available on this screen are: OK button and Skip button. Tab or Alt+Tab between elements. Space selects. F12 moves to next 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.

    This figure shows the P2V Network Configuration screen. Selections available on this screen are: Ethernet driver selection. Automatically obtain via DHCP. Manually configure. IP Address field. Netmask field. Gateway field. Domain field. Nameserver field. OK button. Cancel button. Tab or Alt+Tab between elements. Space selects. F12 moves to next 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 name server for your computer.

    Select OK and press Enter.

  6. The disk selection screen is displayed.

    This figure shows the Disk selection screen. Selections available on this screen are: Disk partition(s). OK button. Back button. Cancel button. Tab or Alt+Tab between elements. Space selects. F12 moves to next 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.

    This figure shows the Other parameters for VM screen. Selections available on this screen are: VM (guest) name field. VM (guest) Memory field. Virtual CPUs field. Console Password field. Confirm console password field. OK button. Back button. Cancel button. Tab or Alt+Tab between elements. Space selects. F12 moves to next screen.

    Enter information about the guest image for:

    • VM (guest) name.

    • VM (guest) memory.

    • Number of virtual CPUs.

    • Console password. This is no longer required, but you must enter a value.

    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.

    This figure shows the Web server screen. Displays IP address and port number.

    Open a web browser on another computer and enter the URL created using the information displayed on the computer running the P2V utility, for example

    https://192.168.2.6/

    Important

    The Web server uses port 443. You must ensure that this port is open between the Web server and the Oracle VM Server into which you plan to import the template.

    A directory listing is displayed which contains the files created by the P2V utility. Take a note of the URLs for the vm.cfg and *.img files as you use them in the next step when importing the virtual machine into Oracle VM Manager.

    This figure shows a directory listing of the computer running the P2V utility. The directory listing shows the following files: catalog. cgi-bin/. MANIFEST. System_sda.img@. vm.cfg.

    Log in to Oracle VM Manager and import the guest using the import template feature. When you import the guest, you should add the URLs for each virtual disk image and the virtual machine configuration file on a new line in the Template URLs field in the Import Template dialog, for example:

    https://192.168.2.6/System-sda.img

    https://192.168.2.6/vm.cfg

    This figure shows the Import Template dialog box showing the virtual machine URLs to enter when using the P2V utility.
  9. When the virtual machine template is added to the repository, you should terminate the P2V utility on the host computer. Press Control+C 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 available in the repository as a hardware virtualized virtual machine template.