Skip Headers
Oracle® Fusion Middleware User's Guide for Oracle JRockit Virtual Edition
11g Release 1 (11.1.1.3.1)

Part Number E15206-03
Go to Documentation Home
Home
Go to Table of Contents
Contents
Go to Feedback page
Contact Us

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

3.2 Creating Virtual Machines on Oracle VM

The process of creating virtual machines on Oracle VM consists of the following steps:

  1. Copy the Virtual Machine Image to the Oracle VM Server

  2. Create a Virtual Machine in Oracle VM

Note:

Virtual machines created by using Oracle JRockit Virtual Edition do not support the plug-in console feature in Oracle VM Manager.

3.2.1 Copy the Virtual Machine Image to the Oracle VM Server

When you create a virtual machine image by using the Oracle JRockit Virtual Edition Image Tool, two files—system.img and vm.cfg—are created.

The vm.cfg file contains configuration parameters for the virtual machine, as shown in the following example:

name="wls-ve"
bootloader="/usr/bin/pygrub"
memory=512
disk=['tap:aio:/OVS/seed_pool/wls-ve/system.img,sda1,w']
vif=['']
on_crash="coredump-destroy"

The disk parameter indicates the directory on the Oracle VM server in which the system.img file should be located.

Note:

By default, the path of the system.img file is /OVS/seed_pool/vm-name/system.img, where vm-name is the name of the virtual machine.

Copy vm.cfg and system.img to the vm-name directory (on the Oracle VM server) indicated by the disk parameter in the vm.cfg file.

3.2.2 Create a Virtual Machine in Oracle VM

This section provides an overview of the process for creating virtual machines on Oracle VM. For details about each step in the process, see the Oracle VM documentation to which pointers are provided at relevant places throughout the section.

You can create a virtual machine in Oracle VM by using a virtual machine image or a virtual machine template. Oracle JRockit Virtual Edition creates virtual machine images in the same format as Oracle VM Templates.

To create a virtual machine in Oracle VM, perform the following steps:

Step 1: Import the Virtual Machine Image as an Oracle VM Template

Step 2: Approve the Imported Template

Step 3: Create the Virtual Machine

Note:

Before creating a virtual machine, you must have a server pool that contains a Virtual Machine Server. For more information about the server pool and the Virtual Machine Server, see Oracle VM Manager User's Guide.

Step 1: Import the Virtual Machine Image as an Oracle VM Template

Make sure that the virtual machine image files—system.img and vm.cfg—have been copied to the /OVS/seed_pool/vm-name directory on the Oracle VM server, as described in Section 3.2.1, and make sure that the configuration file is named vm.cfg.

Import the virtual machine image as a template, by following the procedure described in the "Selecting from the Server Pool" section of the Oracle VM Manager User's Guide at http://download.oracle.com/docs/cd/E15458_01/doc.22/e15441/resources.htm#CHDFDGAC.

Note:

Alternatively, you can import the virtual machine image as an Oracle VM template by downloading the template from an HTTP or FTP server as described in the "Downloading from External Source" section of the Oracle VM Manager User's Guide at http://download.oracle.com/docs/cd/E15458_01/doc.22/e15441/resources.htm#CHDHFDAI.

Step 2: Approve the Imported Template

After importing the template, the status of the template is Pending. Only templates with the status Approved are available for creating virtual machines.

Approve the template by following the procedure described in the "Approving the Imported Virtual Machine Template" section of the Oracle VM Manager User's Guide at http://download.oracle.com/docs/cd/E15458_01/doc.22/e15441/resources.htm#BABIHBHB.

Note:

Only users with the Manager or Administrator role can approve templates in Oracle VM Manager.

Step 3: Create the Virtual Machine

After approving a virtual machine template, you can use it to create a virtual machine, which inherits all the content and configuration from the template.

Create the virtual machine by following the procedure described in the "Creating a New Virtual Machine Based on Virtual Machine Template" section of the Oracle VM Manager User's Guide at http://download.oracle.com/docs/cd/E15458_01/doc.22/e15441/vm.htm#CACGFBFB.

You can now start and stop the virtual machine by using Oracle VM, as described in the "Starting and Shutting Down a Virtual Machine" section of the Oracle VM Manager User's Guide at http://download.oracle.com/docs/cd/E15458_01/doc.22/e15441/vm.htm#BABFCFCG.