[問題] 請問ONEVM的問題

看板Cloud作者 (朝著目標飛)時間14年前 (2010/10/14 17:42), 編輯推噓1(106)
留言7則, 2人參與, 最新討論串1/1
抱歉!又來問問題了= =麻煩各位幫個忙! 最近在安裝Opennebula+xen, 做到xen跟Opennebula都完成安裝,服務也正常啟動, onehost list裡面也都看得到實體機,可以正常控制, xen的部份也有單獨試驗可以正常開啟vm, 但是在使用onevm create的時候,每次加到列表裡面的vm卻都無法正常啟動, 狀態都是fail,想請問各位該怎麼解決呢? 底下是$ONE_Location/var/裡面的log訊息,但是看不懂 Thu Oct 14 17:25:01 2010 [DiM][I]: New VM state is ACTIVE. Thu Oct 14 17:25:01 2010 [LCM][I]: New VM state is PROLOG. Thu Oct 14 17:25:01 2010 [VM][I]: Virtual Machine has no context Thu Oct 14 17:25:01 2010 [TM][I]: tm_ln.sh: Creating directory /home/one/var//1/images Thu Oct 14 17:25:01 2010 [TM][I]: tm_ln.sh: Executed "mkdir -p /home/one/var//1/images". Thu Oct 14 17:25:01 2010 [TM][I]: tm_ln.sh: Executed "chmod a+w /home/one/var//1/images". Thu Oct 14 17:25:01 2010 [TM][I]: tm_ln.sh: Link /home/domains/vm.img Thu Oct 14 17:25:01 2010 [TM][I]: tm_ln.sh: Executed "ln -s /home/domains/vm.img /home/one/var//1/images/disk.0". Thu Oct 14 17:25:01 2010 [TM][I]: tm_mkswap.sh: Creating directory /home/one/var//1/images Thu Oct 14 17:25:01 2010 [TM][I]: tm_mkswap.sh: Executed "mkdir -p /home/one/var//1/images". Thu Oct 14 17:25:01 2010 [TM][I]: tm_mkswap.sh: Executed "chmod a+w /home/one/var//1/images". Thu Oct 14 17:25:01 2010 [TM][I]: tm_mkswap.sh: Creating 64Mb image in /home/one/var//1/images/disk.1 Thu Oct 14 17:25:01 2010 [TM][I]: tm_mkswap.sh: Executed "dd if=/dev/zero of=/home/one/var//1/images/disk.1 bs=1 count=1 seek=64M". Thu Oct 14 17:25:01 2010 [TM][I]: tm_mkswap.sh: Initializing swap space Thu Oct 14 17:25:01 2010 [TM][I]: tm_mkswap.sh: Executed "/sbin/mkswap /home/one/var//1/images/disk.1". Thu Oct 14 17:25:01 2010 [TM][I]: tm_mkswap.sh: Executed "chmod a+w /home/one/var//1/images/disk.1". Thu Oct 14 17:25:01 2010 [LCM][I]: New VM state is BOOT Thu Oct 14 17:25:01 2010 [VMM][I]: Generating deployment file: /home/one/var/1/deployment.0 Thu Oct 14 17:25:02 2010 [VMM][I]: Command execution fail: 'cat > /home/one/var//1/images/deployment.0 && sudo /usr/sbin/xm create /home/one/var//1/images/deployment.0 && sudo /usr/sbin/xm sched-cred -d one-1 -w 256' 猜想應該是這裡的問題,但是看不懂這是什麼意思,為什麼要建立這個目錄放image進去,而且還失敗 Thu Oct 14 17:25:02 2010 [VMM][I]: STDERR follows. Thu Oct 14 17:25:02 2010 [VMM][I]: bash: /home/one/var//1/images/deployment.0: 沒有此一檔案或目錄 Thu Oct 14 17:25:02 2010 [VMM][I]: ExitCode: 1 Thu Oct 14 17:25:02 2010 [VMM][E]: Error deploying virtual machine Thu Oct 14 17:25:02 2010 [DiM][I]: New VM state is FAILED Thu Oct 14 17:25:02 2010 [TM][W]: Ignored: LOG - 1 tm_delete.sh: Deleting /home/one/var//1/images Thu Oct 14 17:25:02 2010 [TM][W]: Ignored: LOG - 1 tm_delete.sh: Executed "rm -rf /home/one/var//1/images". Thu Oct 14 17:25:02 2010 [TM][W]: Ignored: TRANSFER SUCCESS 1 - 補上ONE部份的VM設定檔 NAME = vm01 CPU = 1 MEMORY = 128 OS = [ kernel = /boot/vmlinuz-2.6.18-194.17.1.el5xen, initrd = /boot/initrd-2.6.18-194.17.1.el5xen.img , root = hda2] DISK = [ source = /home/domains/vm.img, clone = no, target = hda2, readonly = no] DISK = [ type = swap, size = 256, target = "hda1", readonly = "no" ] NIC=[IP="192.168.0.184", MAC="00:E0:18:75:C2:D5"] 麻煩各位幫個忙,感恩^^" -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.130.247.105 ※ 編輯: hanbz 來自: 220.130.247.105 (10/14 18:03)

10/14 20:08, , 1F
通常是因為opennebula沒有權限寫入/home/one/var
10/14 20:08, 1F

10/14 20:09, , 2F
或是你的nfs沒有設好,帶起VM的host並沒有辦法寫入nfs disk
10/14 20:09, 2F

10/15 10:11, , 3F
/home/one/var已經開777了 host端的NFS也設定全機給所有人
10/15 10:11, 3F

10/15 10:11, , 4F
但是還是看到一樣的錯誤訊息= =a
10/15 10:11, 4F

10/15 10:15, , 5F
還有一點問題是 我指定開啟vm的host不是本地端 但是看訊息怎
10/15 10:15, 5F

10/15 10:16, , 6F
麼image是建立在本地端~"~這樣怪怪的
10/15 10:16, 6F

10/21 18:10, , 7F
現在解決了 重灌OS之後一切問題都搞定= =a 原因不明
10/21 18:10, 7F
文章代碼(AID): #1Cjj2U3d (Cloud)
文章代碼(AID): #1Cjj2U3d (Cloud)