so i type this command in wsl <qemu-system-x86_64> and it should open the qemu window as usual but it doesn't instead it gives this error Unable to init server: Could not connect: Connection refused*
gtk initialization failed
kindly help me
Asked
Active
Viewed 6,284 times
0
Tallhypnosis373
- 9
- 1
- 2
-
2Does this answer your question? [Running GUI apps under WSL](https://askubuntu.com/questions/1389908/running-gui-apps-under-wsl). Also see [What's the easiest way to run GUI apps on Windows Subsystem for Linux?](https://askubuntu.com/q/993225/1165986). Thanks! – NotTheDr01ds Jun 30 '22 at 14:11
-
5Ack to @NotTheDr01ds but if you do not want a GIU in the first place you might consider running qemus GUI frontent in another way. Look for the -display argument which allows the gui to be served via spice or vnc. Or try text on the console via `-curses` or even no graphic at all with `-nographic`. There are many options, you have to pick what suits you best. – Christian Ehrhardt Jul 01 '22 at 05:24
-
@ChristianEhrhardt Great point. Running QEMU without the X-based GUI would be the better option under WSL on Windows 10. – NotTheDr01ds Jul 01 '22 at 05:37
1 Answers
0
I've got the same problem and fixed updating wsl from powershell,
wsl --update
also im using xming server for virtualization
nameless
- 1