From 797dc1c3befca792b4c4da6d4d48b52d51db53d1 Mon Sep 17 00:00:00 2001 From: Jack <31696646+myspaghetti@users.noreply.github.com> Date: Tue, 2 Jul 2019 22:31:03 +0300 Subject: [PATCH] restore EFI parameters to avoid installer warnings --- macos-guest-virtualbox.sh | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/macos-guest-virtualbox.sh b/macos-guest-virtualbox.sh index 25e3fb7..d3b06f2 100644 --- a/macos-guest-virtualbox.sh +++ b/macos-guest-virtualbox.sh @@ -2,7 +2,7 @@ # Semi-automatic installer of macOS on VirtualBox # (c) myspaghetti, licensed under GPL2.0 or higher # url: https://github.com/img2tab/macos-guest-virtualbox -# version 0.69.5 +# version 0.69.6 # Requirements: 40GB available storage on host # Dependencies: bash >= 4.0, unzip, wget, dmg2img, @@ -20,11 +20,17 @@ resolution="1280x800" # VM display resolution # Clover SMBIOS options screen. Run them on a genuine Mac. # ioreg -l | grep -m 1 "Device Model Name" # ioreg -l | grep -m 1 product-name +DmiSystemProduct="MacBookPro11,3" # ioreg -l | grep -m 1 IOPlatformSerialNumber +DmiSystemSerial="NO_DEVICE_SN" # ioreg -l | grep -m 1 board-id +DmiBoardProduct="Mac-2BD1B31983FE1663" # nvram 4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14:MLB | awk '{ print $NF }' +DmiBoardSerial="NO_LOGIC_BOARD_SN" # ioreg -l | grep -m 1 PlatformUUID +DmiSystemUuid="CAFECAFE-CAFE-CAFE-CAFE-DECAFFDECAFF" # ioreg -l -p IODeviceTree | grep \"system-id +UUID="bytes:qqq7u8zM3d3u7v//AAAREQ==" # welcome message whiteonred="\e[48;2;255;0;0m\e[38;2;255;255;255m" @@ -412,6 +418,18 @@ VBoxManage modifyvm "${vmname}" --cpus "${cpucount}" --memory "${memorysize}" \ --vram "${gpuvram}" --pae on --boot1 dvd --boot2 disk --boot3 none \ --boot4 none --firmware efi --rtcuseutc on --usbxhci on --chipset ich9 \ --mouse usbtablet --keyboard usb --audiocontroller hda --audiocodec stac9221 +VBoxManage setextradata "${vmname}" \ + "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "${DmiSystemProduct}" +VBoxManage setextradata "${vmname}" \ + "VBoxInternal/Devices/efi/0/Config/DmiSystemSerial" "${DmiSystemSerial}" +VBoxManage setextradata "${vmname}" \ + "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "${DmiBoardProduct}" +VBoxManage setextradata "${vmname}" \ + "VBoxInternal/Devices/efi/0/Config/DmiBoardSerial" "${DmiBoardSerial}" +VBoxManage setextradata "${vmname}" \ + "VBoxInternal/Devices/efi/0/Config/DmiSystemUuid" "${DmiSystemUuid}" +VBoxManage setextradata "${vmname}" \ + "VBoxInternal/Devices/efi/0/Config/UUID" "${UUID}" VBoxManage setextradata "${vmname}" \ "VBoxInternal/Devices/efi/0/Config/DmiSystemVendor" "Apple Inc." VBoxManage setextradata "${vmname}" \