Page 2 of 2

Re: Win8 Bootcamp Paritition and Virtual Box

Posted: 22. Oct 2015, 18:32
by Jackmaninov
tetsuo29 wrote:I've been trying the suggestion about including my EFI partition and whenever I run the command

Code: Select all

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.

Re: Win8 Bootcamp Paritition and Virtual Box

Posted: 26. Oct 2015, 04:26
by bug88
Jackmaninov wrote:
tetsuo29 wrote:I've been trying the suggestion about including my EFI partition and whenever I run the command

Code: Select all

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.
Hi! Followed your instructions and I finally got some progress with running my Windows 10 bootcamp partition on VirtualBox on El Capitan. The hard disk gets recognised and can be read from, but when I get to the WIndows 10 logo, the thing crashes. It's telling me to send a copy of my logs and a screenshot to this site.. but I'm not sure where. Can anybody point me to the right direction?

Thank you!

Re: Win8 Bootcamp Paritition and Virtual Box

Posted: 26. Oct 2015, 12:59
by bug88
Nevermind! Got it to work. Was previously using VirtualBox 5.0.x. I tried 4.3.32 and it works! :D :D