3 Configuring Exalytics Machine for Virtualization

This chapter describes the tasks to perform when configuring X2-4 and X3-4 Exalytics Machines for virtualization. The tasks include deploying Oracle Virtual Machine Server (Oracle VM Server) on the Exalytics Machine, configuring Oracle VM Server with Oracle Virtual Machine Manager (Oracle VM Manager), and deploying VM templates.

This chapter includes the following sections:

3.1 Configuring New Installations for Virtualization

This section includes the following topics:

3.1.1 Before You Virtualize an Exalytics Machine

Before you virtualize an Exalytics Machine, review the following sections:

3.1.1.1 Documents to Review

As you prepare to virtualize an Exalytics Machine, do the following:

3.1.1.2 Prerequisites for Configuring Exalytics Machines for Virtualization

The following prerequisites must be met before you can virtualize an Exalytics Machine:

  • The Exalytics Machine has been racked and mounted in a data center.

  • Oracle Integrated Lights Out Manager (ILOM) 3.1.2.24 or later, is configured to be accessible from the network using the web interface.

  • All networking information such as host name, IP address, subnet, gateway, and DNS are available.

  • Spare, unassigned IP addresses are available for the server pool and for each virtual machine deployed on the Exalytics Machine.

  • A Linux environment is available to install Oracle VM Manager.

  • A database server is available to install Oracle VM Manager schemas.

    For information about hardware and software specifications, see Oracle VM Installation and Upgrade Guide for Release 3.2.1.

  • You have access to the internet from a computer (not necessarily the Exalytics Machine) to download required software.

3.1.1.3 Removing Existing Partitions

If required, remove the existing partition on /dev/sdb which is mounted to /u01 from the Exalytics Machine. You cannot create a repository on a Oracle Virtual Machine disk which contains a partition.

Note:

Before removing the existing partition, remember to back up all data on sdb1. If you are removing the existing partition on a new machine, you do not need to back up your data.

To remove existing partitions:

  1. Log in as the root user, and enter the following command to run the disk partition utility:

    # parted /dev/sdb

    The output should look similar to the following:

    GNU Parted 1.8.1
    Using /dev/sdb
    Welcome to GNU Parted! Type 'help' to view a list of commands.
    
  2. To display the existing partition, enter the following command:

    # print

  3. To remove the existing partition, enter the following command:

    # rm 1

  4. To confirm that the existing partition has been removed, enter the following command:

    # print

    The existing partition is removed.

3.1.1.4 Reconfiguring Existing RAID Configurations on the Exalytics Machine

This section consists of the following topics.

3.1.1.4.1 Reconfiguring Existing RAID Configurations on the X2-4 Exalytics Machine

The X2-4 Exalytics Machine comprises six hard disks, each having a capacity of 600 GB. Two disks are configured as RAID1 and four disks are configured as RAID5. To optimize the use of the disk space, you must reconfigure the RAID1 and RAID5 configurations on the Exalytics Machine. Reconfigure RAID1 so that it consists of two virtual drives of 100 GB and 457 GB, and RAID5 consists of the remaining drives.

To reconfigure existing RAID configurations on the X2-4 Exalytics Machine:

  1. Restart the Exalytics Machine using Integrated Lights Out Manager (ILOM).

  2. Press Ctrl+Y and enter RAID CLI (Command Line Interface) as the Exalytics Machine is restarting.

    Note:

    The "Copyright LSI Logic Corporation" displays during the restart sequence when it is possible to enter the RAID CLI. Observe the screen carefully as the message displays for a very short time. This avoids restarting the machine again.
  3. Enter the following MegaRAID command to delete the existing RAID configuration:

    # -CfgLdDel -LALL -a0

  4. Enter the following command to create a RAID1 partition with two virtual disks of size 100 GB and 457 GB:

    # -CfgLdAdd -r1[252:0, 252:1] WB Direct NoCachedBadBBU -sz102400 -sz467968 -a0

  5. Enter the following command to create a RAID5 partition with the remaining disks:

    # -CfgLdAdd -r5[252:2, 252:3, 252:4, 252:5] WB Direct NoCachedBadBBU -a0

  6. In ILOM, select ILOM, then Host Management, and then Power Cycle.

    The Exalytics Machine restarts.

