首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何解决gnome框中的(几个) VM启动问题?

如何解决gnome框中的(几个) VM启动问题?
EN

Unix & Linux用户
提问于 2022-12-25 22:32:02
回答 1查看 682关注 0票数 1

简而言之:我的虚拟机CONAN01没有在gnome框中启动,我收到/看到了不同的错误,并且不知道它们背后的真正问题是什么:

错误1:

当从Gnome桌面环境启动Gnome框并单击我的虚拟机CONAN01启动它时,我会收到一条弹出消息,其中包含打开错误日志的选项,在此错误日志中,我可以看到最后一行,状态是:

代码语言:javascript
运行
复制
2022-06-15 09:39:22.707+0000: Domain id=1 is tainted: host-cpu
char device redirected to /dev/pts/0 (label charserial0)
2022-06-15T09:39:22.800582Z qemu-system-x86_64: warning: This family of AMD CPU doesn't support hyperthreading(2)
Please configure -smp options properly or try enabling topoext feature.
2022-06-15T10:30:56.757942Z qemu-system-x86_64: terminating on signal 15 from pid 3544 (/lib/systemd/systemd)

错误2:

当使用终端启动gnome框,然后使用鼠标单击并运行虚拟机CONAN01时,我会收到以下错误:

侏儒盒

gnome-boxes启动时输出错误:

代码语言:javascript
运行
复制
(gnome-boxes:709111): Gtk-WARNING **: 22:02:27.216: GtkFlowBox with a model will ignore sort and filter functions

(gnome-boxes:709111): Gtk-WARNING **: 22:02:27.217: GtkListBox with a model will ignore sort and filter functions

(gnome-boxes:709111): GLib-GObject-WARNING **: 22:02:28.067: ../../../gobject/gsignal.c:2715: handler '2888' of instance '0x562fb55b44e0' is not blocked

虚拟机CONAN01启动时输出错误:

代码语言:javascript
运行
复制
(gnome-boxes:709111): Boxes-WARNING **: 22:02:32.045: machine.vala:605: Failed to start CONAN01: Unable to start domain: internal error: /usr/lib/qemu/qemu-bridge-helper --use-vnet --br=virbr0 --fd=31: failed to communicate with bridge helper: Transport endpoint is not connected
stderr=failed to create tun device: Operation not permitted

错误3:

当通过执行必要的命令执行gnome检查时,我会收到以下信息:

gnome-盒子-支票

信息输出:

代码语言:javascript
运行
复制
(gnome-boxes:717997): Boxes-WARNING **: 22:50:30.599: util-app.vala:376: Failed to execute child process ?restorecon? (No such file or directory)
• The CPU is capable of virtualization: yes
• The KVM module is loaded: yes
• Libvirt KVM guest available: yes
• Boxes storage pool available: no
    /root/.local/share/gnome-boxes/images is known to libvirt as GNOME Boxes’s storage pool but this directory does not exist
• The SELinux context is default: no

Report bugs to <http://gitlab.gnome.org/gnome/gnome-boxes/issues>.
Boxes home page: <https://wiki.gnome.org/Apps/Boxes>.

尽管通过使用必要的命令更改了存储池的位置,但是显示XML -配置的输出没有改变,virsh和gnome-boxes仍然认为旧位置是有效的,我的意图是更改“/home/myusername/.local/share/gnome-boxes/images”:。

virsh池-info gnome-boxes

代码语言:javascript
运行
复制
Name:           gnome-boxes
UUID:           edb0bf37-df0f-4295-a3cf-0ced96970de0
State:          running
Persistent:     yes
Autostart:      yes
Capacity:       907,44 GiB
Allocation:     531,49 GiB
Available:      375,95 GiB

virsh池-dumpxml gnome-boxes

代码语言:javascript
运行
复制
<pool type='dir'>
  <name>gnome-boxes</name>
  <uuid>edb0bf37-df0f-4295-a3cf-0ced96970de0</uuid>
  <capacity unit='bytes'>974357393408</capacity>
  <allocation unit='bytes'>570679726080</allocation>
  <available unit='bytes'>403677667328</available>
  <source>
  </source>
  <target>
    <path>/root/.local/share/gnome-boxes/images</path>
    <permissions>
      <mode>0744</mode>
      <owner>0</owner>
      <group>0</group>
    </permissions>
  </target>
</pool>

sudo virsh池-编辑gnome-boxes virsh池-dumpxml gnome-boxes

代码语言:javascript
运行
复制
<pool type='dir'>
  <name>gnome-boxes</name>
  <uuid>edb0bf37-df0f-4295-a3cf-0ced96970de0</uuid>
  <capacity unit='bytes'>974357393408</capacity>
  <allocation unit='bytes'>570679726080</allocation>
  <available unit='bytes'>403677667328</available>
  <source>
  </source>
  <target>
    <path>/root/.local/share/gnome-boxes/images</path>
    <permissions>
      <mode>0744</mode>
      <owner>0</owner>
      <group>0</group>
    </permissions>
  </target>
</pool>
EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2022-12-26 23:22:26

解决方案是在qemu实例qemu:/session上启用网络,因为gnome-boxes在该实例上创建虚拟机,默认情况下,该虚拟机无法具有复杂的网络访问权限。

要么通过给qemu-bridge-helper一个setuid位来启用它:

sudo chmod 4755 /usr/lib/qemu/qemu-bridge-helper

也可以启用该文件夹中的所有可执行文件:

sudo chmod 4755 /usr/lib/qemu/*

更复杂的信息可以在这里和这里找到:

票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/729632

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档