您的位置:首页 > 其它

ubuntu14.04安装xen

2015-08-21 10:43 232 查看
在遇到 命令: virsh version

返回:error: failed to connect to the hypervisor

error: internal error: libxenlight state driver is not active

的解决办法:

Start Nautilus as root in terminal:

sudo -H nautilus


Find and copy the file
/etc/xen/xend-config.sxp
to
/etc/xen/xend-config.sxp.backup
:

sudo cp /etc/xen/xend-config.sxp /etc/xen/xend-config.sxp.backup


Open the file
/etc/xen/xend-config.sxp
with
gedit
or
nano
:

sudo -H gedit /etc/xen/xend-config.sxp


Find and uncomment the following lines:

xend-unix-server no
, and change it to
xend-unix-server yes

xend-unix-path /var/lib/xend/xend-socket
, and change it to
xend-unix-path /var/lib/xend/xend-socket


Save the edited file and exit gedit or nano.

Restart
libvirt-bin
,
xen
and
xendomains
services:

sudo service libvirt-bin restart
sudo service xen restart
sudo service xendomains restart
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: