Oracle Audio Technologies E10898-02 manual Creating a Hardware Virtualized Guest Manually

Page 33

Creating a Hardware Virtualized Guest Manually

Hostname is the name of the virtual machine, for example, mycomputer.example.com. Make sure the name you use is unique and not being used by another machine.

NETWORKING=yes

HOSTNAME=mycomputer.example.com

GATEWAY=139.185.48.1

3.Edit the /mnt/etc/hosts file to include the IP address and hostname. Make sure the IP address you use is unique and not being used by another computer.

127.0.0.1 localhost.localdomain localhost 139.185.48.212 mycomputer.example.com hostname

4.Edit the /mnt/etc/sysconfig/network-scripts/ifcfg-eth0 file. Use the same MAC address as the vif. If more than one MAC address is exported to the guest operating system, you must to configure more network interfaces, for example, eth1, eth2 in dom0.

The NETMASK and BROADCAST address must match the corresponding network interface in dom0.

HWADDR is same as the MAC address vif. IPADDR is the same as in the /mnt/etc/hosts file.

DEVICE=eth0

BOOTPROTO=static

HWADDR=00:50:56:02:ff:d3

IPADDR=10.1.1.1

NETMASK=255.255.254.0

BROADCAST=10.1.1.255

ONBOOT=yes

TYPE=Ethernet

5.Move /lib/tls to /lib/tls.disabled.

#mv /mnt/lib/tls /mnt/lib/tls.disabled

6.Unmount /mnt.

#unmount /mnt

7.Create the guest.

#xm create -c /etc //domain-config-file

8.Get the console of the guest.

#xm console <Domainname>/<Domid>

4.7Creating a Hardware Virtualized Guest Manually

To create a hardware virtualized guest manually:

1.Install the operating system on a disk by CD-ROM pack or network install method (PXE install).

2.Create the guest configuration file, /etc/xen/domain.cfg. This is the minimum (without advanced options) hardware virtualized guest configuration file. Modify this file to suit your configuration.

#Config File for Full virtualization

Creating a Guest 4-9

Image 33
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 Domains Management DomainHardware Virtualization Vs. Paravirtualization Creating Virtual MachinesConfiguring 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 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 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 Managing Oracle VM Server Repositories Repository Configuration FileOracle VM Server Repositories Repository Mount OptionsAdding a Repository Removing a RepositoryOracle VM Server Repositories Command-Line Tools Start ConfigureStop RestartNname --name=name HelpRRAM --ram=RAM UUUID --uuid=UUIDVnc Bvalue --bridge=valueVncport=port SdlOs-variant=variant NoapicArch=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 Oracle VM Server Configuration File Loglevel Critical or Fatal Error Warn or Warning Info DebugLogfile 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 Troubleshooting Debugging ToolsOracle 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