OpenNebula 运行虚拟机失败

OpenNebula 运行虚拟机失败

你好,我正在尝试按照本教程使用 OpenNebula 运行虚拟机: http://docs.opennebula.org/4.8/design_and_installation/quick_starts/qs_centos7_kvm.html

但是当我想要实例化一个模板时,vm 会失败并且日志中显示:

Wed Nov 12 09:48:25 2014 [Z0][DiM][I]: New VM state is ACTIVE.
Wed Nov 12 09:48:25 2014 [Z0][LCM][I]: New VM state is PROLOG.
Wed Nov 12 09:48:25 2014 [Z0][TM][I]: Command execution fail: /var/lib/one/remotes/tm/shared/clone localhost.localdomain:/var/lib/one//datastores/1/ea53f24b6bd08f5a59d41f69fe4e356f localhost:/var/lib/one//datastores/0/9/disk.0 9 1
Wed Nov 12 09:48:25 2014 [Z0][TM][I]: clone: Cloning /var/lib/one/datastores/1/ea53f24b6bd08f5a59d41f69fe4e356f in localhost:/var/lib/one//datastores/0/9/disk.0
Wed Nov 12 09:48:25 2014 [Z0][TM][E]: clone: Command "cd /var/lib/one/datastores/0/9; cp /var/lib/one/datastores/1/ea53f24b6bd08f5a59d41f69fe4e356f /var/lib/one/datastores/0/9/disk.0" failed: ssh: connect to host localhost port 22: Connection refused
Wed Nov 12 09:48:25 2014 [Z0][TM][E]: Error copying localhost.localdomain:/var/lib/one//datastores/1/ea53f24b6bd08f5a59d41f69fe4e356f to localhost:/var/lib/one//datastores/0/9/disk.0
Wed Nov 12 09:48:25 2014 [Z0][TM][I]: ExitCode: 255
Wed Nov 12 09:48:25 2014 [Z0][TM][E]: Error executing image transfer script: Error copying localhost.localdomain:/var/lib/one//datastores/1/ea53f24b6bd08f5a59d41f69fe4e356f to localhost:/var/lib/one//datastores/0/9/disk.0
Wed Nov 12 09:48:25 2014 [Z0][DiM][I]: New VM state is FAILED

你知道哪里出了问题吗?
谢谢

答案1

错误消息表明您无法使用 ssh 连接到本地主机:

failed: ssh: connect to host localhost port 22: Connection refused

防火墙中 sshd 是否正在运行并且端口 22 是否打开?

相关内容