opennebula 创建虚拟机失败
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了opennebula 创建虚拟机失败相关的知识,希望对你有一定的参考价值。
Mon May 16 15:28:40 2016 [Z0][DiM][I]: New VM state is ACTIVE.Mon May 16 15:28:40 2016 [Z0][LCM][I]: New VM state is PROLOG.Mon May 16 15:28:41 2016 [Z0][LCM][I]: New VM state is BOOTMon May 16 15:28:41 2016 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/3/deployment.0Mon May 16 15:28:41 2016 [Z0][VMM][I]: ExitCode: 0Mon May 16 15:28:41 2016 [Z0][VMM][I]: Successfully execute network driver operation: pre.Mon May 16 15:28:41 2016 [Z0][VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy '/var/lib/one//datastores/0/3/deployment.0' 'kvm_slave219' 3 kvm_slave219Mon May 16 15:28:41 2016 [Z0][VMM][I]: error: Failed to create domain from /var/lib/one//datastores/0/3/deployment.0Mon May 16 15:28:41 2016 [Z0][VMM][I]: error: internal error: Invalid harddisk device name: KVMMon May 16 15:28:41 2016 [Z0][VMM][E]: Could not create domain from /var/lib/one//datastores/0/3/deployment.0Mon May 16 15:28:41 2016 [Z0][VMM][I]: ExitCode: 255Mon May 16 15:28:41 2016 [Z0][VMM][I]: Failed to execute virtualization driver operation: deploy.Mon May 16 15:28:41 2016 [Z0][VMM][E]: Error deploying virtual machine: Could not create domain from /var/lib/one//datastores/0/3/deployment.0Mon May 16 15:28:41 2016 [Z0][DiM][I]: New VM state is FAILED
创建失败,请大神指点。
path=%java_home%\bin
classpath=.;%java_home%\lib\tools.jar;%java_home%\lib\dt.jar
先确保这些配置正确
然后再编译执行你的文件
javac xxx.java
java xxx
再不行,你就重装一下JDK试试呢,最新版的追问
先生,你是不是答错了问题?
尽管看着不对劲,我还是老老实实的安装了JDK环境,然而并没有什么用。
不管怎么样,刚看到回复时,自己还是高兴了一下的,依然感谢。
Opennebula常用命令
查看虚拟机状态信息:
[[email protected] /]$ onevm list
查看虚拟机配置:
[[email protected] /]$ onevm show 25
启动虚拟机:
[[email protected] /]$ onevm resume 25
重启虚拟机:
[[email protected] /]$ onevm reboot --hard 25
关闭虚拟机:
[[email protected] /]$ onevm poweroff --hard 25
修改虚拟机cpu,vcpu,memory(需要关机才可以操作):
[[email protected] /]$ onevm resize 25 --cpu 4 --vcpu 4 --memory 4G
删除虚拟机:
[[email protected] /]$ onevm shutdown --hard 25
[THE END]
以上是关于opennebula 创建虚拟机失败的主要内容,如果未能解决你的问题,请参考以下文章
求助贴:vsphere esxi 4.0,克隆虚拟机时创建快照失败
OpenStack使用flat网络创建虚拟机失败——PortBindingFailed: Binding failed for port