article: Running OSX Mavericks under KVM with QEMM


Recommended Posts

  • Replies 128
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Alright so here is what I want you to do.

 

ssh into unRAID and cd to where ever you keep your VM images.

 

1. type "nano test_osx"

2. Paste the following: Put in the OS X Key, Change the VNC IP, & Change the kernel and drive to match where ever you have them saved

/usr/bin/qemu-system-x86_64 -enable-kvm -m 2048 -cpu core2duo,vendor=GenuineIntel \
        -machine q35 \
        -usb -device usb-kbd -device usb-mouse \
        -device isa-applesmc,osk="PUT THE KEY HERE" \
        -kernel /mnt/vmdisk/vm_images/extra/chameleon_svn2510_boot \
        -smbios type=2 \
        -device ide-drive,bus=ide.2,drive=MacHDD \
        -drive id=MacHDD,if=none,file=/mnt/vmdisk-2/vm_images/Yosemite.img \
        -vga std \
        -vnc 192.168.1.50:5 \

3. type "chmod +x test_osx"

4. type "./test_osx"

5. Go to your VNC program and type in the VNC address (the above example would be 192.168.1.50:5905)

 

See if that boots into OS X and let me know!

Link to comment

It boots in a circle to the Chameleon loader.

I should point out that this HDD image never got installed, so should I point to the installer file somewhere as well?

 

YES! It works if I add the DVD lines like so:

 

/usr/bin/qemu-system-x86_64 -enable-kvm -m 2048 -cpu core2duo,vendor=GenuineIntel \
        -machine q35 \
        -usb -device usb-kbd -device usb-mouse \
        -device isa-applesmc,osk="PUT THE KEY HERE" \
        -kernel /mnt/vmdisk/vm_images/extra/chameleon_svn2510_boot \
        -smbios type=2 \
        -device ide-drive,bus=ide.1,drive=MacDVD \
        -drive id=MacDVD,if=none,file=/mnt/extra/vm_tools/Yosemite.iso \
        -device ide-drive,bus=ide.2,drive=MacHDD \
        -drive id=MacHDD,if=none,file=/mnt/extra/vms/Yosemite/Yosemite.qcow2 \
        -vga std \
        -vnc 0.0.0.0:5 \

 

It's installing OSX as I type this :)

Now to be able to make it permanent...

Link to comment

YES! It works if I add the DVD lines like so:

OK, that's good news. Now the next step would be to figure out how that KVM script is handling the "geniuneintel" part and then convert it to XML. I know that with virsh you can do a "virsh dumpxml" command but the KVM script is not defined with virsh currently. Does anyone know of a way to convert the script to XML?

Link to comment

BTW, that script above is how @peter_sm and I first installed OS X (well how peter first installed OSX). It was a pain in the butt to work with when you are used to XML.

 

I found it fine to follow (from a Linux cmdline perspective) ;)

I'm not sure how to get it into XML format either, but so far it's installing fine!

Link to comment

Not too sure how to work nano?

 

I have the script made up like Tophicles and I can get into nano and enter the text but nothing seems to happen.

 

Nice work on getting to install for Tophicles though :D

oh sorry, once you get the text entered, use "ctrl+x" to exit and save from nano

 

Entered text saved it in nano and exited and then did the following. What am I missing?

 

root@Tower:/mnt/disk/vmdisk/Image Media# nano test_osx
root@Tower:/mnt/disk/vmdisk/Image Media# chmod +x test_osx
root@Tower:/mnt/disk/vmdisk/Image Media# ./test_osx
./test_osx: line 1: usr/bin/qemu-system-x86_64: No such file or directory

 

Link to comment

cursor doesn't really track properly and makes it tuff to click on the continue button. Quite funny

 

This is expected behaviour - from the guide:

(The mouse is going to be laggy until we get everything installed) Hint: Move the mouse faster to get the cursor to move farther.

 

yup, found the guide again and currently waiting for the install to finish so I can work through the rest including the mouse. This is great.

Link to comment

Currently I do not have the time but to give you an idea: I have an windows VM on one desk with dual monitors keyboard and mouse and on another desk I have my OS X vm that has its own monitor keyboard and mouse. Both are running at the same time. Two people can work on the computers at once. It like have two computers.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.