Oracle Audio Technologies E10898-02 manual Mounting an ISO, Creating a Guest Using a Template

Page 27

Creating a Guest Using a Template

4.2 Mounting an ISO

You cannot create a guest from a local hard disk or CD-ROM using the virt-install command-line tool. You can, however, create an installation tree on the host operating system, and mount it as an NFS share. For example

#mkdir -p /el/EL5-x86

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

#exportfs *:/el/EL5-x86/

When you create the guest using the virt-install command-line tool, enter the installation location as:

nfs:example.com:/el/EL5-x86

Similarly, to set up an installation tree that can be accessed via HTTP on a server 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 using the virt-install command-line tool, enter the installation location as:

http://example.com/EL5-x86

4.3 Enabling Registration of Guests with Oracle VM Manager

You can create a guest in Oracle VM Server and manage it using Oracle VM Manager. To add guests created with the virt-install command-line tool, or created manually, you must create the guests with the following configuration:

1.Create a directory for your guest, for example mkdir /OVS/running_pool/myguest

The name of the directory should be the same as the guest name.

2.Create the disk image under the new directory.

The guest is ready to import into Oracle VM Manager.

4.4 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.

1.Download the template into the a directory on the Oracle VM Server computer. This example uses the directory /OVS.

cd /OVS/seed_pool

wget http://example.com/seeds/OVM_EL4U5_X86_HVM.tgz

Uncompress the template:

Creating a Guest 4-3

Image 27
Contents February E10898-02Page Contents Command-Line Tools Oracle VM Server Configuration File Page Preface Accessibility of Code Examples in DocumentationTTY Access to Oracle Support Services Command SyntaxConventions Page What is Virtualization? Why Virtualize?Introduction to Virtualization Xen Technology Oracle VMXen Technology Oracle VM Architecture shows the components of Oracle VM Oracle VM4Oracle VM Server User’s Guide Oracle VM Server Oracle VM ServerHypervisor Domains, Guests and Virtual MachinesHypervisor Creating Virtual Machines Management DomainDomains Hardware Virtualization Vs. ParavirtualizationConfiguring Oracle VM Server Configuring Oracle VM ServerManaging Oracle VM Server Repositories Oracle VM Agent Command-Line Tool Configuring Oracle VM AgentOracle VM Agent Xmlrpc Configuring Oracle VM AgentDeploying Oracle VM Agent Starting Oracle VM AgentStopping Oracle VM Agent Monitoring Oracle VM AgentRemotely Starting a Guest with the Oracle VM Agent API Testing the Oracle VM Agent ConnectionDeleting a Guest with the Oracle VM Agent Oracle VM Agent UtilitiesRemotely Stopping a Guest with the Oracle VM Agent API Monitoring a Guest with the Oracle VM Agent6Oracle VM Server User’s Guide Supported Guest Operating Systems Creating a Guest-bit Hypervisor Supported Guest Operating Systems Supported Guest Operating SystemsEnabling Registration of Guests with Oracle VM Manager Creating a Guest Using a TemplateCreating a Guest Using a Template Mounting an ISOCreating a Guest Using virt-install Creating a Guest Using virt-installPress Enter Following question is displayed Would you like to enable graphics support yes or no? Creating a Paravirtualized Guest Manually Creating the Root File SystemCreating a Paravirtualized Guest Manually Populating the Root File System Configuring the GuestCreating a Hardware Virtualized Guest Manually Creating a Hardware Virtualized Guest ManuallyEdit /mnt/etc/sysconfig/network-scripts/ifcfg-eth0 Use VNCViewer to display the guest If you see this error message Restart the guest, using the xm command-line tool Installing Paravirtual Drivers Installing Paravirtual Drivers 16Oracle VM Server User’s Guide Domain Monitoring and Administration Using the xm Command-Line InterfaceDomain Lifecycle Using the xm Command-Line Interface Monitoring DomainsViewing Host Information Using the xm Command-Line Interface 4Oracle VM Server User’s Guide Creating a Shared Virtual Disk Using OCFS2 on iSCSI Domain Live MigrationCreating a Shared Virtual Disk for Live Migration Delete entries that you do not want to use, for example Creating a Shared Virtual Disk for Live MigrationCreating a Shared Virtual Disk Using OCFS2 on SAN Adding a Shared Virtual Disk Using NFS Migrating a Domain Migrating a Domain6Oracle VM Server User’s Guide Repository Mount Options Repository Configuration FileManaging Oracle VM Server Repositories Oracle VM Server RepositoriesAdding a Repository Removing a RepositoryOracle VM Server Repositories Command-Line Tools Restart ConfigureStart StopUUUID --uuid=UUID HelpNname --name=name RRAM --ram=RAMSdl Bvalue --bridge=valueVnc Vncport=portOs-variant=variant NoapicArch=arch Xargs --extra-args=args ParavirtLlocation --location=location Vif-type=typeHelp --long option Console domain-idDestroy domain-id Dmesg --clearMigrate domain-id host -l --live -r=MB --resource=MB =file --defconfig=fileList --long --label domain-id LogShutdown -a -w domain-id Restore statefileUnpause domain-id TopOracle VM Server Configuration File Oracle VM Server Configuration File Loglevel Critical or Fatal Error Warn or Warning Info DebugLogfile location Xend-unix-xmlrpc-server yes no Xend-http-server yes noXend-unix-server yes no Xend-tcp-xmlrpc-server yes noXend-relocation-address IPAddress Xend-port portXend-relocation-port port Xend-address IPAddressExternal-migration-tool tool Enable-dump yes noDom0-min-mem memory Dom0-cpus CPUs6Oracle VM Server User’s Guide Configuration File Example Guest Configuration FilesConfiguration File Example Oracle VM Agent Architecture Oracle VM Agent ArchitectureOracle VM Agent Deployment Oracle VM Agent DeploymentOracle VM Agent Architecture D-3 4Oracle VM Server User’s Guide Troubleshooting Debugging ToolsOracle VM Server Directories Using Dhcp Using DhcpGuest Console Access Oracle VM Server Command-Line ToolsGuest Console Access Cannot Display Graphical Installer When Creating Guests Cannot Display Graphical Installer When Creating GuestsHardware Virtualized Guest Console Not Displayed Mouse Pointer Tracking Problems Setting the Guest’s ClockWallclock Time Skew Problems Mouse Pointer Tracking ProblemsHardware Virtualized Guest Killed Hardware Virtualized Guest Windows InstallationHardware Virtualized Guest Killed Hardware Virtualized Guest Devices Not Working as ExpectedCD-ROM Image Not Found Firewall Blocks NFS AccessAttaching to a Console with the Grub Boot Loader TAP Disks with Paravirtualized Guests8Oracle VM Server User’s Guide Glossary Paravirtualized machine Oracle VM AgentOracle VM Server Oracle VM ManagerVirtual Machine VM Utility ServerVif Virtual diskGlossary-4 Index-1 IndexIndex-2