Install Oracle VM Manager on a guest OS(2)
注意:
- 此法需要有另一台 desktop pc 或 laptop,並且先安裝, 設定好 OVMM。
- 此法只適合新安裝的 OVMM,如果 OVMM 上已經管理了許多 VM, Storages, etc, 請參閱
主要步驟
- Install Oracle Linux on bare metal (this could even be a laptop for the duration of this initial process)
- Install Oracle VM Manager 3.2 on this bare metal Oracle Linux server
- Install Oracle VM Server on one of the bare metal servers – record the UUID it selects
- Discover this Oracle VM Server from the Oracle VM Manager
- Configure the storage, network and create a Server Pool
- Create a new VM
- Install Oracle Linux into the new VM
- ssh into the new VM
- Get the UUID of your OVM Manager
- Shutdown your OVM Manager (can just stop the service “service ovmm stop”)
- Install Oracle VM Manager into your Oracle Linux VM using the same UUID ("runInstaller.sh -uuid MY_UUID”)
- Connect to this new virtual Oracle VM Manager
- Discover the original Oracle VM Server (this will populate the new Oracle VM Manager database with all the configuration settings that the original Oracle VM Manager has recorded)
- Discover your storage devices (again, this will repopulate the new Oracle VM Manager database)
- The original bare metal Oracle VM Manager server is no longer required and can be decommissioned or reused as desired
- Continue with your remaining Oracle VM infrastructure deployment, using your Oracle VM Manager as usual
如何取得已安裝 OVMM 的 UUID
方法一:從 OVS
SSH 登入 OVS 或在本機下操作
# console
方法二:從 OVMM
# cat /u01/app/oracle/ovm-manager-3/.config
DBTYPE=MySQL
DBHOST=localhost
SID=ovs
LSNR=49500
OVSSCHEMA=ovs
APEX=8080
WLSADMIN=weblogic
OVSADMIN=admin
COREPORT=54321
UUID=0004fb000001000000af908647041847
BUILDID=3.2.8.733
還是可以把某個VM設定在OVS開機完成後VM會自動開機 編輯者 04:47, 7 Apr 2016
一旦 OVS 開機完成後,可以用 SSH 從遠端登入,再透過 xm 指令可以開啟或關閉 guest os。
#cd /OVS/Repositories/0004fb0000030000c325e3691b8ecb40/VirtualMachines/0004fb000006000061e89959fb4dc722
#xm create vm.cfg
開啓了 OVMM 這個VM 然後用OVMM 的WEB GUI 可是似乎和 OVS 有點斷了線.
用WEB GUI可以看到所有的VM和 START VM
但WEB GUI上VM的Status都一直是STOP的.?? 編輯者 09:27, 21 Apr 2016
轉移至 VM 之前先確定這空的VM 是否可以在 OVS 內用指令關閉與啟動
確認沒問題後,在開始安裝 OVMM 至這個VM,然後轉移 uuid 過來。
如果 server 是 production 不應該用這種方式,找一台實體機來裝比較好。