10. Node要执行:/etc/init.d/eucalyptus-nc start
11。对于我来说要在同一台PC上执行这三个操作。执行cloud时说You should have at least 32 loop devices。可以使用命令:ls -l /dev/loop* | wc -l 来查看你现在有几个loop device.如果小于32,vim /etc/modprobe.conf(这里不同的机器可能有所不同),增加一行:options loop max_loop=64,然后modprobe loop。再输入ls-l /dev/loop* | wc -l 看看是否为64。
如果是64之后继续敲命令。可能会在启动nc的时候报出失败:
You should have at least 32 loop devices
Starting Eucalyptus services: Node Controller cannot be started: errors in /opt/eucalyptus/var/log/eucalyptus/euca_test_nc.log
我查看了以下/opt/eucalyptus/var/log/eucalyptus/euca_test_nc.log这个文件。有以下几行。
libvir: Xen Daemon error : internal error failed to connect to xend
libvir: Xen Daemon error : unable to connect to 'localhost:8000': Connection refused
libvirt error: unable to connect to 'localhost:8000': Connection refused (code=38)
难道是8000端口没有开?关闭防火墙和SELinux之后,再试。结果还是这个错误。莫非是有什么软件没有装?再试试这个命令:
yum install -y java-1.6.0-openjdk-devel ant ant-nodeps libvirt-devel curl-devel \
安装结束!(我只用了一台机器安装云...多台的暂时没有尝试。)
如果出现了以下的错误:
Restarting Eucalyptus cluster controller: (13)Permission denied: make_sock: could not bind to address [::]:8774
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:8774
no listening sockets available, shutting down
Unable to open logs
Failed to start the CC!
那一定是system-config-security中,防火墙没有置为disable或者seLinux没有置为passivate或者disable导致的。