Oracle Audio Technologies E10898-02 manual Creating a Guest Using virt-install

Page 28

Creating a Guest Using virt-install

tar -xzvf OVM_EL4U5_X86_HVM.tgz

2.Modify the vm.cfg file to change the directories to that of your environment. The entries you should modify are image, kernel and ramdisk. For example

disk = [ 'file:/OVS/seed_pool/para_seed/system.img,hda,w', ]

kernel = '/OVS/seed_pool/para_seed/vmlinuz-2.6.9-42.32.0.0.1.ELxenU' ramdisk = '/OVS/seed_pool/para_seed/initrd-2.6.9-42.32.0.0.1.ELxenU.img'

Should be modified as follows:

disk = [ 'file:/OVS/local/para_seed/system.img,hda,w', ]

kernel = '/OVS/local/para_seed/vmlinuz-2.6.9-42.32.0.0.1.ELxenU' ramdisk = '/OVS/local/para_seed/initrd-2.6.9-42.32.0.0.1.ELxenU.img'

3.Modify the vif (Virtual Network Interface) setting in the vm.cfg file to remove the fixed MAC address. For example

vif = ['type=ioemu, mac=00:16:3e:73:a3:27, bridge=xenbr0']

Should be modified as follows:

vif = ['type=ioemu, , bridge=xenbr0']

Alternatively, you could modify it to have no virtual interface: vif = ['']

4.Modify the uuid (Universally Unique Identifier) setting in the vm.cfg file. For example

uuid = "8a87a97c-65ad-f243-b373-20185c83053e"

Should be commented as follows:

# uuid = "8a87a97c-65ad-f243-b373-20185c83053e"

5.Modify any other settings you require in the vm.cfg file. For example, memory or vcpus (virtual CPUs).

6.To create and start the guest, use the xm create command: xm create vm.cgf

The guest is created and started.

4.5 Creating a Guest Using virt-install

The following example shows how to create a paravirtualized or hardware virtualized guest using the virt-install command-line tool. This procedure uses an interactive session. You can also pass virt-install parameters at the same time as command-line options. In particular, kickstart options can be passed with:

virt-install -x ks=options

To create a paravirtualized or hardware virtualized guest interactively:

1.Open a command-line shell as root, and start the interactive install process by running the virt-install command-line tool:

virt-install

4-4Oracle VM Server User’s Guide

Image 28
Contents E10898-02 FebruaryPage Contents Command-Line Tools Oracle VM Server Configuration File Page Accessibility of Code Examples in Documentation PrefaceCommand Syntax TTY Access to Oracle Support ServicesConventions Page Why Virtualize? What is Virtualization?Introduction to Virtualization Oracle VM Xen TechnologyXen Technology Oracle VM Oracle VM Architecture shows the components of Oracle VM4Oracle VM Server User’s Guide Oracle VM Server Oracle VM ServerDomains, Guests and Virtual Machines HypervisorHypervisor Management Domain DomainsHardware Virtualization Vs. Paravirtualization Creating Virtual MachinesConfiguring Oracle VM Server Configuring Oracle VM ServerManaging Oracle VM Server Repositories Configuring Oracle VM Agent Oracle VM Agent Command-Line ToolOracle VM Agent Configuring Oracle VM Agent XmlrpcStarting Oracle VM Agent Stopping Oracle VM AgentMonitoring Oracle VM Agent Deploying Oracle VM AgentTesting the Oracle VM Agent Connection Remotely Starting a Guest with the Oracle VM Agent APIOracle VM Agent Utilities Remotely Stopping a Guest with the Oracle VM Agent APIMonitoring a Guest with the Oracle VM Agent Deleting a Guest with the Oracle VM Agent6Oracle VM Server User’s Guide Creating a Guest Supported Guest Operating SystemsSupported Guest Operating Systems -bit Hypervisor Supported Guest Operating SystemsCreating a Guest Using a Template Creating a Guest Using a TemplateMounting an ISO Enabling Registration of Guests with Oracle VM ManagerCreating 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 the Root File System Creating a Paravirtualized Guest ManuallyCreating a Paravirtualized Guest Manually Configuring the Guest Populating the Root File SystemCreating 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 Using the xm Command-Line Interface Domain Monitoring and AdministrationDomain Lifecycle Monitoring Domains Using the xm Command-Line InterfaceViewing Host Information Using the xm Command-Line Interface 4Oracle VM Server User’s Guide Domain Live Migration Creating a Shared Virtual Disk Using OCFS2 on iSCSICreating a Shared Virtual Disk for Live Migration Creating a Shared Virtual Disk for Live Migration Delete entries that you do not want to use, for exampleCreating 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 Configuration File Managing Oracle VM Server RepositoriesOracle VM Server Repositories Repository Mount OptionsRemoving a Repository Adding a RepositoryOracle VM Server Repositories Command-Line Tools Configure StartStop RestartHelp Nname --name=nameRRAM --ram=RAM UUUID --uuid=UUIDBvalue --bridge=value VncVncport=port SdlNoapic Os-variant=variantArch=arch Paravirt Llocation --location=locationVif-type=type Xargs --extra-args=argsConsole domain-id Destroy domain-idDmesg --clear Help --long option=file --defconfig=file List --long --label domain-idLog Migrate domain-id host -l --live -r=MB --resource=MBRestore statefile Shutdown -a -w domain-idTop Unpause domain-idOracle VM Server Configuration File Loglevel Critical or Fatal Error Warn or Warning Info Debug Oracle VM Server Configuration FileLogfile location Xend-http-server yes no Xend-unix-server yes noXend-tcp-xmlrpc-server yes no Xend-unix-xmlrpc-server yes noXend-port port Xend-relocation-port portXend-address IPAddress Xend-relocation-address IPAddressEnable-dump yes no Dom0-min-mem memoryDom0-cpus CPUs External-migration-tool tool6Oracle VM Server User’s Guide Guest Configuration Files Configuration File ExampleConfiguration 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 Debugging Tools TroubleshootingOracle VM Server Directories Using Dhcp Guest Console AccessOracle VM Server Command-Line Tools Using DhcpGuest Console Access Cannot Display Graphical Installer When Creating Guests Cannot Display Graphical Installer When Creating GuestsHardware Virtualized Guest Console Not Displayed Setting the Guest’s Clock Wallclock Time Skew ProblemsMouse Pointer Tracking Problems Mouse Pointer Tracking ProblemsHardware Virtualized Guest Windows Installation Hardware Virtualized Guest KilledHardware Virtualized Guest Devices Not Working as Expected Hardware Virtualized Guest KilledFirewall Blocks NFS Access Attaching to a Console with the Grub Boot LoaderTAP Disks with Paravirtualized Guests CD-ROM Image Not Found8Oracle VM Server User’s Guide Glossary Oracle VM Agent Oracle VM ServerOracle VM Manager Paravirtualized machineUtility Server VifVirtual disk Virtual Machine VMGlossary-4 Index Index-1Index-2