This is the 31st day of my participation in the August More Text Challenge
A lifelong learner, practitioner and sharer committed to the path of technology, a busy and occasionally lazy original blogger, an occasionally boring and occasionally humorous teenager.
Welcome to dig friends wechat search “Jie Ge’s IT journey” attention!
This open source wizard will help you install your MacOS virtual machine quickly!
Hello, I’m JackTian.
Installing Windows and Linux is the most familiar of the necessary skills.
Macos-guest-virtualbox.sh is a very useful open source script to help you quickly install macOS on VirtualBox.
Macos-guest -virtualbox.sh is an open source Bash script that helps you quickly install the MacOS operating system and download the unmodified MacOS installation files directly from the Apple server.
On macOS, Windows subsystem for Linux and centOS 7.
During installation, you only need to press Enter less than 10 times as prompted by the script, and no interactive operation is required with the VM.
Currently supports macOS Catalina (10.15), Mojave (10.14), and High Sierra (10.13).
ICloud, iMessage, and other connected Apple services require a valid device name, serial number, etc.
To use these services and other legitimate Apple parameters, you can set them in NVRAM by editing a script.
#! /bin/bash # Push- Button Installer of macOS on VirtualBox # (c) myspaghetti, licensed under GPL2.0 or higher # URL: https://github.com/myspaghetti/macos-virtualbox # version 0.93.3... Function set_variables() {# Customize the installation by setting these variables vm_name="macOS" # name of the VirtualBox virtual machine macOS_release_name="Catalina" # install "HighSierra" "Mojave" or "Catalina" storage_size=80000 # VM disk image size in MB, minimum 22000 storage_format="vdi" # VM disk image file format, "vdi" or "vmdk" cpu_count=2 # VM CPU cores, minimum 2 memory_size=4096 # VM RAM in MB, minimum 2048 gpu_vram=128 # VM video RAM in MB, minimum 34, maximum 128 resolution="1280x800" # VM display resolution # The following commented commands, when executed on a genuine Mac, # may provide the values for NVRAM and other parameters required by iCloud, # iMessage, and other connected Apple applications. # Parameters taken from a genuine Mac may result in a "Call customer support" # message if they do not match the genuine Mac exactly. # Non-genuine yet genuine-like parameters usually work. # System_profiler SPHardwareDataType DmiSystemFamily="MacBook Pro" # Model Name DmiSystemProduct="MacBookPro11,2" # Model Identifier DmiSystemSerial="NO_DEVICE_SN" # Serial Number (system) DmiSystemUuid="CAFECAFE-CAFE-CAFE-CAFE-DECAFFDECAFF" # Hardware UUID DmiOEMVBoxVer="string:1" # Apple ROM Info DmiOEMVBoxRev="string:.23456" # Apple ROM Info DmiBIOSVersion = "string: MBP7.89" # # the Boot ROM Version ioreg - l | grep -m 1 board - id DmiBoardProduct="Mac-3CBD00234E554E41" # nvram 4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14:MLB DmiBoardSerial="NO_LOGIC_BOARD_SN" MLB="${DmiBoardSerial}" # nvram 4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14:ROM ROM='%aa*%bbg%cc%dd' # ioreg -l -p IODeviceTree | grep \"system-id SYSTEM_UUID="aabbccddeeff00112233445566778899" # csrutil status SYSTEM_INTEGRITY_PROTECTION='10' # '10' - enabled, '77' - disabledCopy the code
By default, the script allocates 80GB of target virtual disk storage.
During the initial installation, the target virtual disk storage space on the host is about 20GB. After the installation, the storage space may increase.
You can also set the storage/memory size, number of cpus, resolution, etc.
Due to the macOS VIRTUAL machine installed, limited by the hardware and VirtulBox’s own product functions, some functions cannot be supported, such as USB device support, audio support, FileVault boot password prompt support and other functions.
Of course, if you haven’t used macOS yet, this open source script will help you solve the problem. If you are interested, you can try it out.
GitHub address: github.com/myspaghetti…
In this paper, to the end.
Original is not easy, if you think this article is useful to you, please kindly like, comment or forward this article, because this will be my power to output more high-quality articles, thank you!
By the way, please give me some free attention! In case you get lost and don’t find me next time.
See you next time!