***GUIDE*** Mac OS X 10.11 El Capitan – VM on unRAID


Recommended Posts

I cannot seem to figure out why I cannot see the VDISK created as an install destination during the install. Available disks only show the install ISO. The file is there and permissions are OK. The path is correct. What could I be missing? The vm syslog shows nothing useful. Here is my config.

 

<domain type='kvm' id='14' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  <name>OSX-El-Capitan-10.11-VNC</name>
  <uuid>0ba39646-7ba1-4d41-9602-e2968b2fe36d</uuid>
  <metadata>
    <type>None</type>
  </metadata>
  <memory unit='KiB'>4194304</memory>
  <currentMemory unit='KiB'>4194304</currentMemory>
  <vcpu placement='static'>2</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='1'/>
    <vcpupin vcpu='1' cpuset='2'/>
  </cputune>
  <resource>
    <partition>/machine</partition>
  </resource>
  <os>
    <type arch='x86_64' machine='pc-q35-2.3'>hvm</type>
    <kernel>/mnt/cache/vmdisk/macvm/enoch_rev2795_boot</kernel>
    <boot dev='hd'/>
    <bootmenu enable='yes'/>
  </os>
  <features>
    <acpi/>
  </features>
  <cpu mode='custom' match='exact'>
    <model fallback='allow'>core2duo</model>
  </cpu>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/bin/qemu-system-x86_64</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw'/>
      <source file='/mnt/cache/vmdisk/macvm/ElCapitan.img'/>
      <backingStore/>
      <target dev='hda' bus='sata'/>
      <alias name='sata0-0-0'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <controller type='usb' index='0'>
      <alias name='usb'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0'/>
    </controller>
    <controller type='sata' index='0'>
      <alias name='ide'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pcie-root'>
      <alias name='pcie.0'/>
    </controller>
    <controller type='pci' index='1' model='dmi-to-pci-bridge'>
      <alias name='pci.1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x0'/>
    </controller>
    <controller type='pci' index='2' model='pci-bridge'>
      <alias name='pci.2'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x01' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:00:20:30'/>
      <source bridge='br0'/>
      <target dev='vnet2'/>
      <model type='e1000-82545em'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x03' function='0x0'/>
    </interface>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='vnc' port='5902' autoport='yes' websocket='5702' listen='0.0.0.0' keymap='en-us'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <video>
      <model type='vmvga' vram='16384' heads='1'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
    </video>
    <memballoon model='none'>
      <alias name='balloon0'/>
    </memballoon>
  </devices>
  <seclabel type='none' model='none'/>
  <qemu:commandline>
    <qemu:arg value='-device'/>
    <qemu:arg value='usb-kbd'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='usb-mouse'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='isa-applesmc,osk=XXXXXXXXXXXXXXXXXXXX'/>
    <qemu:arg value='-smbios'/>
    <qemu:arg value='type=2'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='ide-drive,bus=ide.1,drive=MacDVD'/>
    <qemu:arg value='-drive'/>
    <qemu:arg value='id=MacDVD,if=none,snapshot=on,file=/mnt/user/software/driveimages/Install_OS_X_10.11.4_El_Capitan.iso'/>
    <qemu:arg value='-cpu'/>
    <qemu:arg value='core2duo,vendor=GenuineIntel'/>
  </qemu:commandline>
</domain>

Link to comment

I cannot seem to figure out why I cannot see the VDISK created as an install destination during the install. Available disks only show the install ISO. The file is there and permissions are OK. The path is correct. What could I be missing? The vm syslog shows nothing useful. Here is my config.

 

