Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

article: Running OSX Mavericks under KVM with QEMM

Featured Replies

sure thing, sounds good.

  • Replies 128
  • Views 40.7k
  • Created
  • Last Reply

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!

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

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?

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?

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.

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!

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

Would you show me your output of the following:

 

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

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

@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'/>

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

 

@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 !

@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!

How good are you? :D

 

Many thanks

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

I can confirm that the addition of

 

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

 

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

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.

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.

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

Fantastic. Working really well. Thanks

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

 

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 !

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.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.