CloudStack 安裝及使用過(guò)程中常見(jiàn)問(wèn)題匯總
在做工程項(xiàng)目中對(duì)CloudStack 安裝及使用過(guò)程中常見(jiàn)的幾個(gè)問(wèn)題及如何解決做一個(gè)總結(jié)。
1、Windows XP虛擬機(jī)內(nèi)部重啟不能正確獲取IP,windows xp iso建立VM,重啟VM無(wú)法正確獲取IP地址,原因是沒(méi)有加入域,可以通過(guò)修改注冊(cè)表來(lái)解決此問(wèn)題。設(shè)置組策略 計(jì)算機(jī)配置--管理模板--網(wǎng)絡(luò)--DNS客戶端里的DNS后綴搜索列表,設(shè)置為已啟動(dòng),后綴值為cs1group.internal
Windows 7的虛擬機(jī),還需要設(shè)置組策略計(jì)算機(jī)配置--管理模板--網(wǎng)絡(luò)--DNS客戶端里的連接特定的DNS后綴,設(shè)置為已啟動(dòng),后綴值為cs1group.internal
2、不能下載模板,有幾個(gè)問(wèn)題需要確認(rèn):
如果是系統(tǒng)模板,可能是網(wǎng)絡(luò)不通。在CloudStack Management上wget一下相應(yīng)的url,看是否能夠下載,不能下載的話,先解決網(wǎng)絡(luò)問(wèn)題。
如果是ISO或者以前的自制模板,則可能是server不對(duì)。需要確認(rèn):
1),看看瀏覽器是否能夠下載模板的URL。如果不能下載,請(qǐng)解決下載服務(wù)器的問(wèn)題(啟動(dòng)httpd,設(shè)置iso配置),然后重啟 SSVM(secondary storage VM)。
2),修改secstorage.allowed.internal.sites(10.127.0.1/24,根據(jù)實(shí)際環(huán)境配置), 然后重啟 SSVM;
3、如果primary和secondary放在系統(tǒng)硬盤,容易導(dǎo)致系統(tǒng)盤空間不足而影響系統(tǒng)運(yùn)行。可以通過(guò)如下方法修改放到其他硬盤。
1)、service cloud-management stop
2)、修改primary文件夾存放硬盤:先mv primary下所有文件到另外的目錄,然后mount newdisk primary,然后再將文件mv到primary。這樣就不會(huì)占用系統(tǒng)盤的硬盤。(secondary目錄同)
3)、service cloud-management start
4、給卷附加磁盤時(shí)出現(xiàn)錯(cuò)誤
Failed to attach volume: Disk3 to VM: cd0e453b-af53-4904-b7d7-54091ee83791; You attempted an operation that requires PV drivers to be installed on the VM. Please install them by inserting xen-pv-drv.iso
關(guān)閉VM之后重新附加磁盤,則沒(méi)有問(wèn)題.
5、增加不了host,到csmt主機(jī)上ssh host,如果不行,解決相關(guān)問(wèn)題后能夠ssh后就可以增加host了
SSH連接錯(cuò)誤,如下:
1
2
3
4
5
6
7
8
9
10
11
12
13
|
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now ( man - in -the-middle attack)! It is also possible that the RSA host key has just been changed. The fingerprint for the RSA key sent by the remote host is d0:5b:18:96:7c:ee:af:af:a2:6b:a2:02:0a:8c: cd :40. Please contact your system administrator. Add correct host key in /home/opzoon/ . ssh /known_hosts to get rid of this message. Offending key in /home/opzoon/ . ssh /known_hosts :2 RSA host key for 10.127.0.130 has changed and you have requested strict checking. Host key verification failed. |
原因:密鑰發(fā)生錯(cuò)誤
解決:vi ~/.ssh/known_hosts,刪除host對(duì)應(yīng)的密鑰
感謝閱讀,希望能幫助到大家,謝謝大家對(duì)本站的支持!