Version 10 (modified by wade, 13 years ago) (diff) |
---|
使用套件安裝
- 參考網站:http://packages.debian.org/squeeze-backports/opennebula
- 環境:
- debian 6.0 squeeze
- drbl
- 修改套件庫:
suod vim /etc/apt/sources.list # 增加下列套件庫 deb http://backports.debian.org/debian-backports squeeze-backports main
- 設定 oneadmin
- $HOME:/var/lib/one
vim $HOME/.one/one_auth # 設定帳號及密碼 oneadmin:passwd
- $HOME:/var/lib/one
- 切換回 root 啟動 opennebula
su - /etc/init.d/opennebula start
- 將 oneadmin 設定 ssh key。
su - oneadmin cp .ssh/id_rsa.pub .ssh/authorized_keys
- 使用 drbl re-dedeploy
/opt/drbl/sbin/dcs # 選擇 All Select all the clients --> more --> re-deploy
- 在 drbl-client ssh 至 drbl-server。
使用 opennebula 官網安裝
問題
- onehost list 畫面
ID NAME CLUSTER RVM TCPU FCPU ACPU TMEM FMEM STAT 1 pcX default 0 400 395 400 7.7G 7.4G on 2 pcY default 0 0 0 100 0K 0K err
- 解法:打開libvirt
# 檢查 libvirt 是否開啟 ps ax | grep libvirt # 出現 libvirtd 才算正常啟動 1756 ? Sl 0:00 /usr/sbin/libvirtd -d # 從 drbl server 啟動 libvirtd 服務 sudo /opt/drbl/sbin/drbl-client-service libvirt-bin on # 再到 drbl client 啟動 libvirtd sudo /etc/init.d/libvirt-bin start # 出現啟動訊息 Starting libvirt management daemon: libvirtd.
- 解法:打開libvirt
- 結果:
ID NAME CLUSTER RVM TCPU FCPU ACPU TMEM FMEM STAT 1 192.168.100.1 default 0 400 400 400 7.7G 7.6G on