3.1.1.4.2 Reconfiguring Existing RAID Configurations on the X3-4 Exalytics Machine

The X3-4 Exalytics Machine comprises 6 hard disks, each having a capacity of 900 GB.Two disks are configured as RAID1 and four disks are configured as RAID5. To optimize the use of the disk space, you must reconfigure the RAID1 and RAID5 configurations on the Exalytics Machine. Reconfigure RAID1 so that it consists of two virtual drives of 100 GB and 657 GB, and RAID5 consists of the remaining drives.

To reconfigure existing RAID configurations on the X3-4 Exalytics Machine:

  1. Restart the Exalytics Machine using Integrated Lights Out Manager (ILOM).

  2. Press Ctrl+Y and enter RAID CLI (Command Line Interface) as the Exalytics Machine is restarting.

    Note:

    The "Copyright LSI Logic Corporation" displays during the restart sequence when it is possible to enter the RAID CLI. Observe the screen carefully as the message displays for a very short time. This avoids restarting the machine again.
  3. Enter the following MegaRAID command to delete the existing RAID configuration:

    # -CfgLdDel -LALL -a0

  4. Enter the following command to create a RAID1 partition with two virtual disks of size 100 GB and 657 GB:

    # -CfgLdAdd -r1[252:0, 252:1] WB Direct NoCachedBadBBU -sz102400 -sz672768 -a0

  5. Enter the following command to create a RAID5 partition with the remaining disks:

    # -CfgLdAdd -r5[252:2, 252:3, 252:4, 252:5] WB Direct NoCachedBadBBU -a0

  6. In ILOM, select ILOM, then Host Management, and then Power Cycle.

    The Exalytics Machine restarts.

3.1.1.4.3 Resetting RAID Configuration (Optional)

If you are on a virtual Exalytics virtualization and want to revert back to a nonvirtual Exalytics deployment, you must reset the RAID configuration by performing the following steps:

To reset RAID configuration:

  1. Restart the Exalytics Machine using Integrated Lights Out Manager (ILOM).

  2. Press Ctrl+Y and enter RAID CLI (Command Line Interface) as the Exalytics Machine is restarting.

    Note:

    The "Copyright LSI Logic Corporation" displays during the restart sequence when it is possible to enter the RAID CLI. Observe the screen carefully as the message displays for a very short time. This avoids restarting the machine again.
  3. Enter the following MegaRAID command to delete the existing RAID configuration:

    # -CfgLdDel -LALL -a0

  4. Enter the following command to restore the RAID1 partition to an Exalytics deployment:

    # -CfgLdAdd -r1[252:0, 252:1] WB Direct NoCachedBadBBU -a0

  5. Enter the following command to create a RAID5 partition with the remaining disks:

    # -CfgLdAdd -r5[252:2, 252:3, 252:4, 252:5] WB Direct NoCachedBadBBU -a0

  6. In ILOM, select ILOM, then Host Management, and then Power Cycle.

    The Exalytics Machine restarts.

3.1.2 Configuring an Exalytics Machine for Virtualization

This section includes the following topics:

3.1.2.1 Installing and Configuring Oracle VM Server

Oracle VM Server is a managed virtualization environment providing a secure, server-based platform for running virtual machines. Before you can create a virtual machine you must first install Oracle VM Server on the Exalytics Machine.

If you are a new customer, you must install and configure Oracle VM Server 3.0.3 before you can upgrade to Oracle VM Server 3.2.7.

This section includes the following topics:

3.1.2.1.1 Installing Oracle VM Server 3.0.3 (Base Image 2.0.1.1)

