PREPARED BY RAVI KUMAR LANKE Page 1Installing Oracle VMTo install Oracle VM, you must install at least one Oracle VM Server, and then install one instance ofOracle VM ManagerInstalling Oracle VM ServerInstalling Oracle VM Server deletes any previous operating system and data on the computer. To installOracle VM Server:1. Boot the computer on which you want to install Oracle VM Server with your Oracle VM Server CD.2. At the boot prompt, press Enter.3. Follow the prompts to install Oracle VM Server.4. Log into Oracle VM Server as the root user, with the password you set during the installation.If you want to use more than one Oracle VM Server, repeat the installation process. Oracle VM Serverscan be added to a server pool and managed by Oracle VM Manager.Installing Oracle VM ManagerTo install Oracle VM Manager:1. Start up the operating system on the computer on which you want to install Oracle VM Manager.2. Insert and mount the Oracle VM Manager CD.3. As the root user, start the Oracle VM Manager installation script:# ./runInstaller.sh4. Follow the prompts to install Oracle VM Manager.Upgrading Oracle VMYou cannot upgrade Oracle VM 2.x to Oracle VM 3.x. A full reinstall of your Oracle VM environment isrequired. You can however upgrade an Oracle VM 3.x environment
PREPARED BY RAVI KUMAR LANKE Page 2Installing Oracle VM ServerPreinstallation Tasks and RequirementsBefore you start the Oracle VM Server installation, make sure your computer meets the minimumhardware and software requirementsHardware RequirementsThis release of Oracle VM Server supports x86_64 host hardware onlyOracle VM Server requires a 64-bit processorFor hardware virtualized (unmodified) guest operating systems (for example, Microsoft Windows), aCPU with hardware virtualization support is required. This feature may also need to be enabled in theBIOS. Please refer to your processor documentation for information on whether your processor supportshardware virtualization and how to enable it in the BIOSA dual core CPU or multiple CPUs are recommended to run multiple guestsThe minimum memory requirement is 1GB RAM, although it is recommended you have a computer withat least 2GB RAM. Guest memory requirements vary for each guest operating system. You shouldperform your own memory sizing for guest operating systemsSoftware RequirementsThere are no prerequisite software requirements. Oracle VM Server includes a small Linux-basedmanagement operating system. All previous operating systems and data are lost during the installation ofOracle VM Server.Migration from any operating system, or previous virtualization environment, is not supported in thisReleaseNetwork RequirementsIt is recommended that you install Oracle VM Server on a machine with a static IP address. If yourmachines use DHCP, you should configure your DHCP server to assign static DHCP addressesOracle VM Server Memory SettingsOracle recommends you to leave the dom0 memory to the value by default. It is set by default as 502 +0.0205 * physical-memory (in MB) during the installation
PREPARED BY RAVI KUMAR LANKE Page 3Getting the SoftwareIf you do not already have the Oracle VM Server software, download the Oracle VM Server ISO file fromthe Oracle Software Delivery Cloud:http://edelivery.oracle.com/oraclevmBurn the Oracle VM ISO file to a bootable CDInstalling Oracle VM Server From a CDTo install Oracle VM Server from a CD:1. Make sure that the server BIOS is set to boot from CD.2. Insert the Oracle VM Server CD into your CD drive.3. Boot the server with the Oracle VM Server CD.4. The Oracle VM Server screen is displayed.Press Enter to begin the installation. If you do not press a key for one minute, the installer automaticallystarts. The installer is only available in text mode.
PREPARED BY RAVI KUMAR LANKE Page 45. The CD Found screen is displayed.If you want to make sure the CD has been created correctly you can have the installer test it for errors.To test the CD, select OK and press Enter. The CD is tested and any errors are reported.To skip media testing and continue with the install, select Skip and press Enter
PREPARED BY RAVI KUMAR LANKE Page 56. The Keyboard Selection screen is displayedSelect the keyboard layout type (for example, us for U.S. English) from the list of available options. Thekeyboard you select becomes the default keyboard for the operating system.Select OK and press Enter7. The Oracle VM Server 3.x End User License Agreement screen is displayed.
PREPARED BY RAVI KUMAR LANKE Page 6Read the License Agreement text and click Accept to accept the terms of the agreement and continuethe installation.
PREPARED BY RAVI KUMAR LANKE Page 78. If an existing Oracle VM Server installation is found on the computer, the System to Upgrade screenis displayedSelect Reinstall System to overwrite the existing installation.Select Oracle VM Server 3.x (disk) to upgrade the existing installation. Upgrading an Oracle VMServer from Release 2.x is not supported; you must perform a fresh install.Select OK and press Enter.
PREPARED BY RAVI KUMAR LANKE Page 89. The Partitioning Type screen is displayed.Select whether you want to:• Remove all partitions and create a new default partition layout• Remove all Linux partitions and create a new default partition layout• Use the free space on selected drives to create a new default partition layout• Create a minimal partition layout for installation to a USB drive• Create a custom partition layoutOracle recommends you use a default partition layout.NoteAs the Oracle VM Server installer can only be run in text mode, you cannot setup LVM (Logical Volume Manager). If you want to create an LVM configuration,press Alt + F2 to use the terminal and run the lvm command. To return to theOracle VM Server installer, press Alt + F1.Select which drive(s) you want to use for the installation.Select OK and press Enter
PREPARED BY RAVI KUMAR LANKE Page 910. If you selected to remove a partition, a Warning screen is displayed to confirm that you want toremove the partition(s), including the data contained on any partitionsSelect Yes and press Enter.
PREPARED BY RAVI KUMAR LANKE Page 1011. The Review Partition Layout screen is displayed.If you do not want to review the partition layout and accept the default partition layout, select No andpress Enter.If you want to review the partition layout, select Yes and press Enter.
PREPARED BY RAVI KUMAR LANKE Page 11The Partitioning screen is displayed.Review the partition layout, and make any changes you want.Select OK and press Enter to save any changes.
PREPARED BY RAVI KUMAR LANKE Page 1212. The Boot Loader Configuration screen is displayed.Be sure to select the option to boot from a multipath device if you install Oracle VM Server on a disksubsystem that allows access through multiple physical pathsWarningIf only a single path is available at the time of installation, you will need tocorrect the blacklisting configuration afterwards: identify the SCSI device usedto boot from (using mount or df), locate and remove its entry in the file /etc/blacklisted.wwids, then reboot the Oracle VM Server. This allows theserver to use multipath SAN boot instead of a single SCSI disk
PREPARED BY RAVI KUMAR LANKE Page 13If necessary, you can change the drive for the master boot record by clicking Change drive order andselecting a different driveSelect a drive in the list and click the Move up and Move down buttons to change the order, makingsure that the drive to locate the Master Boot Record is at the top.Select Back and press Enter to return to the Boot Loader Configuration screen.Select OK and press Enter
PREPARED BY RAVI KUMAR LANKE Page 1413. The Oracle VM Management Interface screen is displayedSelect the network interface to use for management of the computer.Choose one of these options:• Select OK to connect the interface to a regular network.• Select Add to VLAN to connect the interface to a VLAN-type network.Press Enter
PREPARED BY RAVI KUMAR LANKE Page 1514. For non-VLAN installation, proceed to the next step.If you selected Add to VLAN, the Oracle VM Management VLAN screen is displayIf your Oracle VM Management network is on a VLAN, enter the applicable VLAN tag. Note that 0 isreserved and that 1 corresponds with "untagged".Select OK and press Enter.
PREPARED BY RAVI KUMAR LANKE Page 1615. The Network Interface Configuration screen is displayedIf your computer uses a static IP address, enter the IP address and prefix (netmask) for your computer.If your computer uses DHCP to assign its IP address, select Dynamic IP configuration (DHCP).Select OK and press Enter.
PREPARED BY RAVI KUMAR LANKE Page 1716. The Miscellaneous Network Settings screen is displayedEnter the Gateway, Primary DNS and optional Secondary DNS in the respective fields.Select OK and press Enter.
PREPARED BY RAVI KUMAR LANKE Page 1817. The Hostname Configuration screen is displayed.If your machine has its own hostname, select manually and enter the hostname or IP address. Youshould use a fully qualified hostname, for example, myserver.example.com.If your machine uses DHCP to assign its hostname, select automatically via DHCPSelect OK and press Enter
PREPARED BY RAVI KUMAR LANKE Page 1918. The Time Zone Selection screen is displayedIf your operating system uses Coordinated Universal Time (UTC), select System clock uses UTC.Select your time zone by selecting the city closest to your computers physical location.Select OK and press Enter
PREPARED BY RAVI KUMAR LANKE Page 2019. The Oracle VM Agent password screen is displayed.Enter a password to be used for the Oracle VM Agent in the Password field. This password is used byOracle VM Manager to manage and monitor the Oracle VM Server, and the guests created and runningwithin it. This is the password you use when discovering Oracle VM Servers in Oracle VM Manager.Re-enter the password in the Password (confirm) field.The password characters are not echoed to the screen.Select OK and press Enter. If the two passwords do not match, the installer prompts you to enter themAgainNoteIf you need to change this password, use the applicable option in the OracleVM Manager user interface. This will change the Oracle VM Agent passwordfor all Oracle VM Servers in the server pool
PREPARED BY RAVI KUMAR LANKE Page 2120. The Root Password screen is displayed.Enter a password for the root user in the Password field. The root password must be at least sixcharacters long.Re-enter the password in the Password (confirm) field.The password characters are not echoed to the screen.Select OK and press Enter. If the two passwords do not match, the installer prompts you to enter themagain.
PREPARED BY RAVI KUMAR LANKE Page 2221. The Installation to begin screen is displayedSelect OK and press Enter. The installer installs and configures Oracle VM Server. You can follow theprogress of the package installation on-screen
PREPARED BY RAVI KUMAR LANKE Page 2322. When all files are installed and configuration is complete, the Complete screen is displayed.Remove the Oracle VM CD.Select Reboot and press Enter. The computer reboots
PREPARED BY RAVI KUMAR LANKE Page 2423. After reboot, the Oracle VM Server status console is displayedThe status console displays useful information about the Oracle VM Servers hardware andconfiguration as well as its cluster and server pool membership. Right after installation there is very littleinformation available, but this screen is populated with more information when the Oracle VM Server isunder the control of Oracle VM Manager
PREPARED BY RAVI KUMAR LANKE Page 2524. To log on to the Oracle VM, press Alt+F2 to display the login console.You can log into Oracle VM as root, with the password you set during the install. To switch back to thestatus console, press Alt+F1.The Oracle VM Server installation is complete. The Oracle VM Agent is started automatically and restartseach time the computer is rebooted
PREPARED BY RAVI KUMAR LANKE Page 26Changing the Dom0 Memory SizeWhen you install Oracle VM Server, the installer sets a default memory size for Dom0. The algorithmusedis:dom0_mem = 502 + int(physical_mem * 0.0205)Example sizes are set out in table Table 2.1.Table 2.1. Default Dom0 Memory SizePhysical Memory Dom0 Memory2 GB 543 MB4 GB 585 MBChanging the Dom0 Memory Size 20Physical Memory Dom0 Memory8 GB 669 MB16 GB 837 MB32 GB 1173 MB64 GB 1845 MB128 GB 3188 MB256 GB 5875 MB512 GB 11249 MB1024 GB 21997 MB2048 GB 43493 MBYou may encounter performance issues if the dom0 memory size is not set appropriately for your needsonthe Oracle VM Server. For example, you may encounter performance issues when running more than 10virtual machines on an Oracle VM Server.To change the Dom0 memory allocation, edit the /boot/grub/grub.conf file on the Oracle VM Server andchange the dom0_mem parameter, for example, to change the memory allocation to 1024 MB, edit thefileto be:kernel /xen.gz console=com1,vga com1=38400,8n1 dom0_mem=1024M
PREPARED BY RAVI KUMAR LANKE Page 27ORACLE VM MANAGER INSTALLATIONOracle VM Manager ComponentsThe applications necessary to run Oracle VM Manager are packaged in the ISO image. Some or all of thefollowing applications may be installed on the host computer when you install Oracle VM ManagerOracle VM Manager:The Oracle VM Manager application provided as a Oracle WebLogicServer domain and containerOracle WebLogic Server 11g:Oracle WebLogic Server Release 11g, including ApplicationDevelopment Framework (ADF) Release 11g. For more informationabout Oracle WebLogicUse of Oracle WebLogic Server with Oracle VM Manager is restrictedto the servlet functionality without clustering for the Oracle VMManagement ServerOracle Database:In a new installation, Oracle Database 11g Express Edition (Oracle XE)for Linux 64-bit may be installed. If Oracle XE is already installed, theinstaller asks whether it should use the existing database, install a newone, or use another database in the local area network (LAN). For moreinformation about Oracle XEYou should only use the Oracle XE database as the Oracle VMManager repository in non-production environments. Oracle XE isnot a supported product and Oracle Support Services cannot providebug fixes or patches for this product. If you are deploying Oracle VMManager in a production environment, you should use Oracle DatabaseStandard or Enterprise Edition, which you must install separately toOracle VM. Oracle VM Manager includes a restricted-use license of theOracle Database (Standard Edition or Enterprise Edition) for use asthe Oracle VM Manager Management Repository only. The supportedversion of Oracle Database are:• Oracle Database Release 10.2.0.4 or greater• Oracle Database Release 126.96.36.199 or greater• Oracle Database Release 188.8.131.52 or greater
PREPARED BY RAVI KUMAR LANKE Page 28Minimum Hardware and Software RequirementsThe following minimum system requirements must be met on the computer on which you want to installOracle VM ManagerHardware RequirementsHardware Requirements for Oracle VM ManagerItems Minimum ValueMemory 1.5 GB4 GB with Oracle XEProcessor Type 64 bitProcessor Speed 1.83 GHz*1Swap Space 2.1 GBHard Disk Space 5 GB in /u012 GB in /tmpSoftware RequirementsBefore you install Oracle VM Manager, make sure that your computer meets the following minimumsoftware and configuration requirementsOperating SystemsOracle VM Manager is supported on the following operating systems:• Oracle Linux 5 Update 5 64-bit or later• Oracle Linux 6 64-bit or later• Red Hat Enterprise Linux 5 Update 5 64-bit or later• Red Hat Enterprise Linux 6 64-bit or laterYou can download Oracle Linux from:https://edelivery.oracle.com/linuxNoteFor more information about Oracle Linux, see:http://linux.oracle.com/http://www.oracle.com/technetwork/topics/linux/whatsnew/index.ht
PREPARED BY RAVI KUMAR LANKE Page 29NetworkThe host computer on which you install Oracle VM Manager must have the host name correctlyconfigured(pingable). Make sure the computers host name matches the host name in the /etc/hosts file. Use thefollowing command to check the host name:# hostnameUse a text editor to check the host name in the /etc/hosts file. For example, to use VI enter# vi /etc/hostsFor example, if the computers host name is hostname1.example.com, and the IP address is 10.1.1.1, thecorresponding item in the /etc/hosts file should be:10.1.1.1 hostname1.example.com hostname1Web BrowsersThe Oracle VM Manager user interface is supported in the following Web browsers:• Microsoft Internet Explorer 7.0 and above• Mozilla Firefox 3.5 and above• Apple Safari 5.0 and above• Google Chrome 1.0 and aboveEnvironment Configuration ScriptThe createOracle.sh is a script that automatically:• Creates the operating system dba group• Creates the oracle user and adds it to the dba group• Creates the /u01 directory• Sets the required parameters in the /etc/security/limits.conf file• Opens the required ports in the /etc/sysconfig/iptables fileTo run the createOracle.sh script, you must first mount the Oracle VM Manager installer ISO file or CDThen enter the following command as the root user:# ./createOracle.shPrerequisite PackagesThis section contains the prerequisite operating system packages that may be required prior to installingOracle VM Manager
PREPARED BY RAVI KUMAR LANKE Page 30LibaioIf you select during the Oracle VM Manager installation to use Oracle Database 11g Express Edition(Oracle XE) as the management data repository, you must install the libaio package. You must installlibaio release 0.3.104 or above.If your computer is configured with Oracle Unbreakable Linux Network (ULN) you can run either of thefollowing commands to update or install libaio, whichever is appropriate for your system:# yum install libaioOr# up2date libaioYou can also find the libaio package on the Oracle Linux DVD or ISO file. To install libaio, go to thedirectory where the libaio.rpm is located, and enter the command:# rpm -ivh libaio-version.rpmTo upgrade libaio, you can use the command:# rpm -Uvh libaio-version.rpmBcIf you plan to use the Oracle XE database as the management data repository, you must install the bcpackage (GNU numeric processing language). To install bc, enter:# yum install bcFirewall ConfigurationA default Oracle Linux install has the firewall enabled (iptables on). In order to use Oracle VM Managerona system with iptables enabled you can either open all the ports used by Oracle VM Manager, or open allports by disabling iptables.The ports required for the web browser connection to Oracle VM Manager are: 7001, 7002 and 15901.Theports used by the Oracle VM Servers to connect to Oracle VM Manager are: 7001, 7002, and optionally54321 and 54322 for remote API access. Oracle VM Manager, in turn, connects to the Oracle VMServersthrough port 8899 for Oracle VM Agent communication, and port 6900 and up for secure VNC tunnelingtovirtual machines (one port per VM). Be sure to open the necessary ports on the different firewalls thatmaybe installed between different parts of your network. Follow the guidelines of in the diagram below:To disable iptables and open all ports, enter the following commands as the root user:# service iptables stop# chkconfig iptables offAlternatively, open the required ports by using the iptables command as the root user:# iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 7001 -j ACCEPT# iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 7002 -j ACCEPT# iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 15901 -j ACCEPT
PREPARED BY RAVI KUMAR LANKE Page 31# iptables -A INPUT -m state --state NEW -m udp -p udp --dport 123 -j ACCEPTTo remotely connect to the Oracle VM Manager core API, also enter the following command:Software Requirements26# iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 54321 -j ACCEPT# iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 54322 -j ACCEPTWhen all the ports have been opened, save the iptables configuration:# service iptables saveThis does not require iptables to be restarted as the commands open the ports while iptables is runningand the save ensures they are opened on reboot/restart in future.To configure the firewall to open the required ports automatically, use the environment configuration scriptprovided with the Oracle VM Manager installerInstallation Ports, Passwords, and Database InformationDuring the Oracle VM Manager installation, you may be required to set or enter the following ports,passwords and database connection information:• The Oracle Database hostname. This is the IP address or hostname of the host on which the OracleDatabase to use as the Oracle VM Manager database repository is located. The default is localhost.• The Oracle Database System ID (SID). This is the database SID to use to connect to the Oracle VMManager database repository.• The Oracle Database HTTP port. The default port number is 8080.• The Oracle Database listener port. The default port number is 1521.• The password for the Oracle Database SYS and SYSTEM accounts. You cannot use special charactersfor this password. Use only alpha numeric characters.• The password for the Oracle VM Manager OVS database schema.• The password for the Oracle WebLogic admin account.The password you use for the Oracle WebLogic admin account must conform to the following rules:• Be between 8 and 16 characters in length.• Contain at least 1 lower case and 1 upper case letter.• Contain at least 1 numeric value or special character.Oracle XE UserYou must have an oracle user that is a member of a group named dba. If an oracle user does not exist onthe Oracle VM Manager host, enter the following commands as the root user to create the user, createthegroup, add the user to the group, and set the users password:# groupadd dba# useradd -g dba oracleIf the oracle user already exists, add it to the dba group using the following command:# usermod -g dba oracleThe oracle user must also have a hard nofiles and soft nofiles minimum of at least 8192, aswell as some other security limits set. To set these, edit the /etc/security/limits.conf file to include thefollowing:Oracle hard nofile 8192oracle soft nofile 8192oracle soft nproc 4096oracle hard nproc 4096oracle soft core unlimitedoracle hard core unlimited
PREPARED BY RAVI KUMAR LANKE Page 32To configure the oracle user automatically, use the environment configuration script provided with theOracle VM Manager installer/u01 DirectoryOracle VM Manager and supporting products are installed into the /u01/app/oracle directory. Before youbegin the Oracle VM Manager installation, make sure a /u01 directory exists, and it has at least 2.4 GB ofspace available.To create the /u01 directory automatically, use the environment configuration script provided with theOracle VM Manager installerInstalling Oracle VM ManagerIt takes approximately 8-15 minutes to complete the installation of Oracle VM Manager, depending on theperformance of the Oracle VM Manager host, and the installation type you chooseBefore you can being the install, download the Oracle VM Manager software from:http://edelivery.oracle.com/oraclevmNoteIf you want to install Oracle VM Manager in a virtualized environment, do not installit on Oracle VM Server (dom0) directly; install it into a virtual machine running onan Oracle VM ServerMounting the Oracle VM Manager Installation MediaBefore you can run the Oracle VM Manager installer, you must mount the installation media. You caneither burn the installation media to a CD and mount the CD, or mount the ISO file directly from the harddrive. Which ever way you choose to mount the installation media, you should perform this as the rootuser on the computer on which you want to install Oracle VM ManagerTo install Oracle VM Manager from a CD, burn the Oracle VM Manager ISO file to a CD. Insert andmount the Oracle VM Manager CD using the following commands:# mkdir mount-point# mount /dev/cdrom mount-pointWhere mount-point refers to the directory on which you mount the ISO file.• To install Oracle VM Manager from a hard drive, locate the folder that contains the ISO file. Mount theISO file to an existing directory using the following commands:# mkdir mount-point# mount -o loop OracleVM-Manager-version.iso mount-pointWhere mount-point refers to the directory on which you mount the ISO file. For example:# mkdir /OVMCD# mount -o loop OracleVM-Manager-3.x.x.iso /OVMCDYou can find all the mounted files under the directory /OVMCD
PREPARED BY RAVI KUMAR LANKE Page 33NoteThe location of the mounted Oracle VM Manager ISO file should be accessible bythe oracle userRunning the Oracle VM Manager InstallerTo install Oracle VM Manager, enter the mount point you created in Section 3.4.1, “Mounting the OracleVM Manager Installation Media”, for example, /OVMCD and start the installation with the runInstallerscript as the root user:# cd /OVMCD# ./runInstaller.shA set of installer options are displayed:Please select an installation type:1: Demo2: Production3: Uninstall4: HelpAt the command prompt, enter 1 (a demo install) or 2 (a production install) to install Oracle VM Manager.If you already have Oracle VM Manager installed and want to uninstall it, select 3 (uninstall).Demo InstallThe demo installation installs Oracle Database XE, Oracle WebLogic Server, Oracle ApplicationDevelopment Framework (ADF), Java, and Oracle VM Manager on the local system. Use this installationoption for testing and non-production environments; do not use this installation option in productionenvironments. Oracle XE is not a supported product and Oracle Support Services cannot provide bugRunning the Oracle VM Manager Installer 29 fixes or patches for this product. The following exampleinstall shows a demo installation, and sample configuration options