diskutil unmount /Volumes/BOOTCAMP
sudo chmod 777 /dev/disk0s1 <--- This is the drive no. of the EFI disk
sudo chmod 777 /dev/disk0s3 <--- This is the drive no. of the BOOTCAMP disk
sudo chmod 777 /dev/disk0
sudo VBoxManage internalcommands createrawvmdk -rawdisk /dev/disk0 -filename win10raw.vmdk -partitions 1,3
sudo chmod 777 win10*
ls -l
-rwxrwxrwx 1 root staff 37376 Sep 16 18:22 win10raw-pt.vmdk
-rwxrwxrwx 1 root staff 754 Sep 16 18:28 win10raw.vmdk
http://web.archive.org/web/20181103074214/http://danielphil.github.io/windows/virtualbox/osx/2015/08/25/virtualbox-boot-camp.html
