rawdisk partition access
Posted: 30. Jun 2018, 23:35
Following the instructions in 9.9.1.2 of the manual, I have tried to set up direct access to three of my partitions on /dev/sdc
I can create a file "sdc.vmdk":
sudo vboxmanage internalcommands createrawvmdk -filename /VM/VMnuffin/sdc.vmdk -rawdisk /dev/sdc -partitions 6,12,13
But when I attempt to attach the vmdk file I get errors:
sudo vboxmanage storageattach VMnuffin --storagectl SATA --port 1 --type hdd --medium /VM/VMnuffin/sdc.vmdk --setuuid ""
Like this:
VBoxManage: error: Permission problem accessing the file for the medium '/VM/VMnuffin/sdc.vmdk' (VERR_ACCESS_DENIED)
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component MediumWrap, interface IMedium, callee nsISupports
VBoxManage: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, enmAccessMode, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 179 of file VBoxManageDisk.cpp
VBoxManage: error: Invalid UUID or filename "/VM/VMnuffin/sdc.vmdk"
Anybody help me see what I'm doing wrong? Or what devil has taken possession of my host OS [Mint 18.3]?
I can create a file "sdc.vmdk":
sudo vboxmanage internalcommands createrawvmdk -filename /VM/VMnuffin/sdc.vmdk -rawdisk /dev/sdc -partitions 6,12,13
But when I attempt to attach the vmdk file I get errors:
sudo vboxmanage storageattach VMnuffin --storagectl SATA --port 1 --type hdd --medium /VM/VMnuffin/sdc.vmdk --setuuid ""
Like this:
VBoxManage: error: Permission problem accessing the file for the medium '/VM/VMnuffin/sdc.vmdk' (VERR_ACCESS_DENIED)
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component MediumWrap, interface IMedium, callee nsISupports
VBoxManage: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, enmAccessMode, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 179 of file VBoxManageDisk.cpp
VBoxManage: error: Invalid UUID or filename "/VM/VMnuffin/sdc.vmdk"
Anybody help me see what I'm doing wrong? Or what devil has taken possession of my host OS [Mint 18.3]?