Oracle Audio Technologies E10898-02 manual Restart the guest, using the xm command-line tool

Page 37

Converting a Hardware Virtualized Guest to a Paravirtualized Guest

9.Edit the /boot/grub/grub.conf file in the guest and change the default to point to this entry:

title Enterprise Linux Enterprise Linux AS (2.6.9-42.32.0.0.1.ELxenU) root (hd0,0)

kernel /boot/vmlinuz-2.6.9-42.32.0.0.1.ELxenU ro root=LABEL=/ initrd /boot/initrd-2.6.9-42.32.0.0.1.ELxenU.img

10.Shut down the guest. Modify the host configuration file /etc/xen/el4u4 to an entry similar to:

name = "el4u4" memory = "512"

disk = [ 'phy:/dev/VolGroup00/el4u4,hda,w', ] bootloader="/usr/bin/pygrub"

vcpus=1

on_reboot

=

'restart'

on_crash

=

'restart'

11.Restart the guest, using the xm command-line tool:

# xm create -c el4u4

The hardware configuration is displayed.

12.Remove the configuration for the network adapter and keyboard.

13.Log in to the guest, and delete the /etc/sysconfig/hwconf file. Shut down the guest.

14.Modify the guest configuration file /etc/xen/el4u4 to add a vif entry similar to:

name = "el4u4" memory = "512"

disk = [ 'phy:/dev/VolGroup00/el4u4,hda,w', ] vif = [ 'bridge=xenbr0', ] bootloader="/usr/bin/pygrub"

vcpus=1

on_reboot = 'restart'

on_crash

= 'restart'

15.Start the guest and log in as root. Run the command:

# ifconfig eth0

Take note of the HWaddr (MAC address).

16.Replace the contents of the /etc/sysconfig/network-scripts/ifcfg-eth0 file with:

TYPE=Ethernet

DEVICE=eth0

BOOTPROTO=dhcp

ONBOOT=yes

HWADDR=xx:xx:xx:xx:xx:xx

Replace xx:xx:xx:xx:xx:xx with the actual MAC address reported by the ifconfig command in the guest.

17.On the host, edit the domU configuration file /etc/xen/el4u4, and add the MAC address to the vif entry:

vif = [ 'mac=xx:xx:xx:xx:xx:xx, bridge=xenbr0', ]

Creating a Guest 4-13

Image 37
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 Why Virtualize? What is Virtualization?Introduction to Virtualization Oracle VM Xen TechnologyXen Technology Oracle VM Architecture shows the components of Oracle VM Oracle VM4Oracle VM Server User’s Guide Oracle VM Server Oracle VM ServerDomains, Guests and Virtual Machines HypervisorHypervisor Domains Management DomainHardware 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 Xmlrpc Configuring Oracle VM AgentStopping Oracle VM Agent Starting Oracle VM AgentMonitoring Oracle VM Agent Deploying Oracle VM AgentRemotely Starting a Guest with the Oracle VM Agent API Testing the Oracle VM Agent ConnectionRemotely Stopping a Guest with the Oracle VM Agent API Oracle VM Agent UtilitiesMonitoring a Guest with the Oracle VM Agent Deleting 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 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 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 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 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 Managing Oracle VM Server Repositories Repository Configuration FileOracle VM Server Repositories Repository Mount OptionsRemoving a Repository Adding a RepositoryOracle VM Server Repositories Command-Line Tools Start ConfigureStop RestartNname --name=name HelpRRAM --ram=RAM UUUID --uuid=UUIDVnc Bvalue --bridge=valueVncport=port SdlNoapic Os-variant=variantArch=arch Llocation --location=location ParavirtVif-type=type Xargs --extra-args=argsDestroy domain-id Console domain-idDmesg --clear Help --long optionList --long --label domain-id =file --defconfig=fileLog Migrate domain-id host -l --live -r=MB --resource=MBShutdown -a -w domain-id Restore statefileUnpause domain-id TopOracle VM Server Configuration File Loglevel Critical or Fatal Error Warn or Warning Info Debug Oracle VM Server Configuration FileLogfile location Xend-unix-server yes no Xend-http-server yes noXend-tcp-xmlrpc-server yes no Xend-unix-xmlrpc-server yes noXend-relocation-port port Xend-port portXend-address IPAddress Xend-relocation-address IPAddressDom0-min-mem memory Enable-dump yes noDom0-cpus CPUs External-migration-tool tool6Oracle 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 Debugging Tools TroubleshootingOracle VM Server Directories Guest Console Access Using DhcpOracle 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 Wallclock Time Skew Problems Setting the Guest’s ClockMouse Pointer Tracking Problems Mouse Pointer Tracking ProblemsHardware Virtualized Guest Killed Hardware Virtualized Guest Windows InstallationHardware Virtualized Guest Devices Not Working as Expected Hardware Virtualized Guest KilledAttaching to a Console with the Grub Boot Loader Firewall Blocks NFS AccessTAP Disks with Paravirtualized Guests CD-ROM Image Not Found8Oracle VM Server User’s Guide Glossary Oracle VM Server Oracle VM AgentOracle VM Manager Paravirtualized machineVif Utility ServerVirtual disk Virtual Machine VMGlossary-4 Index-1 IndexIndex-2