Board.KolibriOS.org

Official KolibriOS board
It is currently Mon May 20, 2019 12:32 am

All times are UTC+03:00




Post new topic  Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Qemu and HDD image
PostPosted: Mon Oct 27, 2014 9:11 pm 
Offline

Joined: Tue Feb 12, 2013 9:48 pm
Posts: 166
Hi,
I followed this guide http://wiki.kolibrios.org/wiki/Setting_up_QEMU about how to run KolibriOS on Qemu.
All works ok, I can create the hda.img file and copy a file there. But the problem is that I have to boot with option [b] set to 'on', because KolibriOS detects the disk as /hd0/1 but doesn't show the content. With the option [b] set to 'on', KolibriOS shows the content of the disk in /bd0/1.

What could be the reason?


Top
   
 Post subject: Re: Qemu and HDD image
PostPosted: Mon Oct 27, 2014 9:28 pm 
Offline
Mentor
User avatar

Joined: Mon Oct 19, 2009 10:58 am
Posts: 416
Unfortunately, I can't explain the reason, but it works in qemu-1.2.2. I use this version to access my /dev/sda.


Top
   
 Post subject: Re: Qemu and HDD image
PostPosted: Mon Oct 27, 2014 9:41 pm 
Offline

Joined: Tue Feb 12, 2013 9:48 pm
Posts: 166
Ok, thanks.
I will install that version.


Top
   
 Post subject: Re: Qemu and HDD image
PostPosted: Mon Oct 27, 2014 10:32 pm 
Offline

Joined: Tue Feb 12, 2013 9:48 pm
Posts: 166
Maybe to someone is useful know the warning from Qemu when trying to access /hd0/1
Code:
main-loop: WARNING: I/O thread spun for 1000 iterations


Top
   
 Post subject: Re: Qemu and HDD image
PostPosted: Mon Oct 27, 2014 11:15 pm 
Offline

Joined: Tue Feb 12, 2013 9:48 pm
Posts: 166
I haven't found a binary for Ubuntu of Qemu 1.2 and the compilation gives some error that was fixed in a next version.
I will see what can I do.


Top
   
 Post subject: Re: Qemu and HDD image
PostPosted: Tue Oct 28, 2014 12:20 am 
Offline
Mentor
User avatar

Joined: Mon Oct 19, 2009 10:58 am
Posts: 416
There are many flags to disable features. Try this:
Code:
./configure --target-list=i386-softmmu --audio-drv-list=alsa,sdl --disable-vnc --disable-bluez --disable-docs

Works on my computer (c).


Top
   
 Post subject: Re: Qemu and HDD image
PostPosted: Tue Oct 28, 2014 12:53 am 
Offline

Joined: Tue Feb 12, 2013 9:48 pm
Posts: 166
Thank you! I will try that in a few hours or tomorrow and I'll let you know the results.


Top
   
 Post subject: Re: Qemu and HDD image
PostPosted: Wed Oct 29, 2014 1:37 am 
Offline

Joined: Tue Feb 12, 2013 9:48 pm
Posts: 166
Thanks dunkaist! It compiled and worked as expected.
I set to off the [b] option and hda.img is detected correctly as /hd0/1.


Top
   
 Post subject: Re: Qemu and HDD image
PostPosted: Sat Feb 06, 2016 1:09 pm 
Offline
Mentor
User avatar

Joined: Mon Oct 19, 2009 10:58 am
Posts: 416
OpenMoon,

these instructions are for qemu-1.2.2 which is rather outdated at the moment.

For current qemu version just install it and then add usb drive via '-usb -usbdevice disk:format=raw:fat:.', example:
Code:
qemu-system-i386 -soundhw hda -drive if=floppy,file=kolibri.img,format=raw -boot a -usb -usbdevice disk:format=raw:fat:. -net nic,model=ne2k_pci -net user


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

All times are UTC+03:00


Who is online

Users browsing this forum: No registered users and 1 guest


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:  
cron
Powered by phpBB® Forum Software © phpBB Limited