3 creating a guest using a template, Creating a guest using a template – Oracle Audio Technologies E10898-02 User Manual

Page 27

background image

Creating a Guest Using a Template

Creating a Guest Virtual Machine


# mount -o ro,loop /path/to/Enterprise-R5-x86-dvd.iso /el/EL5-x86

# exportfs *:/el/EL5-x86/

When you create the guest virtual machine, enter the installation location as:


Similarly, to set up an installation tree that can be accessed via HTTP on a computer
named example.com, enter

# cd /var/www/html

# mkdir EL5-x86

# mount -o ro,loop /path/to/Enterprise-R5-x86-dvd.iso EL5-x86

When you create the guest virtual machine, enter the installation location as:


4.3 Creating a Guest Using a Template

You can create a guest using a template. You can also register a template in Oracle VM
Manager and use it to create guests. See the Oracle VM Manager User's Guide for
information about using templates with Oracle VM Manager.

A template is compressed as a .tgz file. A template must contain the basic guest
configuration files, vm.cfg and system.img. Templates are often hosted on an FTP or
HTTP server. The following example shows you how to download an Oracle
Enterprise Linux template from an HTTP server, and use it to create a guest.

To create a guest virtual machine from a template:


Log in to the Oracle VM Server as the root user.


Download the Oracle VM template .zip file to an Oracle VM Server and place it in
the /OVS/seed_pool directory.


Use the unzip tool to uncompress the file. The unzip tool can be downloaded



Extract the .tgz file. This step creates a directory with the name of the template.
This directory contains the files for the template. For example:

# cd /OVS/seed_pool

# tar xzf OVM_



This creates the following directory structure:




|- System.img (operating system image file)



.img (optional additional image file(s))

|- vm.cfg (virtual machine configuration file)



Change directory to where the virtual machine files are located


If you have multiple ISO files (CDs), you can mount each ISO

file (CD) and copy the contents into a single directory. All the ISO files
are then available from the same location.