OSDev.org
https://forum.osdev.org/

QEMU error
https://forum.osdev.org/viewtopic.php?f=13&t=56325
Page 1 of 1

Author:  CleverDever [ Sat Jun 18, 2022 9:45 am ]
Post subject:  QEMU error

Hello, I am new to this forum and trying to develop a sample OS from this article https://wiki.osdev.org/Bare_Bones.
I have followed every step of this article, from making a cross-compiler to making an ISO file using grub. I want to test my OS using qemu but whenever I try to run it it gives me the following error.
Unable to init server: Could not connect: Connection refused
gtk initialization failed.

Can anyone help me with this issue?

Attachments:
Capture.PNG
Capture.PNG [ 9.6 KiB | Viewed 5975 times ]

Author:  klange [ Sun Jun 19, 2022 5:17 pm ]
Post subject:  Re: QEMU error

It looks like you're using WSL. QEMU is a graphical application, so you'll need to make sure your WSL environment is set up with support for that - either by running an X server, or with WSLg, or something similar.

Alternatively, QEMU has native Windows builds, which may be a better option as it's available with support for hardware virtualization that can be troublesome to setup with nesting within WSL (since WSL is, itself, using hardware virtualization to run Linux).

Author:  CleverDever [ Mon Jun 20, 2022 1:01 am ]
Post subject:  Re: QEMU error

Can you guide me what steps should I follow for my OS to work??

Author:  Octocontrabass [ Mon Jun 20, 2022 2:43 pm ]
Post subject:  Re: QEMU error

Install QEMU in Windows. Don't use QEMU in WSL.

Author:  CleverDever [ Tue Jun 21, 2022 11:52 am ]
Post subject:  Re: QEMU error

Thank you for your help guys.It finally worked. :D

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/