安裝 Oracle VM Manager(OVMM) 在 guest OS。
為了要節省硬體的需求,主硬體只用來安裝 Oracle VM (Hypervisor Host),而 OVMM 就裝在 VM 上,不過,這裡會立即面臨一個問題,沒有 OVMM 要如何啟動新的 VM 呢?
方法就是用指令方式來操作 VM,直到將 OVMM 裝起來後,就有 GUI 可以作管理工具。
主要步驟:
(http://docs.oracle.com/cd/E15458_01/...4/createvm.htm)
官方下載:http://edelivery.oracle.com/oraclevm
下載檔案 V17244-01.zip,先解壓後將 OVM_EL5U3_X86_OVM_MANAGER_PVM.tgz 上傳到 OVM 主機。
以 root 登入 Oracle VM
寫一個 python 產生一個 MAC address
gen_mac.py:
#!/usr/bin/python # macgen.py script to generate a MAC address for Red Hat Virtualization guests # import random # def randomMAC(): mac = [ 0x00, 0x16, 0x3e, random.randint(0x00, 0x7f), random.randint(0x00, 0xff), random.randint(0x00, 0xff) ] return ':'.join(map(lambda x: "%02x" % x, mac)) # print randomMAC()
#python gen_mac.py
// 新增 Xen 橋接網路介面
http://wiki.debian.org/Xen#Error_.22...e_connected.22
編輯 /etc/xen/xend-config.sxp
移除註解
# It is possible to use the network-bridge script in more complicated # scenarios, such as having two outgoing interfaces, with two bridges, and # two fake interfaces per guest domain. To do things like this, write # yourself a wrapper script, and call network-bridge from it, as appropriate. # (network-script network-bridge)
重啟 xend 服務
service xend restart
// 啟動 OVMM template
mkdir /OVS/running_pool 將檔案 OVM_EL5U3_X86_OVM_MANAGER_PVM.tgz 上傳到這目錄 cd /OVS/running_pool tar xzf OVM_EL5U3_X86_OVM_MANAGER_PVM.tgz cd OVM_EL5U3_X86_OVM_MANAGER_PVM
Device 0 (vif) could not be connected. Could not find bridge, and none was specified
A:確定 OVM 已經啟動橋接網路介面