To install Oracle VM Server 3.0.3:

  1. Download and save the Oracle Exalytics Base Image 2.0.1.1.0 for Exalytics Oracle VM x86-64 (Part Number V34491-01), by performing the following steps:

    1. Navigate to the Oracle Software Delivery Cloud web site at the following link:

      http://edelivery.oracle.com

    2. In the Select a Product Pack list, select Oracle Business Intelligence.

    3. In the Platform list, select Linux X86-64.

    4. Click Go.

    5. Select Oracle Exalytics Software Media Pack for Linux x86-64 Release: 1.0.0.4.0.

    6. Click Continue.

    7. Download Oracle Exalytics Base Image 2.0.1.1.0 for Exalytics Oracle VM x86-64 Part Number: V34491-01.

      The base image contains the Oracle VM Server 3.0.3.

    8. Save it to a local directory.

  2. On the Exalytics Machine, connect and log on to Oracle Integrated Lights Out Manager (ILOM).

  3. In ILOM, select Remote Control, then Redirection, then Storage Redirection, and then Launch Service.

    The ILOM remote console is displayed.

  4. From the menu bar, select Devices and then CD-ROM Image to link the Oracle VM Server image as a remote virtual CD-ROM in ILOM.

  5. Perform the following action to restart the machine:

    • In ILOM, select ILOM, then Host Management, and then Power Cycle.

  6. In ILOM, select Host Management, then Host Control, and then Next Boot Device.

    The setting for the Next Boot Device is displayed.

  7. Perform the following steps to move CD-ROM to the top of the BOOT menu:

    1. In the Next Boot Device list, select CD-ROM.

    2. Click Save.

  8. In ILOM, select ILOM, then Host Management, and then Power Cycle.

    The Exalytics Machine restarts and displays the Oracle VM Server screen.

  9. Press Enter to install Oracle VM Server.

    The Oracle VM Server is installed on the Exalytics Machine. After Oracle VM Server is installed, the Exalytics Machine restarts automatically.

  10. From the menu bar, select Devices, and then deselect CD-ROM Image.

  11. From the menu bar, select Devices, and then Save as host defaults.

  12. In ILOM, select ILOM, then Host Management, and then Power Cycle.

    The Exalytics Machine is ready for configuration.

  13. Log on to Oracle VM Server, and enter the following command to inspect the RAID configuration:

    /opt/MegaRAID/MegaCli/MegaCli64 -LDinfo -LALL -aALL

3.1.2.1.2 Configuring the Network on Oracle VM Server

Before configuring the network, ensure that the Exalytics network configuration is complete.

To configure the network on Oracle VM Server:

After the Exalytics Machine restarts, perform the following actions:

  1. Enter "I" to access the interactive mode.

  2. At the prompt, enter the following information:

    1. Enter 3 for Full Rack and confirm your entry.

    2. Enter 1 for Node Index.

    3. Enter a network configuration that does not conflict with existing networks. For example, enter 192.168.21.112.

    4. Enter a network configuration that does not conflict with existing networks. For example, enter 255.255.255.0.

    5. Enter the system IP address for the ethernet bond0.

    6. Enter the bond0 netmask and gateway addresses.

    7. Enter the host name.

    8. Enter the domain.

The Exalytics Machine restarts automatically.

3.1.2.1.3 Upgrading Oracle VM Server 3.0.3 (Base Image 2.0.1.1) to Oracle VM Server 3.2.7

To upgrade Oracle VM Server 3.0.3 to Oracle VM Server 3.2.7, see "Upgrading Oracle VM Server 3.0.3 (Base Image 2.0.1.1) or Higher Version to Oracle VM Server 3.2.7".

3.1.2.2 Installing and Configuring Oracle VM Manager

Oracle VM Manager provides a graphical user interface to manage Oracle VM Servers, virtual machines, and resources. You use Oracle VM Manager to create virtual machines and server pools, import VM templates, and manage networks and storage.

