Is it possible to have Mac OS X guest on a XEN host?

If yes, how?

There are difference for Mac OS X Server?

In particular I'm interested in the installation of a testing Mac OS X Server inside a XEN domU, being the host a Debian linux server in the case that this would matter.

Thanks in advance


Solution 1:

Your license for MacOS X only allows it to be run on Apple hardware. Only MacOS X server allows for virtualisation. Both vmware and Parallels have products which support this.

It is possible to run MacOS non server in other virtualisation systems however it is not legal to do so. If you ran linux on the bare metal of a Apple peice of hardware you may be able to get Xen to run MacOS server legally.

Solution 2:

Theres no known efforts for xen. Primarily because most people who use xen are running it exclusively on linux/x86/amd hardware. BUT other OSS projects, namely 'qemu' and 'virtualbox' have been working at this. It's likely that many of the technical issues you would have to overcome are similar. See: http://forums.virtualbox.org/viewtopic.php?f=4&t=2076&sid=3f507d8a7d8194f37b6dd8a089c919f5

Solution 3:

Useful links:

https://github.com/kholia/OSX-KVM

https://github.com/foxlet/macOS-Simple-KVM

https://github.com/munki/macadmin-scripts


Mojave:

#!/usr/bin/env bash
#===========================================================================
# Works only with the official image available in the Mac App Store.
# Make sure you download the official installer before running this script.
#===========================================================================

hdiutil create -o /tmp/Mojave.cdr -size 8000m -layout SPUD -fs HFS+J
hdiutil attach /tmp/Mojave.cdr.dmg -noverify -mountpoint /Volumes/install_build
sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia  --volume /Volumes/install_build --nointeraction
hdiutil detach "/Volumes/Install macOS Mojave"
hdiutil convert /tmp/Mojave.cdr.dmg -format UDTO -o /tmp/Mojave.iso
mv /tmp/Mojave.iso.cdr ~/Desktop/Mojave.iso
rm /tmp/Mojave.cdr.dmg


Catalina:

#!/usr/bin/env bash
#===========================================================================
# Works only with the official image available in the Mac App Store.
# Make sure you download the official installer before running this script.
#===========================================================================

hdiutil create -o /tmp/Catalina.cdr -size 8000m -layout SPUD -fs HFS+J
hdiutil attach /tmp/Catalina.cdr.dmg -noverify -mountpoint /Volumes/install_build
sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia  --volume /Volumes/install_build --nointeraction
hdiutil detach "/Volumes/Install macOS Catalina"
hdiutil convert /tmp/Catalina.cdr.dmg -format UDTO -o /tmp/Catalina.iso
mv /tmp/Catalina.iso.cdr ~/Desktop/Catalina.iso
rm /tmp/Catalina.cdr.dmg

Download the Installer App to you /Applications folder on Mac. Once you have the ISO your halfway there!