openstack day3 远程管理KVW虚拟机

这里其实有一个要配置的地方。 因为 KVM(准确说是 Libvirt)默认不接受远程管理,需要按下面的内容配置被管理宿主机中的两个文件:

vim /etc/default/libvirt-bin

start_libvirtd="yes"
libvirtd_opts="-d -l"

vim   /etc/libvirt/libvirtd.conf

listen_tls = 0

listen_tcp = 1

unix_sock_group = "libvirtd"

unix_sock_ro_perms = "0777"

unix_sock_rw_perms = "0770"

auth_unix_ro = "none"

auth_unix_rw = "none"

auth_tcp = "none"

然后重启 Libvirtd 服务就可以远程管理了。

service libvirt-bin restart

猜你喜欢

转载自blog.csdn.net/weixin_51788903/article/details/117304675