If you are a new customer, you can install Oracle VM Manager 3.2.7 directly.

This section includes the following topics:

3.1.2.2.1 Installing Oracle VM Manager 3.2.7

Oracle recommends that you install Oracle VM Manager on a separate machine than the Exalytics Machine, preferably colocated geographically within Oracle VM Server.

To install Oracle VM Manager 3.2.7:

  1. Download Oracle VM Manager 3.2.7 (Part Number V42727-01) from the Oracle Software Delivery Cloud web site at the following link:

    http://edelivery.oracle.com/oraclevm

  2. Install Oracle VM Manager 3.2.7. For instructions, see Chapter 4, "Installing Oracle VM Manager" in Oracle VM Installation and Upgrade Guide for Release 3.2.1.

3.1.2.2.2 Discovering Oracle VM Servers

Adding Oracle VM Servers to your Oracle VM Manager environment is known as discovering Oracle VM Servers. Discovering servers is the first step to configuring the virtualization environment.

To discover Oracle VM Servers:

  1. Connect to Oracle VM Manager.

  2. Select the Servers and VMs tab.

  3. In the left pane, right-click Server Pools, and then select Discover Servers.

    The Discover Dialog box is displayed.

  4. Enter the following information for the server:

    1. Oracle VM Agent Port. The default port number is 8899.

    2. Oracle VM Agent Password. The default password is "oracle".

    3. IP Address.

  5. Click OK.

    Oracle VM Server and its details, including number of processors, IP address, processor speed, RAM, networking ports and configuration are discovered and added to the Unassigned Servers folder.

For more information, see "Chapter 6, Managing Server Pools and Oracle VM Servers" in Oracle VM User's Guide for Release 3.2.1.

3.1.2.2.3 Creating Virtual Network Interface Controllers

A Virtual Network Interface Controller (VNIC) is used by virtual machines as network cards. You create virtual network interfaces by defining a range of MAC addresses to use for each VNIC. Each MAC address corresponds with a single virtual Network Interface Controller (NIC), which is used by a virtual machine.

To create Virtual Network Interface Controllers:

  1. Log on to Oracle VM Manager.

  2. Select the Servers and VMs tab.

  3. In the left pane, right-click Server Pools, and then select Create VNICs.

    The MAC selector panel is displayed.

  4. Click Next to retrieve the next available MAC addresses.

  5. Select the number of addresses that you want to create, and click Create.

    Note:

    Select the number of addresses that corresponds to the number of virtual machines you are deploying.

    The VNICs are created and listed in the Virtual NIC table.

  6. Click Close.

For more information, see "Chapter 7, Managing Virtual Machines" in Oracle VM User's Guide for Release 3.2.1.

3.1.2.2.4 Creating Server Pools and Adding a Server

A server pool consists of at least one Oracle VM Server. If you find a server pool does not have sufficient resources, such as CPU or memory, to run the virtual machines, you can expand the server pool by adding more Oracle VM Servers.

Before creating a server pool, you must have:

  • An IP address for the server pool

  • An IP address for each virtual machine

  • The password to access the Oracle VM Agent installed on Oracle VM Server

For information on creating server pools and adding servers, see "Chapter 6, Managing Server Pools and Oracle VM Servers" in Oracle VM User's Guide for Release 3.2.1.

Note:

When creating a server pool, you must deselect the Activate Cluster option.
3.1.2.2.5 Creating an Exalytics Repository

A repository stores Oracle VM resources, such as virtual machines, templates for creating virtual machines, virtual machine assemblies, and so on.

Note:

Oracle recommends that you create a repository on each physical disk available. Use the smaller repository to store Oracle VM templates and cloned virtual machines and the larger repository to store virtual disks that are assigned to the virtual machines.

You use Oracle VM Manager to create and configure Exalytics repositories, and to present the repositories to Oracle VM Servers.

To create an Exalytics repository:

  1. Log on to Oracle VM Manager.

  2. Select the Repositories tab.

  3. In the toolbar, click Create New Repository to display the Create a Data Repository dialog.

  4. Perform the following actions:

    1. In the Repository Name field, enter the name for the repository.

    2. For Repository Location, select Physical Disk and click Search.

    3. From the drop-down list, select a local storage array and select the smaller of the two storage disks.

    4. Click OK.

    5. Select the server pool for the repository.

    6. Click Next.

      The new repository is available to be presented to Oracle VM Server. To enable your Oracle VM Server to use the repository, you must present the repository to Oracle VM Server.

  5. Select and move Oracle VM Server from the Servers field to the Present to Server(s) field and click Finish.

    The repository is listed in the Repository tab.

For more information, see "Chapter 4, Managing Storage" in Oracle VM User's Guide for Release 3.2.1.

3.1.2.3 Creating Virtual Machines

You use virtual templates to create virtual machines. The process of creating a virtual machine from a template is known as cloning. Before you create virtual machines, ensure that you have the following resources available:

  • A server pool

  • An Oracle VM Server

  • VM templates

The process of creating virtual machines from templates consists of the following steps:

3.1.2.3.1 Downloading VM Templates

To download VM templates:

  1. Download and save the Exalytics Oracle VM Template 2.0.1.1.0 for Exalytics Oracle VM x86-64, by performing the following steps:

    1. Navigate to the Oracle Software Delivery Cloud web site at the following link:

      http://edelivery.oracle.com

    2. In the Select a Product Pack list, select Oracle Business Intelligence.

    3. In the Platform list, select Linux X86-64.

    4. Click Go.

    5. Select Oracle Exalytics Software Media Pack for Linux x86-64 Release: 1.0.0.4.0.

    6. Click Continue.

    7. Download the Oracle Exalytics Oracle VM Template 2.0.1.1.0 for Exalytics Oracle VM x86-64, Part Number: V34468-01.

    8. Save it on a web server.

3.1.2.3.2 Importing VM Templates into Oracle VM Manager

After downloading the templates, you import them into Oracle VM Manager.

To import VM templates into Oracle VM Manager:

  1. Log on to Oracle VM Manager.

  2. Select the Repositories tab.

  3. In the left pane, select the Repository in which you want to store the template.

  4. Select VM Templates.

  5. In the toolbar, click Import VM Template to display the Import VM Template dialog.

  6. Select the Oracle VM Server and enter the URL or FTP server to the VM template that you downloaded on the web server.

  7. Click OK to import the VM template.

3.1.2.3.3 Creating Virtual Machines from VM Templates

After importing the template in Oracle VM Manager, you use the template to create a virtual machine.

Note:

Oracle recommends that you use Oracle VM Manager to create virtual disks of the sizes required for your system on the larger repository. Associate these virtual disks with the virtual machines deployed on your system. These virtual disks provide enough storage for installing the Exalytics software and the various files associated with the Exalytics Machine.

To create virtual machines from a VM template:

  1. Log on to Oracle VM Manager.

  2. Select the Servers and VMs tab.

  3. In the left pane toolbar, click Create Virtual Machine.

    The Create Virtual Machine dialog is displayed.

  4. Select Clone from an existing VM Template.

  5. Perform the following actions:

    1. In the Clone Count list, select the number of machines you want to clone.

    2. In the Repository list, select a repository for the machine.

    3. In the VM Template list, select the VM template from which you want to create the virtual machine.

    4. Enter a name for the virtual machine.

    5. In the Server Pool list, select a server pool.

    6. Enter a description for the virtual machine.

  6. Click Finish.

    The virtual machine is created and is ready to be configured.

For more information, see "Chapter 7, Managing Virtual Machines" in Oracle VM User's Guide for Release 3.2.1.

3.2 Configuring Existing Installations for Virtualization

If you are an existing customer running Oracle VM 3.0.3 or a higher version, you must perform the following tasks:

3.3 Upgrading Oracle VM Manager and Oracle VM Server to 3.2.7

This section includes the following topics:

Note:

Oracle recommends that you use the same release version of Oracle VM Manager and Oracle VM Server.

3.3.1 Upgrading Oracle VM Server 3.0.3 (Base Image 2.0.1.1) or Higher Version to Oracle VM Server 3.2.7

If you are a new or existing customer running Oracle VM Server 3.0.3 or higher version, you must upgrade to Oracle VM Server 3.2.7. For instructions, see "Upgrading Oracle VM Server 3.0.3 (Base Image 2.0.1.1) or Higher Version to Oracle VM Server 3.2.7".

3.3.2 Upgrading Oracle VM Manager 3.0.3 or Higher Version to Oracle VM Manager 3.2.7

Note:

If you have already installed Oracle VM Server 3.2.7, you can ignore this section.

If you are an existing customer running Oracle VM Manager 3.0.3 or higher version, you must upgrade to Oracle VM Manager 3.2.7. For instructions, see "Upgrading Oracle VM Manager 3.0.3 or Higher Version to Oracle VM Manager 3.2.7".

3.4 Applying Oracle Exalytics Release 1 Patchset 4 on a Virtualized Environment

Both new and existing customers must apply Release 1 Patchset 4 (1.0.0.4) on the virtualized environment. For instructions, see Section 2.2.2.2, "Applying Oracle Exalytics Release 1 Patchset 4 (1.0.0.4) on an Exalytics Machine Configured for Virtualization."

3.5 Installing and Configuring Application Software on Virtual Machines

Note:

If you are an existing customer and have already installed and configured software on the virtual Exalytics Machine, you can ignore this section.

The process of installing Exalytics software on virtual machines is identical to installing the software on the non-virtual Exalytics Machine, except that the virtual machines cannot access the entire Exalytics memory. Keep in mind this limitation when setting kernel parameters related to shared memory or creating huge pages.

This section consists of the following topics:

3.5.1 Prerequisites to Installing and Configuring Exalytics Software on Virtual Machines

The following prerequisites must be met before installing the Exalytics software on the virtual machines:

  • You have created a virtual machine.

  • You have created a virtual disk and associated it with the virtual machines.

3.5.2 Installing and Configuring Exalytics Software on Virtual Machines

This section consists of the following topics:

3.5.2.1 Creating and Mounting a /u01 Partition

Before you can install the Exalytics software, you create and mount a /u01 partition on the virtual disk.

Note:

The following procedure assumes the /u01 partition size of 1.6TB. Depending on your specific needs and configuration, you can use a different size for the /u01 partition.

To create and mount a /u01 partition:

After logging in as the root user, configure the /u01 directory on the virtual disk using commands such as the following ones:

  1. To create a partition, enter the following commands:

    parted /dev/xvdb

    GNU Parted 1.8.1

    Using /dev/xvdb

    Welcome to GNU Parted! Type 'help' to view a list of commands.

    (parted) mklabel msdos

    (parted) mkpart primary 0 1600GB

    (parted) print

    Model: Xen Virtual Block Device (xvd)

    Disk /dev/xvdb: 1600GB

    Sector size (logical/physical): 512B/512B

    Partition Table: msdos

    Number Start End Size Type File system Flags

    1 32.3kB 1600GB 1600GB primary

    (parted) quit

  2. To create logical volume, enter the following commands:

    lvm pvcreate /dev/xvdb1

    Physical volume "/dev/xvdb1" successfully created

    lvm vgcreate VolGroup01 /dev/xvdb1

    Volume group "VolGroup01" successfully created

  3. To view free extents on VolGroup01, enter the following commands:

    vgs -o +vg_free_count,vg_extent_count

    VG #PV #LV #SN Attr VSize VFree Free Ext

    VolGroup01 1 0 0 wz--n- 1.46T 1.46T 381469 381469

    lvm lvcreate --extents 381469 --name LogVol00 VolGroup01

    Logical volume "LogVol00" created

  4. To create a file system, enter the following command:

    mkfs.ext3 /dev/VolGroup01/LogVol00

  5. Add the following line to the /etc/fstab file:

    /dev/VolGroup01/LogVol00 /u01 ext3 defaults 0 0

  6. To mount the directory, enter the following commands:

    mkdir /u01

    mount /u01

  7. Verify that the partition has been created by entering the following command:

    df –lh