<domain type='kvm' id='14' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  <name>OSX-El-Capitan-10.11-VNC</name>
  <uuid>0ba39646-7ba1-4d41-9602-e2968b2fe36d</uuid>
  <metadata>
    <type>None</type>
  </metadata>
  <memory unit='KiB'>4194304</memory>
  <currentMemory unit='KiB'>4194304</currentMemory>
  <vcpu placement='static'>2</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='1'/>
    <vcpupin vcpu='1' cpuset='2'/>
  </cputune>
  <resource>
    <partition>/machine</partition>
  </resource>
  <os>
    <type arch='x86_64' machine='pc-q35-2.3'>hvm</type>
    <kernel>/mnt/cache/vmdisk/macvm/enoch_rev2795_boot</kernel>
    <boot dev='hd'/>
    <bootmenu enable='yes'/>
  </os>
  <features>
    <acpi/>
  </features>
  <cpu mode='custom' match='exact'>
    <model fallback='allow'>core2duo</model>
  </cpu>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/bin/qemu-system-x86_64</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw'/>
      <source file='/mnt/cache/vmdisk/macvm/ElCapitan.img'/>
      <backingStore/>
      <target dev='hda' bus='sata'/>
      <alias name='sata0-0-0'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <controller type='usb' index='0'>
      <alias name='usb'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0'/>
    </controller>
    <controller type='sata' index='0'>
      <alias name='ide'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pcie-root'>
      <alias name='pcie.0'/>
    </controller>
    <controller type='pci' index='1' model='dmi-to-pci-bridge'>
      <alias name='pci.1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x0'/>
    </controller>
    <controller type='pci' index='2' model='pci-bridge'>
      <alias name='pci.2'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x01' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:00:20:30'/>
      <source bridge='br0'/>
      <target dev='vnet2'/>
      <model type='e1000-82545em'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x03' function='0x0'/>
    </interface>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='vnc' port='5902' autoport='yes' websocket='5702' listen='0.0.0.0' keymap='en-us'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <video>
      <model type='vmvga' vram='16384' heads='1'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
    </video>
    <memballoon model='none'>
      <alias name='balloon0'/>
    </memballoon>
  </devices>
  <seclabel type='none' model='none'/>
  <qemu:commandline>
    <qemu:arg value='-device'/>
    <qemu:arg value='usb-kbd'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='usb-mouse'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='isa-applesmc,osk=XXXXXXXXXXXXXXXXXXXX'/>
    <qemu:arg value='-smbios'/>
    <qemu:arg value='type=2'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='ide-drive,bus=ide.1,drive=MacDVD'/>
    <qemu:arg value='-drive'/>
    <qemu:arg value='id=MacDVD,if=none,snapshot=on,file=/mnt/user/software/driveimages/Install_OS_X_10.11.4_El_Capitan.iso'/>
    <qemu:arg value='-cpu'/>
    <qemu:arg value='core2duo,vendor=GenuineIntel'/>
  </qemu:commandline>
</domain>

 

The only difference I can see with your xml is the line <backingStore/> under the disk section. I honestly have no idea what that line represents but you could try removing it. Also I use pc-q35-2.5 for line <type arch='x86_64' machine='pc-q35-2.3'>hvm</type>

 

Sorry if its not much help.

Link to comment

Unfortunately neither change made a difference.

 

I did notice as the script runs it reports that it was created for version 10.11 and that I have 10.11.4. I wonder if this could be a versioning issue?

 

 

 

The only difference I can see with your xml is the line <backingStore/> under the disk section. I honestly have no idea what that line represents but you could try removing it. Also I use pc-q35-2.5 for line <type arch='x86_64' machine='pc-q35-2.3'>hvm</type>

 

Sorry if its not much help.

Link to comment

i am trying to read osk key but cant seem to.

 

