Windows 7 64: VERR_SHARING_VIOLATION creating raw vmdk
Posted: 3. Nov 2009, 03:28
When trying to create a .vmdk file to use a physical partition, VBoxManage returns one of the following errors, depending on being run as a normal user or an administrator:
>VBoxManage.exe internalcommands createrawvmdk -filename path.to.vmdk -rawdisk \\.\PhysicalDrive0
Error opening the raw disk '\\.\PhysicalDrive0': VERR_ACCESS_DENIED
Error opening the raw disk '\\.\PhysicalDrive0': VERR_SHARING_VIOLATION
\\.\PhysicalDrive0 is used to boot and run Windows, so I can imagine it won't easily allow access to it. The same error is thrown if the -partitions argument is provided. Is there any known workaround for this issue, or is a second hard drive required to pull it off?
Also tried using an existing VMWare vmdk for the same physical drive, but could only get a VERR_VD_IMAGE_READ_ONLY error when booting the virtual machine.
Running VirtualBox 3.0.10 on a Windows 7 64bit host. Any insight would be appreciated.
>VBoxManage.exe internalcommands createrawvmdk -filename path.to.vmdk -rawdisk \\.\PhysicalDrive0
Error opening the raw disk '\\.\PhysicalDrive0': VERR_ACCESS_DENIED
Error opening the raw disk '\\.\PhysicalDrive0': VERR_SHARING_VIOLATION
\\.\PhysicalDrive0 is used to boot and run Windows, so I can imagine it won't easily allow access to it. The same error is thrown if the -partitions argument is provided. Is there any known workaround for this issue, or is a second hard drive required to pull it off?
Also tried using an existing VMWare vmdk for the same physical drive, but could only get a VERR_VD_IMAGE_READ_ONLY error when booting the virtual machine.
Running VirtualBox 3.0.10 on a Windows 7 64bit host. Any insight would be appreciated.