Setting up QEMU: Difference between revisions

From KolibriOS wiki
Jump to navigation Jump to search
Line 5: Line 5:
If you already familiar with QEMU but have toubles with net, simply add following options to the qemu start command:
If you already familiar with QEMU but have toubles with net, simply add following options to the qemu start command:


<code>-net nic,model=ne2k_pci -net user</code>
<code>-net nic,model=rtl8139 -net user</code>


It should work fine. So the whole run command looks like this:
It should work fine. So the whole run command looks like this:


<code>qemu -L . -m 128 -fda /path/to/kolibri.img -boot a -hda /path/to/c100.img -hdb /path/to/c100_2.img -localtime -vga vmware -net nic,model=ne2k_pci -net user -soundhw ac97</code>
<code>qemu -L . -m 128 -fda /path/to/kolibri.img -boot a -hda /path/to/c100.img -hdb /path/to/c100_2.img -localtime -vga vmware -net nic,model=rtl8139 -net user -soundhw ac97 -usb -usbdevice tablet</code>


Where
Where
Line 28: Line 28:
-vga vmware
-vga vmware
: Emulating vga card. <ref>QEMU man page http://qemu.weilnetz.de/qemu-doc.html#index-g_t_002dvga-60</ref>
: Emulating vga card. <ref>QEMU man page http://qemu.weilnetz.de/qemu-doc.html#index-g_t_002dvga-60</ref>
-net nic,model=ne2k_pci -net user
-net nic,model=rtl8139 -net user
: Net settings. NE2K, RTL8139, i8255x, i8254x and Pcnet are all supported. <ref>QEMU man page http://qemu.weilnetz.de/qemu-doc.html#index-g_t_002dnet-70</ref>
: Net settings. ne2k_pci, RTL8139, i8255x, i8254x and Pcnet are all supported. <ref>QEMU man page http://qemu.weilnetz.de/qemu-doc.html#index-g_t_002dnet-70</ref>
-soundhw ac97
-soundhw ac97
: Emulating sound hardware. <ref>QEMU man page http://qemu.weilnetz.de/qemu-doc.html#index-g_t_002dsoundhw-26</ref>
: Emulating sound hardware. <ref>QEMU man page http://qemu.weilnetz.de/qemu-doc.html#index-g_t_002dsoundhw-26</ref>

Revision as of 19:00, 26 January 2014

The purpose of this tutorial is to setup KolibriOS in QEMU (virtual machine emulator).

Using command line

If you already familiar with QEMU but have toubles with net, simply add following options to the qemu start command:

-net nic,model=rtl8139 -net user

It should work fine. So the whole run command looks like this:

qemu -L . -m 128 -fda /path/to/kolibri.img -boot a -hda /path/to/c100.img -hdb /path/to/c100_2.img -localtime -vga vmware -net nic,model=rtl8139 -net user -soundhw ac97 -usb -usbdevice tablet

Where

-L .

BIOS, VGA BIOS and keymaps in current directory. [1]

-m 128

Virtual RAM size to megs megabytes. [2]

-fda /path/to/kolibri.img

Floppy disk image. [3]

-boot a

Boot floppy first. [4]

-hda /path/to/c100.img -hdb /path/to/c100_2.img

Hard disk image. [5]

-localtime

Set virtual machine time to host machine time

-vga vmware

Emulating vga card. [6]

-net nic,model=rtl8139 -net user

Net settings. ne2k_pci, RTL8139, i8255x, i8254x and Pcnet are all supported. [7]

-soundhw ac97

Emulating sound hardware. [8]

-usb -usbdevice tablet

The usb tablet HID device may be used to ease switching from one window to another on the host machine. (Mouse does not stay captured.) [9]

Using Qemu Manager

Step by step tutorial follows! We’re going to need these programs/files:

The first thing we’re going to do is to setup KolibriOS virtual machine on Qemu Manager, so it’s assumed that you have installed it already.

Launch Qemu Manager and you will see the following window.

Img00001.gif

Click on the Img00002.gif toolbar button to add a new machine. Then it will ask you to write the new virtual machine name:

Img00003.gif

Then click Next and in that window fill the Virtual Machine RAM textbox with a RAM needed, remember that KolibriOS support 8MB of RAM as a minimum, I suggest using 64Mb

Img00004.gif

Click Next and in this window check “This Virtual Machine Does Not Require A Virtual Drive”

Img00005.gif

In the next window don’t modify anything:

Img00006.gif

Click Next and in the following window click on “Save Virtual Machine” button

Img00007.gif

It will show you the following window:

Img00008.gif

Select the “Disk Configuration” tab and click on the shown button, which is for choosing our KolibriOS floppy image:

Img00010.gif

Then select the appropiate floppy image

Img00011.gif

It will warn you but just click YES to continue:

Img00012.gif

Next select “Boot from floppy disk”

Img00013.gif

Now just click Play, and let it fly!

References