• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

hkdb/VBoxMacSetup: Bash Script to Setup VBox MacOS Guest

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

hkdb/VBoxMacSetup

开源软件地址(OpenSource Url):

https://github.com/hkdb/VBoxMacSetup

开源编程语言(OpenSource Language):

Shell 100.0%

开源软件介绍(OpenSource Introduction):

VBoxMacSetup v1.2

maintained by: hkdb <[email protected]>

Bash script to quickly prepare your MacOS High Sierra Virtual HD with full screen resolution.

WHAT DOES IT DO?

This script automates the following commands:

VBoxManage modifyvm "MacOS" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff

VBoxManage setextradata "MacOS" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"

VBoxManage setextradata "MacOS" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"

VBoxManage setextradata "MacOS" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"

VBoxManage setextradata "MacOS" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"

VBoxManage setextradata "MacOS" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1

VBoxManage setextradata "MacOS" "VBoxInternal2/EfiGraphicsResolution" "1920x1080"

It also executes the following if the host is not on an Intel CPU:

VBoxManage modifyvm "${VM}" --cpu-profile "Intel Core i7-6700K"

RELEASE

v1.2 - Added support for non-Intel hosts based on @jld3103

v1.1 - Merged PR Fix, Added Version Tracking, and Fixed README

v1.0 - Initial Release

DEVELOPMENT AND PULL REQUESTS

As of v1.1, I created a develop branch for development or pull requests if it's still needed. Though, I think this is a simple enough script that probably won't require any further development?

DEPENDENCIES

  • Bash
  • Virtualbox 5.x and 6.x
  • MacOS High Sierra Final

TESTED ON

  • Ubuntu Linux 18.04, 18.10, 19.04

INSTALLATION

Nothing needs to be installed. It's just a script that runs commands for you.

USAGE

setup.sh takes 2 arguments which is what you named your VM led by a -v flag and the desired resolution for your VM led by -r. For example, I named mine "MacOS" and my full screen resolution is 1920x1080. Therefore, this is how I run the script:

./setup.sh -v "MacOS" -r 1920x1080

OVERALL PROCEDURE

  1. Download the image file from this Techsviewer post: https://techsviewer.com/install-macos-high-sierra-virtualbox-windows/
  2. Install VirtualBox (ie. sudo apt install virtualbox, etc)
  3. Launch Virtualbox
  4. Create Virtual Machine w/ existing vmdk (ie. with what you downloaded in step 1)
  5. Name your VM without spaces. I read somewhere that spaces could potentially cause issues. mine is named "MacOS"
  6. Configure at least 2 cores, 4GB of RAM, and 128MB of graphics with 3D acceleration on.
  7. Close VirtualBox
  8. In terminal, run setup.sh -v <whatever you named your vm> -r <desired resolution>
  9. Launch VirtualBox again
  10. Play MacOS VM
  11. Voila!



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap