Page 1 of 1

VERR_ACCESS_DENIED

Posted: 6. Oct 2013, 19:57
by Pythros
I'm trying to have a physical disk/partition to be used for my Windows 7 host.

Code: Select all

eve-2:Windows 7 cwasylewski$ sudo vboxmanage internalcommands createrawvmdk -filename /Users/cwasylewski/VirtualBox\ VMs/Windows\ 7/link.vmdk -rawdisk /dev/disk0s3
RAW host disk access VMDK file /Users/cwasylewski/VirtualBox VMs/Windows 7/link.vmdk created successfully.
eve-2:Windows 7 cwasylewski$ 
When I try to add the disk to my guest, I get the following:

Code: Select all

Failed to open the hard disk /Users/cwasylewski/VirtualBox VMs/Windows 7/link.vmdk.
Permission problem accessing the file for the medium '/Users/cwasylewski/VirtualBox VMs/Windows 7/link.vmdk' (VERR_ACCESS_DENIED).
Result Code:
VBOX_E_FILE_ERROR (0x80BB0004)
Component:
Medium
Interface:
IMedium {29989373-b111-4654-8493-2e1176cba890}
Callee:
IVirtualBox {3b2f08eb-b810-4715-bee0-bb06b9880ad2}
Callee RC:
VBOX_E_OBJECT_NOT_FOUND (0x80BB0001)
link.vmdk does have file perms of 777 and I already chown the file to cwasylewski.

Code: Select all

eve-2:Windows 7 cwasylewski$ ls -l
total 40
-rw-------  1 cwasylewski  staff  6675 Oct  6 11:28 Windows 7.vbox
-rw-------  1 cwasylewski  staff  6656 Oct  6 11:21 Windows 7.vbox-prev
-rwxrwxrwx  1 cwasylewski  staff   541 Oct  6 12:42 link.vmdk
vboxmanage list systemproperties:

Code: Select all

eve-2:Volumes cwasylewski$ VBoxManage list systemproperties
API version:                     4_2
Minimum guest RAM size:          4 Megabytes
Maximum guest RAM size:          2097152 Megabytes
Minimum video RAM size:          1 Megabytes
Maximum video RAM size:          256 Megabytes
Minimum guest CPU count:         1
Maximum guest CPU count:         32
Virtual disk limit (info):       2199022206976 Bytes
Maximum Serial Port count:       2
Maximum Parallel Port count:     2
Maximum Boot Position:           4
Maximum PIIX3 Network Adapter count:   8
Maximum ICH9 Network Adapter count:   36
Maximum PIIX3 IDE Controllers:   1
Maximum ICH9 IDE Controllers:    1
Maximum IDE Port count:          2
Maximum Devices per IDE Port:    2
Maximum PIIX3 SATA Controllers:  1
Maximum ICH9 SATA Controllers:   8
Maximum SATA Port count:         30
Maximum Devices per SATA Port:   1
Maximum PIIX3 SCSI Controllers:  1
Maximum ICH9 SCSI Controllers:   8
Maximum SCSI Port count:         16
Maximum Devices per SCSI Port:   1
Maximum SAS PIIX3 Controllers:   1
Maximum SAS ICH9 Controllers:    8
Maximum SAS Port count:          8
Maximum Devices per SAS Port:    1
Maximum PIIX3 Floppy Controllers:1
Maximum ICH9 Floppy Controllers: 1
Maximum Floppy Port count:       1
Maximum Devices per Floppy Port: 2
Default machine folder:          /Users/cwasylewski/VirtualBox VMs
VRDE auth library:               VRDPAuth
Webservice auth. library:        VRDPAuth
Remote desktop ExtPack:          
Log history count:               3
Autostart database path:         
Default Guest Additions ISO:     /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso
eve-2:Volumes cwasylewski$ 
I have even created the raw using "/dev/disk0 -partitions 3" instead of "/dev/disk0s3" and tried adding the vmdk file while the drive is mounted or no and I still get the error message above. Any help is greatly appreciated. Thanks.

Re: VERR_ACCESS_DENIED

Posted: 9. Oct 2013, 12:40
by noteirak
What about the permissions on the device itself, instead of the vmdk?

Re: VERR_ACCESS_DENIED

Posted: 19. Oct 2013, 23:29
by Pythros
At the best of my knowledge, yes.
 Edit: I realized that MacOS doesn't necessarily like writing to NTFS without the proper jumps made. I followed this article to get /Volumes/Windows7 to mount as my user instead of as root as I thought that was another problem after I got Mac to r/w to the NTFS drive. Once I finally got that to mount correctly, I am still getting the same error above! I verified that I can modify the contents on the NTFS partition with no problem. This has been really throwing me into a loop and anger :evil:  
Has anyone successfully done this on a Mac OS host?

Edit: Ignore the above. So I just closed the Disk Utility window and tried it one last time and it accepted it. Now I'm running into "A disk error occurred. Press Ctrl+Alt+Del". I can still boot into this partition with no problems.

Re: VERR_ACCESS_DENIED

Posted: 20. Oct 2013, 00:07
by JimBushWhack
You might want to check out "How to Use a MacOS Bootcamp Partition as a VirtualBox Guest" under Howtos and Tutorials-> Other Hosts. What you are trying to do is a variation of setting up a Bootcamp partition on the MacOS disk, but you will need some of the same mechanisms.

Re: VERR_ACCESS_DENIED

Posted: 20. Oct 2013, 18:41
by Pythros
Oh, thanks. Do I need to undo anything I've done so far before I continue?