解决远程无法virt-manager的问题
2015-09-18 16:36
696 查看
现象,执行ssh $remoteIP之后,
[xxoo@BJ_SJHL_LHZQ0006 ~]$ virt-manager
Unable to initialize GTK: could not open display
解决方法:
通过ssh -X连接对端服务器
之后继续,输入virt-manager之后,弹出下面的页面信息:
解决方法:
在/etc/polkit-1/localauthority/50-local.d/50-lhop.pkla
[Remote libvirt SSH access]
Identity=unix-group:xxoo
Action=org.libvirt.unix.manage;org.libvirt.unix.monitor
ResultAny=yes
ResultInactive=yes
ResultActive=yes
确保unix-group中包含的lhop用户是管理员用户即可
国外注释:
The above would allow users of group “lhop” to access libvirt and manage libvirt through policy kit action “org.libvirt.unix.manage” . The above rules are placed in file 50-org.example-libvirt-remote-access.pkla under directory “/etc/polkit-1/localauthority/50-local.d”.
添加上述内容之后,再次执行virt-manager,显示如下信息,表示正常:
[xxoo@BJ_SJHL_LHZQ0006 ~]$ virt-manager
Unable to initialize GTK: could not open display
解决方法:
通过ssh -X连接对端服务器
之后继续,输入virt-manager之后,弹出下面的页面信息:
解决方法:
在/etc/polkit-1/localauthority/50-local.d/50-lhop.pkla
[Remote libvirt SSH access]
Identity=unix-group:xxoo
Action=org.libvirt.unix.manage;org.libvirt.unix.monitor
ResultAny=yes
ResultInactive=yes
ResultActive=yes
确保unix-group中包含的lhop用户是管理员用户即可
国外注释:
The above would allow users of group “lhop” to access libvirt and manage libvirt through policy kit action “org.libvirt.unix.manage” . The above rules are placed in file 50-org.example-libvirt-remote-access.pkla under directory “/etc/polkit-1/localauthority/50-local.d”.
添加上述内容之后,再次执行virt-manager,显示如下信息,表示正常:
相关文章推荐
- 如何使用 virt-manager 运行虚拟机
- KVM虚拟机的安装和使用方法
- libvir: error : cannot execute binary /usr/bin/qemu-kvm: Permission denied
- Libvirt编译安装
- Liunx virt-manager启动出错解决办法
- (转载)qemu/kvm/qemu-kvm/virsh的区别
- c语言调用libvirt库函数创建资源池Pool
- nova boot, reboot, suspend 工作流
- Ubuntu 源代码(Source Code) 编译安装 libvirt
- libvirt/qemu特性之cpu hotplug
- 云计算 KVM,QEMU,Libvirt联系
- KVM的HVM虚拟机使用非串口方式建立virsh console 连接
- Ubuntu 14.10安装libvirt KVM
- 在vmware上安装kvm(debian)
- openstack某节点空间不足
- Windows下Libvirt Java API使用教程(一)- 开发环境部署 推荐
- 在libvirt 中体验容器 推荐
- 虚拟化工具KVM的安装配置详解
- openvswitch在kvm中使用libvirt
- 通过Libvirt控制KVM虚拟机资源的方法 推荐