OSDev.org

The Place to Start for Operating System Developers
It is currently Mon Jul 04, 2022 12:11 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: QEMU error
PostPosted: Sat Jun 18, 2022 9:45 am 
Offline

Joined: Sat Jun 18, 2022 9:35 am
Posts: 3
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 263 times ]
Top
 Profile  
 
 Post subject: Re: QEMU error
PostPosted: Sun Jun 19, 2022 5:17 pm 
Online
Member
Member

Joined: Wed Mar 30, 2011 12:31 am
Posts: 587
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).

_________________
toaruos on github | toaruos.org | gitlab | twitter | bim - a text editor


Top
 Profile  
 
 Post subject: Re: QEMU error
PostPosted: Mon Jun 20, 2022 1:01 am 
Offline

Joined: Sat Jun 18, 2022 9:35 am
Posts: 3
Can you guide me what steps should I follow for my OS to work??


Top
 Profile  
 
 Post subject: Re: QEMU error
PostPosted: Mon Jun 20, 2022 2:43 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 3872
Install QEMU in Windows. Don't use QEMU in WSL.


Top
 Profile  
 
 Post subject: Re: QEMU error
PostPosted: Tue Jun 21, 2022 11:52 am 
Offline

Joined: Sat Jun 18, 2022 9:35 am
Posts: 3
Thank you for your help guys.It finally worked. :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group