Table of Contents

Advertisement

Quick Links

Oracle® VM
Server User's Guide
Release 2.1
E10898-04
June 2009

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VM and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Oracle VM

  • Page 1 Oracle® VM Server User’s Guide Release 2.1 E10898-04 June 2009...
  • Page 2 Oracle VM Server User's Guide, Release 2.1 E10898-04 Copyright © 2008, 2009, Oracle and/or its affiliates. All rights reserved. Primary Author: Alison Holloway Contributing Authors: Kurt Hackel, Herbert van den Bergh Contributor: Tatyana Bagerman, Michael Chan This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws.
  • Page 3: Table Of Contents

    Creating Virtual Machines......................2-3 Managing Domains ........................2-3 Configuring Oracle VM Server ....................2-4 2.10 Managing Oracle VM Server Repositories ................2-4 3 Oracle VM Agent Oracle VM Agent Command-Line Tool .................. 3-1 Configuring Oracle VM Agent....................3-1 Starting Oracle VM Agent ......................3-2...
  • Page 4 Stopping Oracle VM Agent ....................... 3-3 Monitoring Oracle VM Agent ....................3-3 4 Creating a Guest Virtual Machine Supported Guest Operating Systems..................4-1 Creating an Installation Tree ..................... 4-2 Creating a Guest Using a Template..................4-3 Creating a Guest Using virt-install................... 4-4 Creating a Paravirtualized Guest Manually ................
  • Page 5 ............................. A-2 virt-install ............................ A-3 xm..............................A-7 P2V ............................. A-11 B Oracle VM Server Configuration File Oracle VM Server Configuration File ..................B-2 C Guest Configuration e100 And e1000 Network Device Emulators ................. C-1 Quality of Service (QoS)......................C-1 C.2.1 Setting Disk Priority ......................
  • Page 6 Mouse Pointer Tracking Problems ..................E-5 Hardware Virtualized Guest Stops ..................E-6 E.10 Hardware Virtualized Guest Devices Not Working as Expected........E-6 E.11 Hardware Virtualized Guest Windows Installation............. E-6 E.12 CD-ROM Image Not Found ..................... E-7 Firewall Blocks NFS Access...................... E-7 E.13 E.14 Migrating Domains........................
  • Page 7: Preface

    Preface The preface contains information on how to use the Oracle VM Server User's Guide. The areas discussed are: Audience ■ Documentation Accessibility ■ Command Syntax ■ Related Documents ■ Conventions ■ Audience The Oracle VM Server User's Guide is intended for system administrators and end users who want to learn the fundamentals of virtualization and the provision of virtual guest operating systems.
  • Page 8: Command Syntax

    | A vertical line indicates a choice within braces or brackets: FILE filesize [K|M] Related Documents For more information, see the following documents in the Oracle VM Release 2.1 documentation set: Oracle VM Quick Start Guide ■ Oracle VM Server Release Notes ■...
  • Page 9: Conventions

    You can also get the latest information on Oracle VM by going to the Oracle virtualization Web site: http://www.oracle.com/virtualization Conventions The following text conventions are used in this document: Convention Meaning boldface Boldface type indicates graphical user interface elements associated with an action, or terms defined in text or the glossary.
  • Page 11: What's New In Oracle Vm Server

    New Features in Release 2.1.1 ■ New Features in Release 2.1.5 There are no new features in Oracle VM Server Release 2.1.5. A number of software and documentation errata have been fixed. New Features in Release 2.1.2 The new features and enhancements in Oracle VM Server Release 2.1.2 include: High Availability of server pools and guests.
  • Page 12 Hypervisor debugger: Includes an optional kernel-level debugger for the Oracle ■ VM Server hypervisor, allowing debugging of an entire host including all running guests. See the documentation installed with Oracle VM Server in the /usr/share/doc/xen/README.kdb file for more information.
  • Page 13: Introduction To Virtualization

    Introduction to Virtualization This Chapter provides introductory information on virtualization. It discusses why you would want to use virtualization, the technology provided, and features of Oracle VM. It contains the following sections: What is Virtualization? ■ Why Virtualize? ■ Xen™ Technology ■...
  • Page 14: Xen™ Technology

    The Xen hypervisor has been improved and included with Oracle VM Server. 1.4 Oracle VM Oracle VM is a platform that provides a fully equipped environment for better leveraging the benefits of virtualization technology. Oracle VM enables you to deploy operating systems and application software within a supported virtualization environment.
  • Page 15 Oracle VM. Figure 1–1 Oracle VM Architecture This book discusses Oracle VM Server, and the Oracle VM Agent. See the Oracle VM Manager Installation Guide and the Oracle VM Manager User's Guide for information on installing, and using Oracle VM Manager, and managing Oracle VM Servers.
  • Page 16 Oracle VM 1-4 Oracle VM Server User's Guide...
  • Page 17: Oracle Vm Server

    Oracle VM Server includes an updated version of the underlying Xen™ hypervisor technology, and the Oracle VM Agent. It also includes a Linux kernel with support for a broad array of devices, file systems, and software RAID volume management. The Linux kernel is run as dom0 to manage one or more domU virtual machines, each of which could be Linux or Microsoft Windows.
  • Page 18: Hypervisor

    A guest is a virtualized operating system running within a domain. A guest operating system may be paravirtualized or hardware virtualized. Multiple guests can run on the same Oracle VM Server. A virtual machine is a guest operating system and its associated application software.
  • Page 19: Management Domain

    2.4 Management Domain Most of the responsibility of hardware detection in a Oracle VM Server environment is passed to the management domain, referred to as domain zero (or dom0). The dom0 kernel is actually a complete Linux kernel with support for a broad array of devices, file systems, and software RAID and volume management.
  • Page 20: Oracle Vm Server Configuration File

    You can configure Oracle VM Server using the configuration file. The configuration file options are available in the /etc/xen/xend-config.sxp file. When you make changes to this file, you must restart Oracle VM Server for the changes to take effect. See Appendix B, "Oracle VM Server Configuration File"...
  • Page 21: Oracle Vm Agent

    Oracle VM Manager communicates with Oracle VM Agent to create and manage guests on an Oracle VM Server. Oracle VM Agent is installed and configured during the installation of Oracle VM Server. You do not need to install Oracle VM Agent separately. Oracle VM Agent is installed into: /opt/ovs-agent-2.2...
  • Page 22: Starting Oracle Vm Agent

    Oracle VM Agent, enter # service ovs-agent start Oracle VM Agent is started. Alternatively, if Oracle VM Agent is already running, you can stop and restart it with the command # service ovs-agent restart Oracle VM Agent is stopped, and restarted.
  • Page 23: Stopping Oracle Vm Agent

    Note: cannot manage the Oracle VM Server or the guests running on it. If you shut down or restart the Oracle VM Agent on an HA-enabled Oracle VM Server on which guests are running you are prompted to: Migrate or Power Off the guest(s) using Oracle VM Manager. When the guests ■...
  • Page 24 Monitoring Oracle VM Agent 3-4 Oracle VM Server User's Guide...
  • Page 25: Creating A Guest Virtual Machine

    You can also create guest virtual machines using Oracle VM Manager, and is the recommended method for creating guests. See the Oracle VM Manager User's Guide for information on creating guests with Oracle VM Manager.
  • Page 26: Creating An Installation Tree

    Oracle Enterprise Linux Release 5.x RedHat Enterprise Linux 5.x * Oracle Enterprise Linux paravirtualized drivers are available on the Oracle VM Server CD for Release 3 Update 9, and Release 4 Update 4 onwards. The drivers are also available on the Oracle Enterprise Linux Network (ULN).
  • Page 27: Creating A Guest Using A Template

    4.3 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.
  • Page 28: Creating A Guest Using Virt-Install

    For example, on Oracle Enterprise Linux, use the command: # vncviewer hostname:vnc_port Where hostname is the IP address or host name of the Oracle VM Server, and vnc_port is the port number found out in Step a. Complete any guest virtual machine configuration required by the template.
  • Page 29 Creating a Guest Using virt-install If the host is capable of creating a hardware virtualized guest, the following question is displayed: Would you like a fully virtualized guest (yes or no)? Creating a hardware (fully) virtualized guest enables you to run unmodified operating systems, such as Microsoft Windows.
  • Page 30 The guest operating system installer starts. If you enabled graphics support in Step 7, a VNC window is displayed and the graphical installer is displayed. If you did not enable graphics support, a text-based installer is displayed. For example, a text-based installation of Oracle Enterprise Linux displays: 4-6 Oracle VM Server User's Guide...
  • Page 31: Creating A Paravirtualized Guest Manually

    Creating a Paravirtualized Guest Manually Figure 4–1 Text-based Installer Screen Follow the prompts to complete the guest operating system installation. 4.5 Creating a Paravirtualized Guest Manually To manually create a paravirtualized guest: Create the root file system. Populate the root file system. Configure the guest.
  • Page 32: Populating The Root File System

    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.
  • Page 33: Configuring The Guest

    Creating a Paravirtualized Guest Manually 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.5.3 Configuring the Guest Modify the following guest configuration files to configure the guest: Edit /mnt/etc/fstab to reflect the mounted file system in the guest.
  • Page 34: Creating A Hardware Virtualized Guest Manually

    # Vncviewer no is 1 vncviewer=1 # Password to access the vnc for this guest vncpasswd="welcome" vnclisten="0.0.0.0" ne2000=1 serial='pty' # Enable USB usb=1 usbdevice='mouse' Appendix C, "Guest Configuration" for a more configuration file examples. 4-10 Oracle VM Server User's Guide...
  • Page 35 Creating a Hardware Virtualized Guest Manually Mount the guest root file system to /mnt to enable you to modify the configuration files. Edit /mnt/etc/sysconfig/network to specify the host name. GATEWAY is same as dom0. Hostname is the name of the virtual machine, for example, mycomputer.example.com.
  • Page 36: Converting A Hardware Virtualized Guest To A Paravirtualized Guest

    # xm list Name Mem VCPUs State Time(s) Domain-0 0 r----- 5670.8 # xm create el4u5 Using config file "/etc/xen/el4u5". Started domain el4u5 # vncviewer :0 4-12 Oracle VM Server User's Guide...
  • Page 37 Take note of the guest IP address, or hostname if assigned via DHCP. Copy the domU kernel for Oracle Enterprise Linux 4 Update 5, which can be found in the directory extra_kernels/EL4U5PV_64 on the Oracle VM Server installation CD-ROM, to the guest: # cd extra_kernels/EL4U5PV_64/ # scp kernel-xenU-version.EL.x86_64.rpm 10.1.1.1:...
  • Page 38: Creating A Paravirtual Guest With Red Hat Enterprise Linux 3.8 Or 3.9

    This section lists the steps for installing these paravirtual drivers. To install paravirtual drivers for Oracle Enterprise Linux guest operating systems: Download and install the paravirtual drivers from the Oracle Unbreakable Linux Network (ULN): 4-14 Oracle VM Server User's Guide...
  • Page 39 Run depmod. Edit the /etc/xen/vm.cfg file to replace the vif entry to: vif = [ '', ] # for PVM vif = [ 'type=netfront, ', ] # for PVHVM Shut down the domain:...
  • Page 40 Installing Paravirtual Drivers 4-16 Oracle VM Server User's Guide...
  • Page 41: Domain Monitoring And Administration

    Using the xm Command-Line Interface ■ You can use Oracle VM Manager to monitor domains running on Oracle VM Server, or you can use the xm command. Using Oracle VM Manager is the recommended method of managing domains. See the Oracle VM Manager User's Guide for information on using Oracle VM Manager to manage domains (virtual machines).
  • Page 42: Monitoring Domains

    Note that the format of each line of output wraps over two lines. 5.2.2 Viewing Host Information Use the xm info, xm log, and xm dmesg commands to display information about the host computer. For example, the xm info command displays output similar to the following: 5-2 Oracle VM Server User's Guide...
  • Page 43 Using the xm Command-Line Interface Figure 5–2 Example xm info Command Output Domain Monitoring and Administration 5-3...
  • Page 44 Using the xm Command-Line Interface 5-4 Oracle VM Server User's Guide...
  • Page 45: Domain Live Migration

    To create a shared virtual disk using OCFS2 on iSCSI: Install the iscsi-initiator-utils RPM on the Oracle VM Server. The iscsi-initiator-utils RPM is available on the Oracle VM Server CDROM or ISO file. # rpm -Uvh iscsi-initiator-utils-version.el5.i386.rpm Start the iSCSI service: # service iscsi start Run discovery on the iSCSI target.
  • Page 46 The new device can now be used. # fdisk -l /dev/sdb Create a new directory named /etc/ocfs2 directory: # mkdir /etc/ocfs2 Create the OCSF2 configuration file as /etc/ocfs2/cluster.conf. The following is a sample cluster.conf file: node: 6-2 Oracle VM Server User's Guide...
  • Page 47: Creating A Shared Virtual Disk Using Ocfs2 On San

    Start up the OCFS2 service. # service o2cb start Format the shared virtual disk from any of the Oracle VM Servers in the cluster: # mkfs.ocfs2 /dev/sdb1 Mount the shared virtual disk from all the Oracle VM Servers in the cluster on...
  • Page 48: Adding A Shared Virtual Disk Using Nfs

    Start up the OCFS2 service. # service o2cb start Format the shared virtual disk from any of the Oracle VM Servers in the cluster: # mkfs.ocfs2 /dev/sdb Mount the shared virtual disk from all the Oracle VM Servers in the cluster on...
  • Page 49: Migrating A Domain

    NFS or a SAN virtual disk. On the Oracle VM Server that contains the existing domain, migrate the domain to to the remote computer with the following command: # xm migrate mydomain myremotecomputer The domain is migrated to the remote computer.
  • Page 50 Migrating a Domain 6-6 Oracle VM Server User's Guide...
  • Page 51: Managing Oracle Vm Server Repositories

    The /OVS directory is the location of the default repository created when you install Oracle VM Server. When you register a Utility Server in a server pool using Oracle VM Manager, a number of standard resource-related sub-directories are created under the /OVS repository directory: Table 7–1...
  • Page 52: Repository Configuration File

    /etc/ovs/repositories.options You can add a repository using the /usr/lib/ovs/ovs-makerepo script, and remove them using the /usr/lib/ovs/ovs-offlinerepo -d script. Repositories are managed by Oracle VM Agent. To manually manage the repository daemon, use following commands: /etc/init.d/ovsrepositories [start|stop|status|restart|reload] 7.3 Repository Configuration File...
  • Page 53: Removing A Repository

    1. For any local, host-specific storage, enter 0. description The text displayed in Oracle VM Manager. 7.6 Removing a Repository You can remove a repository using the /usr/lib/ovs/ovs-offlinerepo script.
  • Page 54 Removing a Repository 7-4 Oracle VM Server User's Guide...
  • Page 55: Converting Hosts And Vmware Virtual Machines

    Physical to Virtual (P2V) conversion utility. The P2V utility is included on the Oracle VM Server CD. The operating system must be one of the Oracle VM supported guest operating systems. See the Oracle VM Server Release Notes for a list of the supported guest operating systems.
  • Page 56: Using The P2V Utility Interactively

    8.1.1 Using the P2V Utility Interactively When you use the P2V utility interactively, you are prompted for all required information. To create an Oracle VM guest image of a computer using the P2V utility interactively: Insert the Oracle VM Server CDROM into your CDROM drive.
  • Page 57 Converting a Linux or Windows Host Figure 8–2 CD Found Screen If you want to make sure the CDROM is error free, you can have the installer test it for errors. To test the CDROM, select OK and press Enter. The CDROM is tested and any errors are reported.
  • Page 58 Select the disk partition(s) on the computer to include in the guest image. Select OK and press Enter. The Other parameters for VM screen is displayed. Figure 8–5 Other Parameters for VM Screen Enter information about the guest image for: VM (guest) name ■...
  • Page 59: Using The P2V Utility With A Kickstart File

    Converting a Linux or Windows Host Figure 8–6 Web Server Screen Log in to Oracle VM Manager and import the guest using the P2V feature. See the Oracle VM Manager User's Guide for information on importing P2V guest images. The guest image is created and transferred to the server pool’s repository. To cancel the transfer at any time, enter Control+C.
  • Page 60: Converting A Vmware Virtual Machine

    P2V kickstart file options and parameters. To create an Oracle VM guest image of a computer using the P2V utility with a kickstart file: Create a P2V kickstart file and copy it to your kickstart server.
  • Page 61: High Availability

    Manager. 9.1 High Availability (HA) You can set up HA in Oracle VM to guarantee the availability of guests if the Virtual Machine Server they are running on fails or restarts. When a Virtual Machine Server is restarted or shut down, the guests running on it are either restarted on, or migrated to, another Virtual Machine Server.
  • Page 62 Manual selects an available preferred Virtual Machine Server. ■ If you do not select a preferred Oracle VM Server when creating a guest in Oracle VM Manager, Auto is set as the default. If there is no preferred Virtual Machine Server or Virtual Machine Server available, the guests shut down (Power Off) and are restarted when a Virtual Machine Server becomes available.
  • Page 63 Use the same shared storage. ■ Are in the same OCFS2 or NFS cluster. ■ Are Oracle VM Server Release 2.1.2 or above. ■ Have the same cluster root, which is a specially designated shared storage used for ■ heatbeating in the cluster. For example, the cluster root might be example.com:/OVS for an NFS cluster, or /dev/sdd6 for an OCFS2 cluster.
  • Page 64: Creating A Shared Virtual Disk For Ha

    To create a shared virtual disk using OCFS2 on iSCSI: Install the iscsi-initiator-utils RPM on the Oracle VM Server. The iscsi-initiator-utils RPM is available on the Oracle VM Server CDROM or ISO file. # rpm -Uvh iscsi-initiator-utils-version.el5.i386.rpm Start the iSCSI service: # service iscsi start Run discovery on the iSCSI target.
  • Page 65: Creating A Shared Virtual Disk Using Ocfs2 On San

    1048576 dm-1 1048576 sdb Format the shared virtual disk from any of the Oracle VM Servers in the cluster. For example, to create an OCFS2 partition with a 4k block size, 4k cluster size, 64MB journal size, and 16 node slots: # mkfs.ocfs2 -L mylabel -b 4K -C 4K -J size=64M -N 16 /dev/sdb1...
  • Page 66: Adding A Shared Virtual Disk Using Nfs

    9.3 Creating HA Clusters To support HA you must also create an Oracle VM Server cluster to ensure the safety of guest data, and protect from runaway nodes which may become unreachable. Clustered Oracle VM Servers have built in rules and restrictions which are more...
  • Page 67: Enabling Ha

    To enable HA, you must first enable HA in the server pool, and then on each guest. To enable HA: Log in to Oracle VM Manager and enable HA in the server pool. If the server pool already exists, enable HA on the server pool. See the Oracle VM Manager User's Guide for information on setting up HA in Oracle VM Manager.
  • Page 68 Enabling HA 9-8 Oracle VM Server User's Guide...
  • Page 69: A Command-Line Tools

    Command-Line Tools This Appendix contains references for the Oracle VM Server and Oracle VM Agent command-line tools. The command-line interfaces in this Appendix are: ovs-agent ■ virt-install ■ ■ ■ Command-Line Tools A-1...
  • Page 70: Ovs-Agent

    Agent. Enter parameters to the ovs-agent command-line tool in the format service ovs-agent {option} If you shut down or restart the Oracle VM Agent on an HA-enabled Oracle VM Server on which guests are running you are prompted to: Migrate or Power Off the guest(s) using Oracle VM Manager. When the guests ■...
  • Page 71: Virt-Install

    virt-install virt-install The virt-install command-line tool creates paravirtualized guests and hardware virtualized guests. virt-install can be used as an interactive shell, or all parameters can be given at the same time. Enter multiple parameters to the virt-install command-line tool in the format: virt-install [option ...] This section contains a brief explanation of some of the more common virt-install options.
  • Page 72 # virt-install --os-type=windows [--os-variant=variant] Sets the operating system variant for a fully virtualized guest, for example, rhel5, win2k, or vista. This parameter should be used with the os-type parameter. A-4 Oracle VM Server User's Guide...
  • Page 73 virt-install The following table lists the possible values available for os-variant for each os-type option. Possible values for Possible values for Possible values for Possible values for os-type=windows os-type=unix os-type=other os-type=linux win2k3 solaris9 netware6 generic24 win2k solaris10 generic generic26 vista freebsd6 netware4 rhel2.1...
  • Page 74 You cannot use this parameter for paravirtualized guests. For paravirtualized guests, the default is netfront and cannot be changed. # virt-install --vif-type=ioemu [[-xargs | --extra-args=args] ...] Any additional arguments to pass to the installer with a paravirtualized guest. [-d | --debug] Prints debugging information. A-6 Oracle VM Server User's Guide...
  • Page 75 The Oracle VM Server management command-line management tool xm, creates, destroys, manages and migrates guests. This section contains a brief explanation of some of the more common xm commands. For full documentation, use the xm help --long command. The xm command-line tool requires the xend daemon to be started.
  • Page 76 # xm migrate mydomain example.com --live new [config-file] [option ...] [name-=value ...] Adds a domain to Oracle VM Server domain management. You can set domain creation parameters with a number of command-line options, a Python script (with the --defconfig parameter), or an SXP configuration file (the --config parameter).
  • Page 77 loaded, values that were not set on the command-line are replaced by the values set in the script. [-F=file | --config=file] Sets the domain configuration to use SXP. SXP is the underlying configuration format used by Xen. SXP configurations can be hand-written or generated from Python configuration scripts, using the --dryrun option to print the configuration.
  • Page 78 Displays real time monitoring information of the host and domains. # xm top unpause {domain-id} Unpauses a paused domain. # xm unpause mydomain A-10 Oracle VM Server User's Guide...
  • Page 79: P2V

    The P2V utility is included on the Oracle VM Server CD. You can access the P2V utility by restarting a computer with the Oracle VM Server CD. The Oracle VM Server startup screen is displayed. At the boot: prompt, enter:...
  • Page 80 Indicates the kickstart file is intended to automate a P2V conversion. This parameter is required in order to perform an automated P2V conversion and should be supplied at the Oracle VM Server boot: prompt instead of install, update, or rescue. It accepts no parameters.
  • Page 81 diskimage --device /dev/sda --type [IDE | SCSI | LVM | MDRAID] Sets the type of disk. Must be one of IDE, SCSI, LVM, or MDRAID. Devices /dev/hda, /dev/hdb, /dev/hdc, and /dev/hdd should be IDE. Devices /dev/sd[a-zz] should be SCSI. A logical volume should be LVM. Devices /dev/md[a-zz] should be MDRAID. For example: diskimage --device /dev/hda --type IDE network [option...]...
  • Page 82 --vcpus number The number of VCPUs for the guest. --consolepasswd password The console password for the guest. For example: vm_options --name myGuest --mem 1024 --vcpus 1 --consolepasswd mypassword A-14 Oracle VM Server User's Guide...
  • Page 83: B Oracle Vm Server Configuration File

    Oracle VM Server Configuration File This Appendix contains information on the entries in the Oracle VM Server configuration file. It contains: Oracle VM Server Configuration File ■ Oracle VM Server Configuration File B-1...
  • Page 84 {(for remote access): ([ipaddress]:port [authtype [host-access [ssl-key [ssl-cert]]]])} Sets the configuration of the Oracle VM Server API which uses an XML-RPC interface to control and monitor guests and the dom0 host. A list of access method entries should be provided, each entry in the list enclosed in parentheses, and the list itself enclosed in its own parentheses.
  • Page 85 XML-RPC over unix sockets. The default is yes. (xend-unix-xmlrpc-server yes) xend-relocation-server {yes | no} Sets the Oracle VM Server used for the live migration of domains. The default is no. (xend-relocation-server no) xend-unix-path {path} Sets the path for the xend-unix-server socket parameter. The default is /var/lib/xend/xend-socket.
  • Page 86 Oracle VM Server Configuration File (xend-tcp-xmlrpc-server-ssl-cert-file /etc/xen/xmlrpc.crt) xend-port {port} Sets the port Oracle VM Server should use for the HTTP interface if xend-http-server is set. The default is 8000. (xend-port 8000) xend-relocation-port {port} Sets the port Oracle VM Server should use for the relocation interface if xend-relocation-server is set.
  • Page 87 You can set to use no password with an empty string as the value. The default is an empty string (no password). (vncpasswd 'mypassword') Oracle VM Server Configuration File B-5...
  • Page 88 Oracle VM Server Configuration File B-6 Oracle VM Server User's Guide...
  • Page 89: C Guest Configuration

    You can set virtual network interface and virtual disk QoS parameters for guests running on an Oracle VM Server. Guest virtual network interfaces share a physical Guest Configuration C-1...
  • Page 90: Setting Disk Priority

    ■ Setting Outbound Network Traffic Priority ■ You can set QoS parameters in Oracle VM Server, and in Oracle VM Manager. See the Oracle VM Manager User's Guide for information on setting QoS parameters in Oracle VM Manager. C.2.1 Setting Disk Priority You can set the priority of a guest’s virtual disk(s).
  • Page 91: C.2.3 Setting Outbound Network Traffic Priority

    If you make a change to a running guest’s configuration file, you must shut down the guest, then start it again with the xm create vm.cfg command for the change to take effect. The xm reboot command does not restart the guest with the new configuration.
  • Page 92: C.4 Configuration File Example 2

    # during install you will need to change # /etc/xen/xend-config.sxp # (vnc-listen '127.0.0.1') # to: (vnc-listen '0.0.0.0') # then from any machine do: # "vncviewer <your dom0 ip or hostname>" # to see vnc console C-4 Oracle VM Server User's Guide...
  • Page 93: D Oracle Vm Agent Architecture

    Oracle VM Agent Deployment ■ D.1 Oracle VM Agent Architecture Oracle VM Agent is installed with Oracle VM Server. Oracle VM Manager manages the virtual machines running on Oracle VM Server through the Oracle VM Agent. Three types of agents are implemented: Server Pool Master: This acts as the contact point to the outside world of Oracle ■...
  • Page 94: Oracle Vm Agent Deployment

    Oracle VM Servers in the server pool. Guest virtual machines are stored on the shared storage and placed on one of the Oracle VM Servers in one of two ways to balance the workloads of the server pool: Auto: Selects the Oracle VM Server in the pool with most available resources (for ■...
  • Page 95 Figure D–2, "Oracle VM deployment", Server Pool 3 is deployed on individual Oracle VM Servers, while in Server Pool 1, all of the three agents are deployed on a single Oracle VM Server. Server Pool 2 shows a more typical deployment. The Server Pool Master and Utility Server are on one computer, and the Virtual Machine Server(s) are on another, or multiple other computers.
  • Page 96 Oracle VM Agent Deployment D-4 Oracle VM Server User's Guide...
  • Page 97: Debugging Tools

    ■ E.1 Debugging Tools If domain creation fails, check the Oracle VM Server log files and use the command-line tools to help you find the cause of a problem. There are a number of useful command-line tools, important directories, and log files that you should check when troubleshooting problems with Oracle VM Server.
  • Page 98: Oracle Vm Server Log Files

    Displays log information of the Oracle VM Server daemon. E.2 Using DHCP It is recommended that you install Oracle VM Server on a computer with a static IP address. If your computers uses DHCP you should configure your DHCP server to assign static DHCP addresses.
  • Page 99 = ['type=vnc,vncunused=1,vnclisten=0.0.0.0,vncpasswd=mypassword'] VNC settings defined in the guest configuration file override the settings in the Oracle VM Server configuration file. For example, if the following is specified in a hardware virtualized guest configuration file: vnc=1 vnclisten '0.0.0.0'...
  • Page 100: Cannot Display Graphical Installer When Creating Guests

    Connect from a remote computer with a VNC viewer using the connection string: ipaddress:port In both examples, ipaddress is the IP address or hostname of the Oracle VM Server, and port is the VNC port number of the guest. E.4 Cannot Display Graphical Installer When Creating Guests If the graphical installer does not start when creating a guest using the virt-install command-line tool, you should check your X11 configuration.
  • Page 101: Setting The Guest's Clock

    If your mouse pointer fails to track your cursor in a VNC Viewer session in a hardware virtualized guest, add the following to the Oracle VM Server configuration file located at /etc/xen/xend-config.sxp to force the device model to use absolute (tablet)
  • Page 102: Hardware Virtualized Guest Stops

    0 and upwards. This is only possible for the first hardware virtualized guest loaded. Oracle VM Server virtualizes the memory address to be 0 to the size of allocated memory, but the guest operating system is actually loaded at another memory location.
  • Page 103: Cd-Rom Image Not Found

    E.13 Firewall Blocks NFS Access Oracle VM Server blocks NFS access from any external computer (or guest) by default. This may cause problems when trying to create a guest using an NFS connection. To resolve this, disable the firewall with the following command: # service iptables stop E.14 Migrating Domains...
  • Page 104 Attaching to a Console with the Grub Boot Loader E-8 Oracle VM Server User's Guide...
  • Page 105: Glossary

    An unprivileged domain with no direct access to the hardware or device drivers. Each domU is started by Oracle VM Server in dom0. The xm command-line tool is used to interact with each domU. Guest A guest operating system that runs within a domain in Oracle VM Server. A guest may be paravirtualized or hardware virtualized.
  • Page 106 Server Pool Master A component of Oracle VM Agent. An application that acts as the contact point to Oracle VM Manager, and to other Oracle VM Agents. Provides virtual machine host load-balancing, and local persistency for Oracle VM Server.
  • Page 107 See Hypervisor. Virtual Machine Server A component of Oracle VM Agent. An application which runs Oracle VM Server virtual machines. It can start and stop virtual machines, and collect performance data for the host and guest operating systems. Enables communication between the Server Pool Master, Utility Server and Virtual Machine Servers.
  • Page 108 Xen™ Glossary-4...
  • Page 109: Index

    Converting VMWare Virtual Machines, 8-1 High Availability, 9-1 Host Monitoring, 5-2 Host computer, Glossary-1 Daemons Hypervisor, 2-2, Glossary-1 Oracle VM Server repository, 7-2 DHCP, E-2 Disk Priority, C-2 dom0, Glossary-1 Installation source screen, A-11 Explanation, 2-3 Installation tree, 4-6 Domain, Glossary-1...
  • Page 110 4-12 repositories.options file, 7-2 Oracle VM, 1-2 Repository, 7-1 Overview, 1-3 Adding a repository, 7-1 Oracle VM Agent, 1-3, 3-1, A-2, D-1, Glossary-2 Daemon, 7-2 Configuration, 3-1 Mount options, 7-1 default user, 3-1 Removing, 7-1 Install location, 3-1...
  • Page 111 VMM, Glossary-3 VMware virtual machine conversion, 8-1 VNC access to guests, E-2 Wallclock Time Skew, E-5 Xen, Glossary-3 Xen hypervisor, 1-2, Glossary-3 xend-config.sxp configuration file, B-2 xen.independent_wallclock Setting, E-5 xm, A-7 xm command, 5-1 xm top command, 5-2 XML-RPC interface, B-2 Index-3...
  • Page 112 Index-4...

Table of Contents