Skip to content

Instantly share code, notes, and snippets.

@mlzxy
Forked from mbohl/ubuntu-bootcamp.txt
Created October 25, 2015 21:33
Show Gist options
  • Save mlzxy/53954e6747dbbf166785 to your computer and use it in GitHub Desktop.
Save mlzxy/53954e6747dbbf166785 to your computer and use it in GitHub Desktop.
Bootcamp your Ubuntu partition
1. Install Ubuntu on the partition of your choosing
2. Install VMWare Fusion
3. Get Grub Super Disk 2 (http://www.supergrubdisk.org/category/download/supergrub2diskdownload/super-grub2-disk-stable/)
4. Determine which partition you have Ubuntu installed to using "diskutil list"
5. Create the VMWare Configuration
a. Create a new VM
b. "Create a Custom Virtual Machine"
c. Type "Linux->Ubuntu 64 bit"
d. Either use the defaults or customize to your needs.
6. Create the virtual disk mapping to the real partition (this assumes you use the default names)
a. go to your VM directory "/Users/username/Documents/Virtual Machines.localized/Ubuntu 64-bit.vmwarevm"
b. Delete the existing Virtual Disk ("rm -rf Virtual\ Disk*")
c. go to the VMWare installation direcotry, "cd /Applications/VMware\ Fusion.app/Contents/Library"
d. create the virtual disk: "./vmware-rawdiskCreator create /dev/diskX Y /Users/username/Documents/Virtual\ Machines.localized/Ubuntu\ 64-bit.vmwarevm/Virtual\ Disk lsilogic"
Where X is the disk number (mine was disk0) and Y is the partition (mine was 4). This should create a few "Virtual Disk*" files in the directory. This is important to keep the same name otherwise you'll need ot edit the vmx file and put in the right nam.e
7. Boot using SuperGrub2
a. configure VMWare to boot to the super grub iso (Settings, CD/DVD, "Connect CD/DVD Drive", select SuperGrub2 image)
b. Start the VM and select "Detect and show boot methods"
c. Select "Ubuntu" (assuming you're using Grub ... you may need to try a few...)
d. You may need to hit "S" to skip mounting /boot, as that wont be visible to Ubuntu running like this
8. Optionally install VMWare tools.
This configuration works for me and doesnt break my dual boot. usb_cam works natively with the iSight under VMWare or with the Logitech cam while natively booted with the same configuration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment