Page 1 of 1

Qemu and HDD image

Posted: Mon Oct 27, 2014 9:11 pm
by stefano
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 set to 'on', because KolibriOS detects the disk as /hd0/1 but doesn't show the content. With the option set to 'on', KolibriOS shows the content of the disk in /bd0/1.

What could be the reason?

Re: Qemu and HDD image

Posted: Mon Oct 27, 2014 9:28 pm
by dunkaist
Unfortunately, I can't explain the reason, but it works in qemu-1.2.2. I use this version to access my /dev/sda.

Re: Qemu and HDD image

Posted: Mon Oct 27, 2014 9:41 pm
by stefano
Ok, thanks.
I will install that version.

Re: Qemu and HDD image

Posted: Mon Oct 27, 2014 10:32 pm
by stefano
Maybe to someone is useful know the warning from Qemu when trying to access /hd0/1

Code: Select all

main-loop: WARNING: I/O thread spun for 1000 iterations

Re: Qemu and HDD image

Posted: Mon Oct 27, 2014 11:15 pm
by stefano
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.

Re: Qemu and HDD image

Posted: Tue Oct 28, 2014 12:20 am
by dunkaist
There are many flags to disable features. Try this:

Code: Select all

./configure --target-list=i386-softmmu --audio-drv-list=alsa,sdl --disable-vnc --disable-bluez --disable-docs
Works on my computer (c).

Re: Qemu and HDD image

Posted: Tue Oct 28, 2014 12:53 am
by stefano
Thank you! I will try that in a few hours or tomorrow and I'll let you know the results.

Re: Qemu and HDD image

Posted: Wed Oct 29, 2014 1:37 am
by stefano
Thanks dunkaist! It compiled and worked as expected.
I set to off the option and hda.img is detected correctly as /hd0/1.

Re: Qemu and HDD image

Posted: Sat Feb 06, 2016 1:09 pm
by dunkaist
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: Select all

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