tetsuo29 wrote:I've been trying the suggestion about including my EFI partition and whenever I run the command
- Code: Select all Expand viewCollapse view
sudo VBoxManage internalcommands createrawvmdk -rawdisk /dev/disk0 -filename win8raw.vmdk -partitions 1,4
I get the following error:VBoxManage: error: VMDK: could not open raw partition file '/dev/disk0s1'
VBoxManage: error: Error code VERR_ACCESS_DENIED at /Users/vbox/tinderbox/4.3-mac-rel/src/VBox/Storage/VMDK.cpp(3533) in function int vmdkCreateRawImage(VMDKIMAGE*, VBOXHDDRAW*, uint64_t)
VBoxManage: error: Cannot create the raw disk VMDK: VERR_ACCESS_DENIED
VBoxManage: error: The raw disk vmdk file was not created
I'm now running OS X 10.11 El Capitan. It's almost like it considers the EFI partition mounted or busy in some fashion. I've verified that the chmod 777 command on /dev/disk0s1 has worked. Any ideas about how to get my Win 8.1 partition booting inside of Virtual Box on El Capitan would be lovely.
Thanks in advance for any suggestions or insights.
I finally got this working for my Windows 10 Boot Camp install. You have to disable System Integrity Protection under recovery mode in order to get a write lock on /dev/disk0s1 (the EFI partition). You can find walkthroughs on how to do this, but my account is too new to post links (basically boot to recovery mode, run terminal, then 'csrutil disable').
Don't forget to turn on "Enable EFI (special OSes only)"!
EDIT: if only there was a way to give read-only raw access to a partition, then we could boot with SIP enabled. This is working in VMWare, for example.