首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >QEMU中Spice的默认端口

QEMU中Spice的默认端口
EN

Stack Overflow用户
提问于 2021-05-09 21:37:16
回答 1查看 745关注 0票数 1

我正在我的支持KVM的Raspberry 4(运行UbuntuDesktop21.04)上虚拟化Ubuntu和其他aarch64操作系统。我已经成功地在我的OpenGL Ubuntu20.04客户机中启用了aarch64加速,使用了QEMU --virtio-gpu,virgl=on --display sdl,gl=on。但是,我不想使用SDL来呈现窗口,而是使用Spice。下列人员将这样做:

代码语言:javascript
复制
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系统进行复制)

代码语言:javascript
复制
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.1localhost

那么,我需要(本地)通过remote-viewer连接到VM的哪个端口呢?我的VM运行在我的Raspberry Pi 4上,我想通过同样的Pi 4连接到它。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-03-05 15:52:02

选项"gl=on“和”port=.“是不兼容的,这是在这个提交中引入的

注释解释了virtlg使用unix套接字,因此与远程访问不兼容。

但是,您可以在本地连接,从qemu开始时:

代码语言:javascript
复制
 --spice disable-ticketing,gl=on,unix,addr=/tmp/spice.sock 

然后使用以下方法进行本地连接:

代码语言:javascript
复制
remote-viewer spice+unix:///tmp/spice.sock
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67462512

复制
相关文章

相似问题

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