3.5.2.2 Modifying the Oracle User and Granting Permissions

The Virtual Machine template contains "oracle" as the operating system user name. Associate the user name with the "oinstall" group and create a password for it.

The procedures throughout this section assume a user named "oracle" and a group named "oinstall".

Note:

To add a different user and group, enter the following commands as a root user:

groupadd <name of the group>

useradd -g <name of the group> <name of the user>

To modify the Oracle user and grant permissions:

  1. Log in as root user.

  2. Enter the following commands to associate the user name "oracle" with the group "oinstall" and to create a password:

    groupadd oinstall

    usermod –g oinstall oracle

    passwd oracle

  3. Enter the following commands to grant permissions to the /u01 drive where the software is to be installed:

    chown oracle:oinstall /u01

    chmod 775 /u01

  4. Start the VNC Server on the virtual machine.

3.5.2.3 Installing Application Software Components

The process of installing application software components on a virtual Exalytics Machine is similar to installing them on the non-virtualized Exalytics Machine. See Chapter 4, "Installing Software on an Exalytics Machine."

3.6 Maintaining Virtual Machines

This section includes the following topics:

3.6.1 Viewing Virtual Machine Information and Events

You can view virtual machine details and jobs associated with the virtual machine.

To view virtual machine information details:

  1. Log on to Oracle VM Manager.

  2. Select the Servers and VMs tab.

  3. In the left pane, select the server pool on which the virtual machine resides.

  4. From the Perspective list, select Virtual Machines.

  5. In the Management pane, select a virtual machine.

  6. Click the expand arrow to the left of the selected virtual machine.

    The following tabs are displayed:

    • Configuration: Displays general information about the virtual machine, such as the minimum and maximum memory and processors, operating system, domain type, high availability status, and so on.

    • Networks: Displays networks and VNICs used in the virtual machine.

    • Disks: Displays virtual and physical disks attached to the virtual machine.

To view virtual machine events:

  1. Log on to Oracle VM Manager.

  2. Select the Servers and VMs tab.

  3. In the left pane, select the server pool on which the virtual machine resides.

  4. From the Perspective list, select Virtual Machines.

  5. In the Management pane, select a virtual machine.

  6. In the toolbar, click Display Selected VM Events.

    The Events dialog is displayed.

  7. Review the jobs associated with the virtual machine.

For more information, see "Chapter 7, Managing Virtual Machines" in Oracle VM User's Guide for Release 3.2.1.

3.6.2 Configuring and Starting a Virtual Machine

You start a virtual machine from Oracle VM Manager.

To configure and start a virtual machine:

  1. Log on to Oracle VM Manager.

  2. Select the Servers and VMs tab.

  3. In the left pane, select the server pool on which the virtual machine resides.

  4. From the Perspective list, select Virtual Machines.

  5. In the Management pane, select a virtual machine, and from the toolbar click the Edit.

    The Edit Virtual Machine dialog is displayed.

  6. Select the Configuration tab.

  7. Select the necessary configuration for the virtual machine, and click OK.

  8. Select the Networks tab.

  9. Select and assign a VNIC to the virtual machine, and click OK.

  10. Select the Disks tab.

  11. Select and allocate the virtual disk to the virtual machine.

  12. Click OK.

  13. From the toolbar, click Start.

    The virtual machine starts.

For more information, see "Chapter 7, Managing Virtual Machines" in Oracle VM User's Guide for Release 3.2.1.

