You are on page 1of 5

10/12/2016

InstallingmacOSSierraonProxmox4.3/QEMU2.6.1NicholasSherlock

InstallingmacOSSierraon
Proxmox4.3/QEMU2.6.1
ThistutorialforinstallingmacOSSierrahasbeenadaptedforProxmox4.3fromthistutorialfor
Yosemite,andthisGitHubprojectforinstallingintovanillaKVM.

Requirements
IllassumeyoualreadyhaveProxmox4.3installed.YoualsoneedarealMacavailableinorderto
downloadSierrafromtheAppStoreandbuildtheinstallationISO.

Firststep:CreateaninstallationISO
OnaMacmachine,downloadthemacOSSierrainstallerfromtheAppStore(thiswilldownloadit
intoyourApplicationsfolder).

Downloadthecontentsofthisrepositorytoyourmac.Frominsidethatdirectory,runsudo
./create_install_iso.shtocreatetheinstallCDforyou:
http://www.nicksherlock.com/2016/10/installingmacossierraonproxmox43qemu261/

1/5

10/12/2016

InstallingmacOSSierraonProxmox4.3/QEMU2.6.1NicholasSherlock

Oncethatsdone,connecttoyourProxmoxserverusingTransmit(orsomeotherSCP/SFTPclient)
anduploadtheISOyoucreatedto/var/lib/vz/template/iso.
Whileyourethere,uploadtheenoch_rev2839_bootbootloaderfilefromtheGitHubrepositoryto
/var/lib/vz/template/qemu/enoch_rev2839_boot.

FetchtheOSKauthenticationkey
macOSchecksthatitisrunningonrealMachardware,andrefusestobootonthirdpartyhardware.
YoucangetaroundthisbyreadinganauthenticationkeyoutofyourrealMachardware(theOSK
key).RunthefirstbitofCcodefromthispage(youllneedXCodeinstalled)anditllprintoutthe64
characterOSKforyou.Makeanoteofit.

CreatetheVM
FromtheProxmoxwebUI,createanewvirtualmachineasshownbelow.

http://www.nicksherlock.com/2016/10/installingmacossierraonproxmox43qemu261/

2/5

10/12/2016

InstallingmacOSSierraonProxmox4.3/QEMU2.6.1NicholasSherlock

KeepanoteofyourVMs
ID

SettheOStypetoOther

SelecttheISOyou
uploadedontheCD/DVD
page

Setthesizeofthehard
diskyouwanttoadd(I
chose32GB)

http://www.nicksherlock.com/2016/10/installingmacossierraonproxmox43qemu261/

3/5

10/12/2016

InstallingmacOSSierraonProxmox4.3/QEMU2.6.1NicholasSherlock

Settheappropriate
numberofcoresand
socketsforyourCPU(I
wentwithonesocketand
fourcores),andsetthe
CPUtypetoPenryn.

Ichoseafixedsize
memoryof8192MB.Im
unsureifvariablememory
worksonmacOS.

Choosee1000forthe
networkmodel
IntheOptionspagefortheVM,changeUsetabletforpointertoNo.
IntheHardwarepagefortheVM,changethetheDisplaytoStandardVGA(std).
DonttrytostarttheVMjustyet.First,SSHintoyourProxmoxserversowecanmakesomeeditsto
theconfigurationfiles.
Edit/etc/pve/qemuserver/YOURVMIDHERE.conf(withnanoorvim).Addthesetwolines,being
suretosubtitutetheOSKyouextractedearlierintotherightplace:

machine:pcq352.4
args:deviceisaapplesmc,osk="THEOSKYOUEXTRACTEDGOESHERE"smbios
type=2kernel/var/lib/vz/template/qemu/enoch_rev2839_bootcpu
Penryn,kvm=off,vendor=GenuineIntel

http://www.nicksherlock.com/2016/10/installingmacossierraonproxmox43qemu261/

4/5

10/12/2016

InstallingmacOSSierraonProxmox4.3/QEMU2.6.1NicholasSherlock

FindthelinethatspecifiestheISOfile,andremovethe,media=cdrompartfromtheendoftheline
(otherwiseyoullgetstuckatthebootloader).
Onthenet0line,changee1000toe100082545em.ThisvariantissupportedbyOSX.
macOSdoesntsupportthePS2keyboardandmousethatQEMUwillemulate,nordoesitsupportthe
tablet,soedit/usr/share/qemuserver/pveq35.cfgandaddtheseUSBinputdevicestothebottomof
thefileinstead:

[device"mouse"]
driver="usbmouse"
bus="ehci.0"
port="1"
[device"keyboard"]
driver="usbkbd"
bus="ehci.0"
port="2"
WeveaddedthosetotheconfigfileinsteadoftotheVMsargsdirectly.Ifweweretoaddthemtothe
VMsargs,thenwhenProxmoxconstructsitscalltoKVMtolaunchtheVM,thosedevicedefinitions
wouldappearbeforethepveq35.cfgfileisincluded,whichdefinestheUSBbusses.However,the
devicedefinitionsmustappearafterthedefinitionsoftheUSBbusthattheyreferto.

ConfigureProxmox
OnProxmox,runecho1>/sys/module/kvm/parameters/ignore_msrstoavoidabootloopduring
macOSboot.TomakethischangepersistacrossProxmoxreboots,run:

echo"optionskvmignore_msrs=Y">>/etc/modprobe.d/kvm.conf&&update
initramfskallu

InstallSierra
NowstartupyourVMandgototheConsoletab.

http://www.nicksherlock.com/2016/10/installingmacossierraonproxmox43qemu261/

5/5

You might also like