Skip to content

Commit

Permalink
Added support for non-Intel hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
hkdb committed Jul 14, 2019
1 parent 1090d26 commit 573034e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# VBoxMacSetup v1.1
# VBoxMacSetup v1.2
**maintained by:** hkdb \<[email protected]\><br />

### Bash script to quickly prepare your MacOS High Sierra Virtual HD with full screen resolution.
Expand All @@ -24,8 +24,16 @@ 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
Expand All @@ -38,12 +46,12 @@ As of v1.1, I created a develop branch for development or pull requests if it's
## DEPENDENCIES

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

## TESTED ON

- Ubuntu Linux 18.04
- Ubuntu Linux 18.04, 18.10, 19.04

## INSTALLATION

Expand Down
11 changes: 9 additions & 2 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# #
#####################################

VERSION="v1.1"
VERSION="v1.2"

POSITIONAL=()

Expand Down Expand Up @@ -41,7 +41,14 @@ done
set -- "${POSITIONAL[@]}" # restore positional parameters

VBoxManage modifyvm "${VM}" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage modifyvm "${VM}" --cpu-profile "Intel Core i7-6700K"

# Check CPU Type
INTEL=$(lscpu |grep GenuineIntel)

# Execute this line if it's a non-intel CPU
if [ -z "$INTEL" ]; then
VBoxManage modifyvm "${VM}" --cpu-profile "Intel Core i7-6700K"
fi
VBoxManage setextradata "${VM}" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
VBoxManage setextradata "${VM}" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "${VM}" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
Expand Down

0 comments on commit 573034e

Please sign in to comment.