OpenNebula中主機添加一切正常。
執行$onehost list 主機CPU、內存資源可以正常被監控到。但是,創建虛擬機后,虛擬機狀態很長一段時間一直處于pend狀態。而OpenNebula的mm_sched調度虛擬機的周期是缺省30秒調度一次,根據調度算法適配一臺合適的主機,主機是新添加的而且是有足夠資源的,為什么不能部署呢?
我們可以通過查看虛擬機的調度日志$ONE_LOCATION/var/sched.log發現如下錯誤信息:
Tue Feb 21 [HOST][E]: Exception raised: Unable to transport XML to server and get XML response back.
HTTP response: 504 Tue Feb 22 14:27:39 2011 [POOL][E]: Could not retrieve pool info from ONE。
解決方法:
在OpenNebula官方的Wiki中可以找到原因,原因是所添加的主機使用了HTTP代理上網了,所以OpenNebula讀取了系統的http_proxy環境變量,此時就需要關閉http_proxy。
If the scheduler does not deploy the pending VMs, and messages like these are found in sched.log
[HOST][E]: Exception raised: Unable to transport XML to server and get XML response back. HTTP response code is 404, not 200 [POOL][E]: Could not retrieve pool info from ONE
Then you need to unset the http_proxy
environment variable, or set the no_proxy
accordingly.
wiki參考地址(這里匯總了使用或部署one過程中可能遇到的問題以及解決辦法):
http://wiki.opennebula.org/faq#listing_vms_takes_a_lot_of_time_why
大家對于Opennebula的安裝部署感興趣的話,可以參考vpsee的博客(
在Centos上安裝和部署Opennebula),講解的很詳細。
vpsee已經試玩了下
OpenNebula4.0,由于項目原因,目前我們還在用OpenNebula3.8.1,后面也會測試升級到OpenNebula4.0看看新功能。
升級過程同樣也參考下vpsee的
OpenNebula3.x升級到OpenNebula4.0,^^ 這么好的資源優先借鑒。
posted on 2013-06-24 18:01
David1228 閱讀(1082)
評論(0) 編輯 收藏 所屬分類:
云計算、虛擬化