3.6.3 Configuring a Network on a Virtual Machine

After starting a virtual machine, you then configure the network on the virtual machine to enable it to access the network.

To configure a network on the virtual machine:

  1. Log on to Oracle VM Server.

  2. Enter the following command:

    xm list

    The Domain-0 and UUID number for the virtual machine are displayed.

  3. Execute the following command:

    xm console <UUID_NUMBER_FOR_VIRTUAL_MACHINE>

    The console of the virtual machine is displayed.

  4. Log in as root user with default password "ovsroot".

  5. Enter the following command:

    system-config-network

  6. Edit the eth0 device by entering the following information:

    • IP addresses

    • Netmask

    • Gateway

    • DNS settings

  7. Click Save and Quit.

  8. Run the following command to reload the network configuration:

    service network reload

  9. Edit the /etc/hosts file to add the machine name and IP address.

3.6.4 Configuring a Virtual Machine for HVM with PV Drivers

An Oracle Virtual Machine is run in one of the following two modes:

  • Paravirtualized mode (PVM)

  • Hardware Virtualized mode (HVM)

For better performance and to enable you to assign more that 2 Flash disks to each Oracle VM Guest you can create a hardware virtualized, with paravirtualized drivers (PVHVM) mode. This mode is identical to hardware virtualized, but with additional paravirtualized drivers installed in the guest's operating system.

To configure a Virtual Machine for HVM With PV Drivers:

  1. Log on to the Oracle VM Manager.

  2. In Oracle VM Manager, select the Repositories tab.

  3. In the left pane of Oracle VM Manager, expand Repositories, and select the repository.

    The GUID of the repository is displayed on the Management pane.

    Note:

    Make a note of the GUID number of the repository. You need the GUID number when editing the vm.cfg file.
  4. Select the Servers and VMs tab.

  5. In the left pane, select the server pool on which the virtual machine resides.

  6. From the Perspective list, select Virtual Machines.

  7. In the Management pane, select a virtual machine.

  8. In the toolbar, click Stop to stop the server.

  9. In the toolbar, click Edit.

    The Edit Virtual Machine window is displayed.

  10. Select the Configuration tab.

    Note:

    Make a note of the GUID number of the virtual machine. You need the GUID numbers when editing the vm.cfg file.
  11. In the Domain type list, select Xen HVM, PV Drivers.

  12. Click OK.

  13. Navigate to the Oracle VM Server command line as the root user, and open the virtual machine configuration (vm.cfg) file in a text editor.

    Note:

    The vm.cfg file is usually located on Oracle VM Server at the /OVS/Repositories/<Repository GUID>/VirtualMachine/<Virtual Machine GUID>/vm.cfg location.
  14. Edit the vm.cfg file by replacing each disk entry that contains a hardware device such as hda, hdb, or hdc with an xvd mapping, such as xvda, xvdb, xvdc and so on.

    For example:

    Replace hda with xvda

    Replace hdb with xvdb

    Replace hdc with xvdc

  15. If required, log in to Oracle VM Manager.

  16. In the toolbar, click Start to start the server.

For more information, navigate to My Oracle Support and review document titled "Oracle VM: Comparison of Guest Virtualization Modes; HVM, PVM and HVM with PV Drivers" (Doc ID 757719.1).

3.6.5 Configuring SWAP on a Virtual Machine

When the virtual machine first restarts, it may not have the swap correctly configured. If needed, configure the swap correctly.

To configure SWAP on the virtual machine:

  1. Ensure that the last line of the file /etc/fstab reads as follows:

    LABEL=SWAP-VM swap swap defaults 0 0

  2. If the first entry in the file /etc/fstab reads as LABEL=SWAP-hda3, edit the file to read as:

    LABEL=SWAP-VM

  3. To make the swap device available, run the following command:

    swapon-a

  4. To confirm that swap is configured, run the following command:

    swapon-s