我是靠谱客的博主 风中煎蛋,这篇文章主要介绍qemu虚拟机_无法将QEMU guest虚拟机OS与vncviewer连接,现在分享给大家,希望可以做个参考。

qemu虚拟机

The question is as follows.

问题如下。

harry@debian:~/workshop1/qemu_test/version1/test$ qemu-system-x86_64 -hda qcow2.img -cdrom domU-x86_64-FS.img -boot d -m 1024
VNC server running on `::1:5900'

harry@debian:~/workshop1/qemu_test/version1/test$ vncviewer 127.0.0.1:1
vncviewer: ConnectToTcpAddr: connect: Connection refused
Unable to connect to VNC server

Solution (add -vnc parameter for qemu-system-x86_64):

解决方案(为qemu-system-x86_64添加-vnc参数):

harry@debian:~/workshop1/qemu_test/version1/test$ qemu-system-x86_64 -hda qcow2.img -cdrom domU-x86_64-FS.img -boot d -m 1024 -vnc 127.0.0.1:2

harry@debian:~/workshop1/qemu_test/version1/test$ vncviewer 127.0.0.1:2
Connected to RFB server, using protocol version 3.8
No authentication needed
Authentication successful
Desktop name "QEMU"
VNC server default format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
Using default colormap which is TrueColor.  Pixel format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
Same machine: preferring raw encoding

-vnc display[,option[,option[,…]]]

-vnc display [,option [,option [,…]]]

Normally, QEMU uses SDL to display the VGA output. With this option, you can have QEMU listen on VNC display display and redirect the VGA display over the VNC session.

通常,QEMU使用SDL显示VGA输出。 使用此选项,您可以让QEMU在VNC显示器上监听,并通过VNC会话重定向VGA显示。

— https://www.systutorials.com/docs/linux/man/1-qemu/

-https://www.systutorials.com/docs/linux/man/1-qemu/

I guess this is the reason.

我想这就是原因。

Answered by Eric Z Ma.
埃里克·马(Eric Z Ma)回答。

翻译自: https://www.systutorials.com/cannot-connect-qemu-guest-os-with-vncviewer/

qemu虚拟机

最后

以上就是风中煎蛋最近收集整理的关于qemu虚拟机_无法将QEMU guest虚拟机OS与vncviewer连接的全部内容,更多相关qemu虚拟机_无法将QEMU内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(149)

评论列表共有 0 条评论

立即
投稿
返回
顶部