Install macOS Ventura or Sonoma on Proxmox Virtual Environment

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone and welcome back to the channel in this video I'm going to guide you on installing Mac OS Ventura on proxmox uh this is fairly standard installation process however you do need to do a couple of special things for it to run smoothly this video is based on a blog post by Nick Sherlock I'm going to link his blog post in the description if you're more of a reader than a watcher but I wanted to make a video to show these steps in action you can use either Mac OS or Linux to do the preparation steps and since I have prepared a proxmox node for this video I'm going to use the proxbox hosts to also do the preparations so with that all set let's get started to begin we need to install two things on this machine we're going to add install gits core and also the make utility oh it seems like we need to run apps updates first now that's done we can do apps install and now that these two utilities are installed we can get clone the OS 10 KVM Repository so type kids clone and then paste and again this will be in the description okay now let's go into that Repository go to the scripts directory and then go to Ventura and you'll see a make file there and then simply type make Ventura recovery dot IMG and this will download Macos Ventura from Apple servers and put the downloaded file in your local directory and then prepare is an image that went fairly quickly and every now type LS we can see a new file called Ventura recovery.img all we need to do is file since we're on the um broxbox host we can just type MV Ventura recovery.img and move that to VAR lip fidgets templates ISO and this will place that file in the iso store of your hosts apart from the Ventura image we also need the open core ISO image and you can download that again at the link below just open up this this releases page here then right click copy copy the link and then wgets that link then gnzip and now we have open core.iso and just go ahead and move that to VAR lib VZ template ISO ISO so if we now go back to our proxbox installation here and click on local then ISO images we can see these files we just we just downloaded and made so now we have this 2000 we're ready to create DVM go ahead and click create VM here at the top we're going to give the name of Ventura hit next select an ISO image select the open core image here and for the guest OS we're going to say other for the machine type we're going to pick Q35 and for the BIOS we're going to select UEFI selection EFI storage and then untick the pre-enroll keys box this is critical if you do not untick this stuff will break I'm going to enable a Q emu agents and then for this casual controller we're going to pick the short iOS because he's single go ahead and click next for the bus we're going to pick vertile block and for the disk size I'm going with 64 gigabytes hit next I'm going to give it four cores but feel free to experiment with different configurations here for the memory I'm going to go with eight gigabytes and I'm going to give it a default line adapter here for the model of the network interface I'm going to pick third IO error virtualized this should give us a little bit better performance then hit next and finish and proxbox will create a VM for you and then we are almost ready to install Mac OS Ventura we just need to make a small adjustment to the configuration of our VM here first we're going to click our new VM and go to hardware then click add and pick CD DVD drive then for the storage I'm going to select logo and for the iso image we're going to select the other file we created today Ventura recovery.img click add and now we need to make some more modifications but we can only do that from the command line so let's go back to to our terminal where we are logged into the boxbox host make a note of the VM ID for us it's 100 okay and now let's and now we're logged into our proxbox host let's go to cdetc PVE qemu server type LS and you will see a bunch of.com files one for every VM you have on your proxbox host so just edit this file I'm going to do that with fim and what we need to do here is add some stuff on the bottom here I'm going to paste these lines and again you can just copy them from the description or from the blog post and we need to replace a string here you will see the text the osk you extracted goes here but wait so we didn't extract an osk we didn't we didn't do anything besides what I showed you so we need to find a magic string here and this magic string is what makes the Mac OS boot on non-mag Hardware because Mac hardware will have this special string embedded in in the actual Hardware luckily this string is very easy to obtain and actually if you have clone to get repo OS X KVM then this string is already on your machine I'm not going to show it in this video because Apple tried to Mark these words as straight Secrets which is crazy because it's you'll see it it's just on haiku but uh yeah I'm not going to show this in the video but I'm I'm going to show you how you can find it so let's go into that OS X KVM Repository and then let's do a less on file open core boots dot sh and now let's scroll down here and you can buy a device which has Apple SMC and an osk and then a string again it's blurred in this video but I've shown you where you can find it it's hosted on on GitHub and what you need to do here is select the string copy it then go back to your VM config edit it and then replace the text the osku extracted those here with the text you just copied we said that this way we can go to our to IDE lines here for the open core ISO and Ventura recovery disk and what we need to replace here is media is CD-ROM we need to remove that and type cash equals unsafe instead and this will make sure that's DVM through each these drives as hard drives instead of CDs and DVDs okay we're almost done go ahead and save this file and then run this command and this will make sure that Mac OS doesn't boot loop when you try to start it and this command also makes sure it's it's preserved after a reboot all right and then make it active for your current session there we go and now now it's done that we can finally go to proxbox here and start the VM so go ahead and click Start and then I'm going to open the console and let's make it full screen here or maybe not I guess Firefox doesn't want me to make this full screen okay spazzing out let's go to the console here this should work better so let's hit install Mac OS Ventura here and it should boots to the recovery modes once you're into recovery modes go to Disk Utility and then hit continue because we need to prepare our disk first you'll see a couple of disks here go ahead and click the Apple Incorporated vertio block media and I will resemble the size you picked while creating the VM go ahead and click erase and I'm going to give the name Mac OS and apfs is fine but you can also pick Mac OS extended which also should be fine let's click erase and then wait for the disk to be formatted and once that is done go ahead and click done and then close out of this utility and now we can go to reinstall Mac OS Ventura click that and click continue as continue read the terms and conditions and then click agree click agree again and now here we can pick the disk we just formatted and then click continue again and now we just play the waiting game I'm going to speed through the installation but just keep in mind that Mac OS will reboot a couple of times and what you need to do when it reboots is in the boot menu that it will eventually show basically Mac OS installer every time and not the option install Mac OS Ventura that is selected by default once the installation is done the Mac OS installer will change to the name you picked during the formatting so for me that is Mac OS and once you see that you're ready for the first boots [Music] [Music] foreign [Music] go ahead and follow the out of box experience as you see here [Music] don't feel alarmed as it might feel a little bit sluggish this should become better a few minutes after you have created a user account and are the desktop once you get to this screen go ahead and hold off of logging into your Apple ID I try to do this in a previous test and it immediately blocked my Apple ID and I couldn't log in um if I drive to a blog post by uh Nick Sherlock Banner this is because by default every um virtual Macintosh is equipped with the same serial number we need to change that I'm going to show you how but for now we just click setup later and create a local user account [Music] foreign [Music] [Music] and after all that is done you will finally land at a desktop hold on we're almost there there's just a small few things we need to do first up let's find a better way to control this installation instead of using the proxmox console open system settings and go to General and find sharing and then once you're in Sharing in the sharing menu go ahead and enable screen sharing and remote login remote login is Apple's terms for term for SSH now that that's enabled let's SSH into this installation we can find the IP address by going to network then ethernets and then our IP address will be listed here [Music] we're now logged into our virtual via SSH and we need to do a couple of things like I said first we need to make the install more permanent by copying the open core bootloader to our virtual hard drive to hard drive to do this type disk util list and what we need to do here is copy the EFI partition of the ISO file to the EFI partition of our disk and in this example our open core ISO is here this is the 157 megabytes partition and our EFI disk is disk 2. and we can see that because our apfs volume is on here and it is the size we specified while creating the VM so to copy this in this example if we type sudo DD space if is slash Dev slash disk one S one and that is referring to this identifier here and space of is F slash disk 0s1 which is referring to this partition right here if means input file on of means output file and this is literally copying the partition bits by bits so hit enter It'll ask for your passwords so type in your passwords foreign [Music] will appear to hang for a while this is normal just let it sit and it should finish after a few seconds there we go it took less than 30 seconds now there's one more thing we need to do and that is change the serial number so if you go back to the console and click on about this Mac you will see the shared serial number if we're going to change stats and you can do that by running a few commands and once you run these commands you will get a message here on the console saying that you need to install the gits utility click install [Music] agree and then wait for this to finish [Music] after the software is finally installed we can run the commands again [Music] [Music] foreign [Music] commands make sure that the model matches with the model you have installed for me this was iMac Pro one comma 1 which was the default for me but yours might be different you can find this model in the system profiler on your virtual Mac after you hit enter you will be presented by two seemingly random strings these are your new serial number and board serial the MLB and now if you check about this Mac you will see the new serial number under the serial number fields [Music] so from here I'm out you're done and you can use your Mac shoe as you want if you use another Mac to control your VM you can use the screen sharing utility and I'm going to show you that now screen sharing utility is a utility that's built into every Mac and you can easily find that by searching for screen sharing in spotlight here you can type in the IP address of your Mac and then login [Music] and now you can control your Mac basically this is a bit like RDP on Windows machines also since you have configured a unique serial number you can also Now log into Apple ID and that should work just fine and because the machine has ran for uh for a little bit but the performance should also be a lot better [Music] that's been it for this video thank you very much for watching if you have any questions you can leave them in the comments and I or someone might might be able to help you out subscribe to the channel for more videos and thanks for watching if you have been see you next time [Music]
Info
Channel: Nick Bouwhuis
Views: 15,839
Rating: undefined out of 5
Keywords: mac, macos, proxmox, osx-kvm, hackintosh, kvm, virt, virtualization, ventura, macos sonoma, sonoma
Id: X-_9eKyNxMU
Channel Id: undefined
Length: 21min 28sec (1288 seconds)
Published: Tue Jun 06 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.