Now just copy all the files from Clover.iso into it, and edit the ist as described previously. So you’ve now got a pristine empty EFI environment. Sudo qemu-nbd -c /dev/nbd1 -f raw clover.raw # Mount the raw file as a device (you need qemu for this) # Make an empty file big enough to hold an EFI partition*:ĭd if=/dev/zero of=clover.raw count=1 bs=100M This is pretty easy to replicate once you know how: (I have no idea how to build Clover from scratch.) I came up with another solution: building an editable Clover disk image that you can attach to the VM instead of Clover.iso. Unfortunately, this is hard to do in Linux because ISO9660 partitions are meant to be read only and most editing methods end up destroying important EFI data. You also have to set the resolution in EFI/CLOVER/ist (in the Clover. Use VBoxManage setextradata $MOJAVEVM VBoxInternal2/EfiGraphicsResolution 1920×1080 How to set screen resolution on with Linux host: If you want to change it you must modify the clover.iso clover/ist The 1680×1050 is hardcoded on the clover.iso in the configuration. VBoxManage setextradata “$NAME” “VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC” VBoxManage setextradata “$NAME” “VBoxInternal/Devices/smc/0/Config/DeviceKey” “ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc” VBoxManage setextradata “$NAME” “VBoxInternal/Devices/efi/0/Config/DmiBoardProduct” “Iloveapple” VBoxManage setextradata “$NAME” “VBoxInternal/Devices/efi/0/Config/DmiSystemVersion” “1.0” VBoxManage setextradata “$NAME” “VBoxInternal/Devices/efi/0/Config/DmiSystemProduct” “iMac11,3” VBoxManage setextradata “$NAME” VBoxInternal2/EfiGraphicsResolution “$VM_RES” VBoxManage setextradata "$NAME" "CustomVideoMode1" "$x32” VBoxManage modifyvm "$NAME" -usbxhci on -firmware efi -chipset ich9 -mouse usbtablet -keyboard usb Make sure you have no VirtualBox windows open (close all just in case) and run the following script #!/bin/bash You can download the macOS Mojave from here īefore we run the VM make sure you execute the following script to setup VirtualBox for macOS – replace the NAME variable with the name of the VirtualBox guest name. Next we upload the Mojave.iso to our Linux host and continue with the standard macOS VirtualBox setup (In the first stage attach Mojave.iso – clover.iso will be in the second one) Hdiutil convert ~/Desktop/ -format UDTO -o ~/Desktop/Mojave.iso Hdiutil detach /Volumes/Install\ macOS\ Mojave/ Sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia -volume /Volumes/install_build Hdiutil attach /tmp/ -noverify -mountpoint /Volumes/install_build Without actually installing it, after download is finished we run the following sets of commands to create the Mojave.iso hdiutil create -o /tmp/Mojave.cdr -size 6000m -layout SPUD -fs HFS+J We will download the Mojave dmg via AppleStore from the Mojave-Beta VBox guest that we installed earlier ( you can download the ready made ISO from here Short entry here, since it was covered in the early article (which you can find here -> ) how to setup the Mojave-Beta in VirtualBox and Apple released the stable Mojave yesterday. As of VirtualBox 6.1 Clover.iso is not needed, since VirtualBox supports EFI APFS boot now
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |