Qemu

From OSx86

Jump to: navigation, search

Almost by accident I found a way to boot Leopard in qemu. As this great emulator (it can do things others can't) is barely mentioned in this Wiki, let's start a new page.

You may also find the lengthy descriptions for Vmware interesting.

Contents

[edit] qemu 0.7

(Taken from Emulation Progress)

Here may not be an sample command to use (on Windows):

qemu-system-x86_64.exe -L . -m 124 -hda d:\darwinhd.img -cdrom \
d:\darwinx86-801.iso -enable-audio -localtime -boot d

And at the bootloader, you have to pass those option:

platform=X86PC

[edit] qemu 0.9

(Taken from Emulation Progress)

Using a deadmoo image(10.4.1) (qemu for windows 0.9.0), boot is successful with boot parameters

platform=X86PC "Graphics Mode"="800x600x16" -v

(other graphics modes may be used). Jas install images do not work as yet.

[edit] qemu 0.9.1

qemu boots and installs properly with something like this:

qemu-img create -f qcow2 Leopard.qcow2 10G
qemu-system-x86_64 -usbdevice keyboard -usbdevice mouse -m 1024 \
-hda Leopard.qcow2 -cdrom ToH_x86_9A581_RC2.iso

First, hit F12 to tell the qemu BIOS to boot off the CD. Immediately thereafter, hit F8 in the Darwin loader. You can type '-v', but don't have to. Then continue ... and don't move the mouse too hastily.

Unfortunately, the resulting hard disk won't be recognized by qemu's BIOS - you don't even get to the F8 prompt. Besides this, it's slow. Installation takes 2 hours on a Core2Duo 2.2 GHz. Both, the '-smp 2' and the '-kernel-kqemu' options passed to qemu result in Leopard boot failures.

QEMU running 10.4.8 Tiger

Qemu can also run an installation of 10.4.8 made with VMware:

qemu-img convert -f raw Tiger-flat.vmdk -O qcow2 Tiger.qcow2
qemu-system-x86_64 -usbdevice keyboard -usbdevice mouse -m 1024 \
-hda '/media/Archiv/Mac OS X/Tiger.qcow2'

[edit] qemu 0.10.0

qemu 0.10.0 can do everything 0.9.1 could do. Additionally, it fixes enough bugs to be useable. Leopard installs and runs, with all the quirks you see on real hardware, though. Leopard (and likely Tiger) requires the -legacy option at the F8 prompt or in com.apple.boot.plist.

  • Graphics: "std" is fine, "cirrus" ist almost good and "vmware" doesn't get beyond the text console.
  • Ethernet: Of the many available NICs, the RTL8139 appears to be the only one visible to the network control panel. Downloads are shaky, but improve a lot if you run a "ping google.com" (or some other host) at the same time.
  • Audio: Not tested.
  • Misc: Make sure the machine doesn't go to sleep, there's no mechanism to wake it.
qemu-system-x86_64 -usbdevice keyboard -usbdevice mouse -vga std \
 -net nic,model=rtl8139 -net user -m 1024 -hda "My Disk Image.qcow2"
Personal tools