qemu虚拟机_无法将QEMU guest虚拟机OS与vncviewer连接

本文介绍了当遇到无法将QEMU guest虚拟机操作系统与VNCviewer连接时的问题,提供了一个解决方案,即在qemu-system-x86_64命令中添加-vnc参数,让QEMU监听VNC显示器并重定向VGA显示,从而通过VNC会话进行连接。
摘要由CSDN通过智能技术生成

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虚拟机

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值