I am using pre-compiled Mac OS X binary to read the OSK0 and OSK1 keys from a Mac. The source is from the [Mac OS X Internals book website](http://www.contrib.andrew.cmu.edu/~somlo/OSXKVM/).

 

when i run the binarie on my macbook i get the following

 

Last login: Sat Nov 14 08:36:46 on ttys000

Macbooks-MacBook-Pro:~ user$ /Users/user/Desktop/osx-kvm/smc_read ; exit;

xxxxxxx Edit-- Ha ok found it-- feel stupid now lol xxxxxxxxxx

logout

Saving session...

...copying shared history...

...saving history...truncating history files...

...completed.

 

[Process completed]

 

how do i see the key please?

 

@gridrunner

 

Where did you get the precompiled binary?  I can only find the source code at the link you posted.

Link to comment

Unfortunately neither change made a difference.

 

I did notice as the script runs it reports that it was created for version 10.11 and that I have 10.11.4. I wonder if this could be a versioning issue?

 

 

 

The only difference I can see with your xml is the line <backingStore/> under the disk section. I honestly have no idea what that line represents but you could try removing it. Also I use pc-q35-2.5 for line <type arch='x86_64' machine='pc-q35-2.3'>hvm</type>

 

Sorry if its not much help.

 

Bummer but no, the osx version is not the problem as I use 10.11.4 to create my install.

Link to comment

I cannot seem to figure out why I cannot see the VDISK created as an install destination during the install. Available disks only show the install ISO. The file is there and permissions are OK. The path is correct. What could I be missing? The vm syslog shows nothing useful. Here is my config.

 

<domain type='kvm' id='14' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  <name>OSX-El-Capitan-10.11-VNC</name>
  <uuid>0ba39646-7ba1-4d41-9602-e2968b2fe36d</uuid>
  <metadata>
    <type>None</type>
  </metadata>
  <memory unit='KiB'>4194304</memory>
  <currentMemory unit='KiB'>4194304</currentMemory>
  <vcpu placement='static'>2</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='1'/>
    <vcpupin vcpu='1' cpuset='2'/>
  </cputune>
  <resource>
    <partition>/machine</partition>
  </resource>
  <os>
    <type arch='x86_64' machine='pc-q35-2.3'>hvm</type>
    <kernel>/mnt/cache/vmdisk/macvm/enoch_rev2795_boot</kernel>
    <boot dev='hd'/>
    <bootmenu enable='yes'/>
  </os>
  <features>
    <acpi/>
  </features>
  <cpu mode='custom' match='exact'>
    <model fallback='allow'>core2duo</model>
  </cpu>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/bin/qemu-system-x86_64</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw'/>
      <source file='/mnt/cache/vmdisk/macvm/ElCapitan.img'/>
      <backingStore/>
      <target dev='hda' bus='sata'/>
      <alias name='sata0-0-0'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <controller type='usb' index='0'>
      <alias name='usb'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0'/>
    </controller>
    <controller type='sata' index='0'>
      <alias name='ide'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pcie-root'>
      <alias name='pcie.0'/>
    </controller>
    <controller type='pci' index='1' model='dmi-to-pci-bridge'>
      <alias name='pci.1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x0'/>
    </controller>
    <controller type='pci' index='2' model='pci-bridge'>
      <alias name='pci.2'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x01' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:00:20:30'/>
      <source bridge='br0'/>
      <target dev='vnet2'/>
      <model type='e1000-82545em'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x03' function='0x0'/>
    </interface>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='vnc' port='5902' autoport='yes' websocket='5702' listen='0.0.0.0' keymap='en-us'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <video>
      <model type='vmvga' vram='16384' heads='1'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
    </video>
    <memballoon model='none'>
      <alias name='balloon0'/>
    </memballoon>
  </devices>
  <seclabel type='none' model='none'/>
  <qemu:commandline>
    <qemu:arg value='-device'/>
    <qemu:arg value='usb-kbd'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='usb-mouse'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='isa-applesmc,osk=XXXXXXXXXXXXXXXXXXXX'/>
    <qemu:arg value='-smbios'/>
    <qemu:arg value='type=2'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='ide-drive,bus=ide.1,drive=MacDVD'/>
    <qemu:arg value='-drive'/>
    <qemu:arg value='id=MacDVD,if=none,snapshot=on,file=/mnt/user/software/driveimages/Install_OS_X_10.11.4_El_Capitan.iso'/>
    <qemu:arg value='-cpu'/>
    <qemu:arg value='core2duo,vendor=GenuineIntel'/>
  </qemu:commandline>
</domain>

 

Stupid question but you ARE going into disk utility to format the desk right? It is in disk utility that you only see the osx install image? Can you verify that your ElCapitan.img was created properly as a 120GB image and that your path to it in the xml is 100% correct? Let us know.

Link to comment

Um... well... as it turns out... that's not such a stupid question. Although.... I feel really stupid at the moment.

 

Somehow I missed this little nugget of knowledge "and start up Disk Utility" wedged in-between the pics on step 8. I only read it 8 zillion times but apparently not correctly. DUH!!  I definitely deserve a well placed "Gibbs slap on the back of the head".

 

I will hide my shame and continue on with the install. Thanks for the help.

 

Stupid question but you ARE going into disk utility to format the desk right? It is in disk utility that you only see the osx install image? Can you verify that your ElCapitan.img was created properly as a 120GB image and that your path to it in the xml is 100% correct? Let us know.

Link to comment

Um... well... as it turns out... that's not such a stupid question. Although.... I feel really stupid at the moment.

 

Somehow I missed this little nugget of knowledge "and start up Disk Utility" wedged in-between the pics on step 8. I only read it 8 zillion times but apparently not correctly. DUH!!  I definitely deserve a well placed "Gibbs slap on the back of the head".

 

I will hide my shame and continue on with the install. Thanks for the help.

 

Stupid question but you ARE going into disk utility to format the desk right? It is in disk utility that you only see the osx install image? Can you verify that your ElCapitan.img was created properly as a 120GB image and that your path to it in the xml is 100% correct? Let us know.

 

Happens to the best of us.

Link to comment

Question:

I know this might be a long shot but oh what the heck

If all I have was AMD 8320 or 8350 on a 990FX motherboard, would it be very difficult to setup OS X (any flavor) with unRAID ?? I'd like to make an OS X VM with VGA passthrough on my Unraid

 

I notice the Community Spreadsheet did have successful case of VGA passthrough for 990FX setup but not sure about OS X.

Is it an worth the trouble to go through? or is it just futile mixing AMD CPU and OS X in the beginning?

Thanks!

Link to comment

Question:

I know this might be a long shot but oh what the heck

If all I have was AMD 8320 or 8350 on a 990FX motherboard, would it be very difficult to setup OS X (any flavor) with unRAID ?? I'd like to make an OS X VM with VGA passthrough on my Unraid

 

I notice the Community Spreadsheet did have successful case of VGA passthrough for 990FX setup but not sure about OS X.

Is it an worth the trouble to go through? or is it just futile mixing AMD CPU and OS X in the beginning?

Thanks!

 

It should work with your mainboard... just pay attention to the guide where you add the extra XML config options to enable intel emulation.  I have an AMD and it works fine.... I have yet to do the passthru. That's my next task.

Link to comment

 

Question:

I know this might be a long shot but oh what the heck

If all I have was AMD 8320 or 8350 on a 990FX motherboard, would it be very difficult to setup OS X (any flavor) with unRAID ?? I'd like to make an OS X VM with VGA passthrough on my Unraid

 

I notice the Community Spreadsheet did have successful case of VGA passthrough for 990FX setup but not sure about OS X.

Is it an worth the trouble to go through? or is it just futile mixing AMD CPU and OS X in the beginning?

Thanks!

 

I would say give it a shot. A lot of other users with AMD boards have the VM up and running.

Link to comment

@archedraft

 

Just wanted to say thank you for your guide. 

 

I recently upgraded my UR server to a dual E5-2670 system. The dual-xeon machine is great except that it idles at 120 watts. My old UR server idled at 55 watts. 

 

In addition to unraid I have a mac that has been running Mavericks Server that idles at 50 watts.

 

My thinking was that if I could virtualize Mavericks server, then I could turn off the mac and save about 50 watts. By turning off the old UR server and the mac, I would save 105 watts to net against 120 watts of the new UR server. Bottom line:  for 15 watts more power, I have a much more powerful UR server that can do a lot more than I ever did with both of the older servers.

 

Your guide helped to make this possible. The script that you used to make the El Capitan ISO warns that it has only been tested with El Capitan but I can now confirm that it works with Mavericks as well.

 

Thank you.

Link to comment

Question:

I know this might be a long shot but oh what the heck

If all I have was AMD 8320 or 8350 on a 990FX motherboard, would it be very difficult to setup OS X (any flavor) with unRAID ?? I'd like to make an OS X VM with VGA passthrough on my Unraid

 

I notice the Community Spreadsheet did have successful case of VGA passthrough for 990FX setup but not sure about OS X.

Is it an worth the trouble to go through? or is it just futile mixing AMD CPU and OS X in the beginning?

Thanks!

 

Just wondering where this community spreadsheet is??

Link to comment

Hi Guys. Just had success with setting up an osx vm using a cloned startup disk of my macbook pro!!

I was surprised it worked and was so easy.

 

1. I cloned my macbook onto a usb 3 harddrive.

2  Then connected said drive to unraid as an unassigned device.

3. Setup vm as in archedraft's guide but rather than using a vdisk, i passed the above usb drive to the vm.

    I did this by changing xml from

 <disk type='file' device='disk'>
      <driver name='qemu' type='raw'/>
      <source file='/mnt/cache/virtual systems/osx/vdisk.img'/>
      <target dev='hdc' bus='sata'/>
    </disk>

to

<disk type='block' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source dev='/dev/sda'/>
      <target dev='hdd' bus='sata'/>
    </disk>

 

The sda relates to what my unassigned drive was given in unraid.

 

Started vm and i booted straight into a clone of my macbook pro !!

 

 

Link to comment

Just working through the guide and run into a small issue. My install appears to hang, i type the command to boot from the bootloader and the apple logo comes up and the progress bar works its way across and just stops 3/4 of the way.

Any ideas as to what is wrong? X99 system, 2 x Nvidia cards, latest version of El Capitan.

I have other VM's working, Win 10, Win Server 2016 and OpenELEC.

 

Thanks in advance.

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.