我正在我的支持KVM的Raspberry 4(运行UbuntuDesktop21.04)上虚拟化Ubuntu和其他aarch64操作系统。我已经成功地在我的OpenGL Ubuntu20.04客户机中启用了aarch64加速,使用了QEMU --virtio-gpu,virgl=on --display sdl,gl=on。但是,我不想使用SDL来呈现窗口,而是使用Spice。下列人员将这样做:
qemu-system-aarch64 --M virt --enable-kvm --cpu host --m 2G \
--bios /usr/share/qemu-efi-aarch64/QEMU_EFI.fd \
--device usb-ehci --device usb-kbd \
--spice disable-ticketing,gl=on,addr=127.0.0.1,port=3001 \
--device virtio-gpu,virgl=on(下面是一个例子,您可以使用x64系统进行复制)
qemu-system-x86_64 --M pc-q35 --enable-kvm --cpu host --m 2G \
--device usb-ehci --device usb-kbd \
--spice disable-ticketing,gl=on,addr=127.0.0.1,port=3001 \
--device virtio-gpu,virgl=on但返回SPICE GL support is local-only for now and incompatible with -spice port/tls-port。
当我在port=3001参数中省略--spice时,它不会抛出错误,但是我不知道如何连接到这个新VM。使用--display spice-app不起作用,因为Ubuntu的virt-viewer版本是7.0,而不是必要的8.0。因此,我尝试使用remote-viewer (与virt-manager捆绑),即使尝试使用3000, 3001, 5900, 5901之类的端口,也无法连接到127.0.0.1或localhost。
那么,我需要(本地)通过remote-viewer连接到VM的哪个端口呢?我的VM运行在我的Raspberry Pi 4上,我想通过同样的Pi 4连接到它。
发布于 2022-03-05 15:52:02
选项"gl=on“和”port=.“是不兼容的,这是在这个提交中引入的
注释解释了virtlg使用unix套接字,因此与远程访问不兼容。
但是,您可以在本地连接,从qemu开始时:
--spice disable-ticketing,gl=on,unix,addr=/tmp/spice.sock 然后使用以下方法进行本地连接:
remote-viewer spice+unix:///tmp/spice.sockhttps://stackoverflow.com/questions/67462512
复制相似问题