Skip to content

Instantly share code, notes, and snippets.

@benedict-w
Last active March 23, 2016 10:27
Show Gist options
  • Save benedict-w/bd3a834a4b558c3b2fea to your computer and use it in GitHub Desktop.
Save benedict-w/bd3a834a4b558c3b2fea to your computer and use it in GitHub Desktop.
Run Windows 7 Bootcamp from Virtual Box
# see for info: https://kindlevsmac.wordpress.com/2011/10/14/how-to-run-windows-7-bootcamp-in-virtualbox/
# view available disk partitions
diskutil list
# unmount bootcamp
diskutil unmount /dev/disk0s4
# make bootcamp writeable
sudo chmod 777 /dev/disk0s4
# go to user home
cd /
# create virtual box files
sudo VBoxManage internalcommands createrawvmdk -rawdisk /dev/disk0 -filename win7raw.vmdk -partitions 4
# set permissions
sudo chown `whoami` win7*.vmdk
sudo chmod 777 win7*.vmdk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment