安裝 Oracle VM Manager (OVMM) 在個別的機器上。
1. 下載 Oracle Linux & Oracle VM Manager ISO
下載位址:http://edelivery.oracle.com/oraclevm
2. 以標準程序安裝 Oracle Linux
注意:
硬體需求:
軟體需求:
// 複製 OVMM ISO 到主機上。
mkdir /mnt/iso mount -o loop Oracle_VM_Manager_3.2.8_V44601-01.iso /mnt/iso/ cd /mnt/iso sh createOracle.sh
OVMM 3.3.x:
[root@tycoddovmm iso]# sh createOracle.sh
Adding group 'oinstall' with gid '54321' ...
Adding group 'dba'
Adding user 'oracle' with user id '54321', initial login group 'dba', supplementary group 'oinstall' and home directory '/home/oracle' ...
Changing ownership of '/home/oracle' to oracle:dba
Creating user 'oracle' succeeded ...
For security reasons, no default password was set for user 'oracle'. If you wish to login as the 'oracle' user, you will need to set a password for this account.
Verifying user 'oracle' OS prerequisites for Oracle VM Manager ...
oracle soft nofile 8192
oracle hard nofile 65536
oracle soft nproc 2048
oracle hard nproc 16384
oracle soft stack 10240
oracle hard stack 32768
oracle soft core unlimited
oracle hard core unlimited
Setting user 'oracle' OS limits for Oracle VM Manager ...
Altered file /etc/security/limits.conf
Original file backed up at /etc/security/limits.conf.orabackup
Verifying & setting of user limits succeeded ...
Creating mountpoint '/u01' ...
Modifying iptables for OVM
Adding rules to enable access to:
7002 : Oracle VM Manager https
54322 : Oracle VM Manager core via SSL
123 : NTP
10000 : Oracle VM Manager CLI Tool
service iptables status: stop
Saving firewall rules to /etc/sysconfig/iptables: [ OK ]
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: filter [ OK ]
Unloading iptables modules: [ OK ]
Applying iptables firewall rules: [ OK ]
Loading additional iptables modules: ip_conntrack_netbios_n[ OK ]
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: filter [ OK ]
Unloading iptables modules: [ OK ]
Rules added.
sh runInstaller.sh
OVMM 3.1.x:
Please select an installation type:
1: Demo
2: Production
3: Uninstall
4: Help
Select Number (1-4): 2Oracle Database Repository
==========================
Would you like to install Oracle Database 11g Express Edition (XE) or connect to an existing Oracle database?
1: Install Oracle Database 11g XE
2: Use an existing Oracle database
Select Number (1-2): 1Enter the Oracle Database SYSTEM password:
Enter the Oracle Database SYSTEM password (confirm):
Enter the Oracle Application Express (APEX) port [8080]:
Enter the Oracle Database listener port [1521]:
Enter the Oracle VM Manager database schema [ovs]:
Enter the Oracle VM Manager database schema password:
Enter the Oracle VM Manager database schema password (confirm):Oracle Weblogic Server 11g
==========================
Enter the Oracle WebLogic Server 11g user [weblogic]:
Enter the Oracle WebLogic Server 11g user password:
Enter the Oracle WebLogic Server 11g user password (confirm):Oracle VM Manager application
=============================
Enter the username for the Oracle VM Manager administration user [admin]:
Enter the admin user password:
Enter the admin user password (confirm):Start installing the configured components:
1: Continue
2: Abort
Select Number (1-2): 1....
...
OVMM 3.2.x:
Please select an installation type:
1: Simple (includes database if necessary)
2: Custom (using existing Oracle database)
3: Uninstall
4: Help
Select Number (1-4):1
Starting production with local database installation ...
Verifying installation prerequisites ...
*** WARNING: Recommended memory for the Oracle VM Manager server installation using Local MySql DB is 7680 MB RAM
One password is used for all users created and used during the installation.
Enter a password for all logins used during the installation: <密碼必須包含有大小寫英文與數字>
OVMM 3.3.1:
Please select an installation type:
1: Install
2: Upgrade
3: Uninstall
4: Help
Select Number (1-4): 1
One password is used for all users created and used during the installation.
Enter a password for all logins used during the installation: <密碼必須包含有大小寫英文與數字>
Please enter your fully qualified domain name, e.g. ovs123.us.oracle.com, (or IP address) of your management server for SSL certification generation 10.15.9.30 [ovmm.localdomain]: <Enter>
Start installing Oracle VM Manager:
1: Continue
2: Abort
Select Number (1-2): 1
TIPs:
* 如果遇到 disk 可用空間只夠安裝 OVMM,如果再上傳 OVMM 的安裝 ISO 檔後(約 2.5GB),可用空間就會不夠,此時可以利用外部的 NFS 分享目錄。
* 使用 NFS 目錄安裝時,先執行 chmod -R 0755,避免某些檔案權限不足。
* 安裝時間需要 2x-3x 分鐘,請耐心等候。
為了要能透過 VNC 連接到 VM 做管理,必須要再安裝這個套件。
cd /mnt/iso rpm -ivh ovmcore-console-1.0-36.el5.noarch.rpm
安裝完成。
OVMM 3.1.x)
打開瀏覽器輸入 http://ovmm.ip.address:7001/ovm/console,帳號 admin,密碼如安裝時的設定。
OVMM 3.2.x, 3.3.1)
URL 改成 https://ovmm.ip.address:7002/ovm/console,帳號 admin,密碼如安裝時的設定。
A:編輯 /etc/hosts,將主機名稱加上。