问题1
故障现象:
Wed Jan :: [DiM][I]: New VM state is ACTIVE.
Wed Jan :: [LCM][I]: New VM state is PROLOG.
Wed Jan :: [VM][I]: Virtual Machine has no context
Wed Jan :: [TM][I]: clone: Cloning ../..//761d969382aefd016b88d2dd3a347d4d in ezcloudmaster:/srv/cloud/one/var//datastores/0/3/disk.0
Wed Jan :: [TM][I]: ExitCode:
Wed Jan :: [LCM][I]: New VM state is BOOT
Wed Jan :: [VMM][I]: Generating deployment file: /srv/cloud/one/var//deployment.
Wed Jan :: [VMM][I]: ExitCode:
Wed Jan :: [VMM][I]: Successfully execute network driver operation: pre.
Wed Jan :: [VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy /srv/cloud/one/var//datastores/0/3/deployment.0 ezcloudmaster 3 ezcloudmaster
Wed Jan :: [VMM][I]: error: Failed to create domain from /srv/cloud/one/var//datastores/0/3/deployment.0
Wed Jan :: [VMM][I]: error: Cannot find QEMU binary /usr/bin/kvm: No such file or directory
Wed Jan :: [VMM][E]: Could not create domain from /srv/cloud/one/var//datastores/0/3/deployment.0
Wed Jan :: [VMM][I]: ExitCode:
Wed Jan :: [VMM][I]: Failed to execute virtualization driver operation: deploy.
Wed Jan :: [VMM][E]: Error deploying virtual machine: Could not create domain from /srv/cloud/one/var//datastores/0/3/deployment.0
Wed Jan :: [DiM][I]: New VM state is FAILED
解决办法:
管理端:
[root@cloudmaster ~]# ln -s /usr/libexec/qemu-kvm /usr/bin/kvm
问题解决~!
***************************************************************************************************************
问题2
故障现象:
Fri Jan :: [DiM][I]: New VM state is ACTIVE.
Fri Jan :: [LCM][I]: New VM state is PROLOG.
Fri Jan :: [VM][I]: Virtual Machine has no context
Fri Jan :: [TM][I]: clone: Cloning /srv/cloud/one/var/datastores//1a91f0dc3c3e9a3b702f74eb73c83ff4 in cloudserver:/srv/cloud/one/var//datastores/0/0/disk.0
Fri Jan :: [TM][I]: ExitCode:
Fri Jan :: [LCM][I]: New VM state is BOOT
Fri Jan :: [VMM][I]: Generating deployment file: /srv/cloud/one/var//deployment.
Fri Jan :: [VMM][I]: ExitCode:
Fri Jan :: [VMM][I]: Successfully execute network driver operation: pre.
Fri Jan :: [VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy /srv/cloud/one/var//datastores/0/0/deployment.0 cloudserver 0 cloudserver
Fri Jan :: [VMM][I]: error: Failed to create domain from /srv/cloud/one/var//datastores/0/0/deployment.0
Fri Jan :: [VMM][I]: error: unknown OS type hvm
Fri Jan :: [VMM][E]: Could not create domain from /srv/cloud/one/var//datastores/0/0/deployment.0Fri Jan 11 09:21:25 2013 [VMM][I]: ExitCode: 255
Fri Jan :: [VMM][I]: Failed to execute virtualization driver operation: deploy.
Fri Jan :: [VMM][E]: Error deploying virtual machine: Could not create domain from /srv/cloud/one/var//datastores/0/0/deployment.0Fri Jan 11 09:21:25 2013 [DiM][I]: New VM state is FAILED
问题原因:
主机不支持虚拟化,或者BIOS中CPU没有打开VT功能,导致kernel驱动无法加载;
解决办法:
.BIOS中开启CPU的VT功能即可;
.如果是用虚拟机搭建的Opennebula实验环境,由于虚拟机的VCPU不再支持虚拟化,Opennebula再创建的虚拟机无法加载kernel驱动,状态总是Faild;