Oracle Audio Technologies E10898-02 manual Populating the Root File System, Configuring the Guest

Page 32

Creating a Paravirtualized Guest Manually

4.6.2 Populating the Root File System

The root file system for the guest may be populated in a number of ways:

Copying the root file system of dom0

Installing an operating system

1.To copy the root file system of dom0, mount the guest root partition to /mnt:

#mount -t <File system type> <Guest Root Partition> /mnt

Copy the root file system from dom0 to domU:

#rsync -avH /boot /mnt #rsync -avH /root /mnt #rsync -avH /dev /mnt #rsync -avH /var /mnt #rsync -avH /etc /mnt #rsync -avH /usr /mnt #rsync -avH /bin /mnt #rsync -avH /sbin /mnt #rsync -avH /lib /mnt

If your computer is a 64 bit computer, enter

#rsync -avH /lib64 /mnt

Then continue for all computers:

#rsync -avH /selinux /mnt #mkdir /mnt/{proc,sys,home,tmp} #chmod 777 /mnt/tmp

#unmount /mnt

2.Install an operating system. This may be done a number of ways.

Install an Oracle VM Server-enabled operating system from CD-ROMs.

Install an Oracle VM Server-enabled operating system from a network drive, or PXE (Preboot Execution Environment) install.

After you create the root file system for the guest, modify the guest configuration files to reflect its configuration. For example, update /etc/hosts, /etc/fstab and any network configuration files.

4.6.3 Configuring the Guest

You must modify the guest configuration files. To modify the guest configuration files:

1.Edit /mnt/etc/fstab to reflect the mounted file system in the guest.

/dev/sda1 / ext3 defaults 1 1

none /dev/pts devpts gid=5,mode=620 0 0 none /dev/shm tmpfs defaults 0 0

none /proc proc defaults 0 0 none /sys sysfs defaults 0 0

/dev/hda1 is the root of domU as set up in the configuration file.

2.Edit /mnt/etc/sysconfig/network to include a valid host name. GATEWAY is the same value as dom0.

4-8Oracle VM Server User’s Guide

Image 32
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 Introduction to Virtualization What is Virtualization?Why Virtualize? Xen Technology Xen TechnologyOracle VM Oracle VM Oracle VM Architecture shows the components of Oracle VM4Oracle VM Server User’s Guide Oracle VM Server Oracle VM ServerHypervisor HypervisorDomains, Guests and Virtual Machines Management Domain DomainsHardware Virtualization Vs. Paravirtualization Creating Virtual MachinesManaging Oracle VM Server Repositories Configuring Oracle VM ServerConfiguring Oracle VM Server Oracle VM Agent Oracle VM Agent Command-Line ToolConfiguring Oracle 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-install Press Enter Following question is displayed Would you like to enable graphics support yes or no? Creating a Paravirtualized Guest Manually Creating a Paravirtualized Guest ManuallyCreating the Root File System 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 Domain Lifecycle Domain Monitoring and AdministrationUsing the xm Command-Line Interface Viewing Host Information Using the xm Command-Line InterfaceMonitoring Domains Using the xm Command-Line Interface 4Oracle VM Server User’s Guide Creating a Shared Virtual Disk for Live Migration Creating a Shared Virtual Disk Using OCFS2 on iSCSIDomain 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 OptionsOracle VM Server Repositories Adding a RepositoryRemoving a Repository Command-Line Tools Configure StartStop RestartHelp Nname --name=nameRRAM --ram=RAM UUUID --uuid=UUIDBvalue --bridge=value VncVncport=port SdlArch=arch Os-variant=variantNoapic 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 Logfile location Oracle VM Server Configuration FileLoglevel Critical or Fatal Error Warn or Warning Info Debug 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 Oracle VM Server Directories TroubleshootingDebugging Tools Using Dhcp Guest Console AccessOracle VM Server Command-Line Tools Using DhcpGuest Console Access Hardware Virtualized Guest Console Not Displayed Cannot Display Graphical Installer When Creating GuestsCannot Display Graphical Installer When Creating Guests 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