Eucalyptus failed to connect to the hypervisor问题解决方法

su eucalyptus -c "virsh list"

提示:failed to connect to the hypervisor

解决方法:

1. 修改/etc/xen/xend-config.sxp

    #xend-http-server no     =>    xend-http-server yes

    #xend-address localhost    =>   xend-address localhost

    或者使用命令操作:

    sed --in-place 's/#(xend-http-server no)/(xend-http-server yes)/' /etc/xen/xend-config.sxp
    sed --in-place 's/#(xend-address localhost)/(xend-address localhost)/' /etc/xen/xend-config.sxp

2. 重启xen

    /etc/init.d/xend restart

3. 修改/etc/libvirt/libvirtd.conf

   unix_sock_group = "libvirt"        =>  #unix_sock_group = "libvirt"
   unix_sock_ro_perms = "0777"   =>  #unix_sock_ro_perms = "0777"
   unix_sock_rw_perms = "0770"  =>  #unix_sock_rw_perms = "0770"
   auth_unix_ro = "none"              =>  #auth_unix_ro = "none"
   auth_unix_rw = "none"             =>  #auth_unix_rw = "none" 

4. 重启libvirtd

   /etc/init.d/libvirtd stop

   /etc/init.d/libvirtd start

5. su eucalyptus -c "virsh list"

   Id Name State
   ----------------------------------
   0 Domain-0 running



你可能感兴趣的:(系统-Eucalyptus基础)