我正在尝试在 Fedora 27 上设置虚拟机,但是当我去创建虚拟机并选择 ISO 时,我收到消息
The emulator may not have search permissions for the path '/path/to/fedora.iso'
如果我单击“是”来修复它,我会收到错误
Errors were encountered changing permissions for the following directories:
/run/media/user : [Errno 1] Operation not permitted: '/run/media/user'
It is very likely the VM will fail to start up.
正如消息所说。虚拟机确实无法启动。当我搜索问题时我发现这个帖子建议使用 sudo 运行 virt-manager,但这给出了输出。
No protocol specified
Unable to init server: Could not connect: Connection refused
No protocol specified
Unable to init server: Could not connect: Connection refused
No protocol specified
Unable to init server: Could not connect: Connection refused
(virt-manager:14616): Gtk-WARNING **: cannot open display: :0
我应该怎么做才能让虚拟经理工作?
答案1
我建议以管理员身份运行 nautilus 并更改您选择的用户的组权限。确保该用户位于 libvirt 组中。
- #sudo -i
- #鹦鹉螺
如果您需要用于用户和组权限管理的图形工具,LXQT-admin-tool 是我发现的最简单的方法。https://github.com/lxqt/lxqt-admin