首页 > 其他分享 >qemu-system-x86_64 ---- Unable to init server: Could not connect: Connection refused 错误

qemu-system-x86_64 ---- Unable to init server: Could not connect: Connection refused 错误

时间:2023-03-11 17:11:05浏览次数:42  
标签:init x86 Could system Connection Unable 64 connect qemu

报错如下:

 

Unable to init server: Could not connect: Connection refused
gtk initialization failed

 

原因很可能是你没有连接VGA

可以使用 echo $DISPLAY 来看看是否连接VGA

如果连接了VGA,会输出 :0

否则什么都不会输出

 

最大的可能是你在使用 vscode 远程连接虚拟机,然后运行了 qemu-system-x86_64

试试直接使用虚拟机,或者通过 VNC 连接,再运行 qemu

 

标签:init,x86,Could,system,Connection,Unable,64,connect,qemu
From: https://www.cnblogs.com/yinhuachen/p/17206455.html

相关文章