spants

article: Running OSX Mavericks under KVM with QEMM

129 posts in this topic

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!

0

Share this post


Link to post
Share on other sites

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...

0

Share this post


Link to post
Share on other sites

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?

Is this the farthest point that you have been with creating an OS X VM? or have you gotten further with the guide?

0

Share this post


Link to post
Share on other sites

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?

0

Share this post


Link to post
Share on other sites

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.

0

Share this post


Link to post
Share on other sites

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!

0

Share this post


Link to post
Share on other sites

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

0

Share this post


Link to post
Share on other sites

Would you show me your output of the following:

 

virsh domxml-from-native qemu-argv /path/to/test_osx

0

Share this post


Link to post
Share on other sites

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

0

Share this post


Link to post
Share on other sites

@jude, I have a theory!

 

Will you enter this at the end of your OS X XML:

 

    
<qemu:arg value='-cpu'/>
<qemu:arg value='core2duo,vendor=GenuineIntel'/>

0

Share this post


Link to post
Share on other sites

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

 

0

Share this post


Link to post
Share on other sites

@jude, I have a theory!

 

Will you enter this at the end of your OS X XML:

 

    
<qemu:arg value='-cpu'/>
<qemu:arg value='core2duo,vendor=GenuineIntel'/>

 

I think you've got it. Installing !

0

Share this post


Link to post
Share on other sites

@jude, I have a theory!

 

Will you enter this at the end of your OS X XML:

 

    
<qemu:arg value='-cpu'/>
<qemu:arg value='core2duo,vendor=GenuineIntel'/>

 

I think you've got it. Installing !

 

BOOM!

0

Share this post


Link to post
Share on other sites

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

0

Share this post


Link to post
Share on other sites

I can confirm that the addition of

 

<qemu:arg value='-cpu'/>
<qemu:arg value='core2duo,vendor=GenuineIntel'/>

 

Just before the </domain> works a treat! :)

0

Share this post


Link to post
Share on other sites

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.
0

Share this post


Link to post
Share on other sites

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.

0

Share this post


Link to post
Share on other sites

BTW I updated the guide and cleaned up the XML a bit.

 

Changes:

Added vcpupin

Changed qcow2 disk to img

Changed hard drive bus from ide to sata

Changed memballoon to none

0

Share this post


Link to post
Share on other sites

Great to hear. Glad we figured out how to get the AMD cpu's working.

0

Share this post


Link to post
Share on other sites

Absolutely awesome. You nailed it.

 

Very cool to be able to run OSX10.10.3, a Win8.1 Gaming/HTPC, Dockers and unRaid on the same hardware simultaneously.  :)

 

Thanks again

 

0

Share this post


Link to post
Share on other sites

archedraft/jude,

 

Would you be able to to post a short video on youtube, showing how you use your setup ?

 

To get an idea how you switch between os' and how responsive they appear on screen.

 

Hopefully you can accommodate.

 

Thanks in advance !

0

Share this post


Link to post
Share on other sites

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.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

Copyright © 2005-2017 Lime Technology, Inc. unRAID® is a registered trademark of Lime Technology, Inc.