Page 1 of 1

Cannot access hard-disk partition for Ubuntu server guest

Posted: 4. Jun 2010, 06:13
by talatnat
I have Ubuntu 10.04 desktop as host, VirtualBox 3.2.2 and Ubuntu 10.04 server as guest. I am trying to get the guest to access a partition on another drive using:

sudo VBoxManage internalcommands createrawvmdk -filename /vm/virtual-vdi/share.vmdk -rawdisk /dev/sda -partitions 6 -relative -register

I get this error:
ERROR: VMDK: could not create new file '/vm/virtual-vdi/share.vmdk'
Error code VERR_FILE_NOT_FOUND at /home/vbox/vbox-3.2.2/src/VBox/Devices/Storage/VmdkHDDCore.cpp(3512) in function int vmdkCreateRawImage(VMDKIMAGE*, VBOXHDDRAW*, uint64_t)
Error while creating the raw disk VMDK: VERR_FILE_NOT_FOUND
The raw disk vmdk file was not created

The Ubuntu kernel (32-22) and VBox kernels are updated, and I do not have a directory at /home/vbox.

What am I still missing here? Thanks for suggestions...

Re: Cannot access hard-disk partition for Ubuntu server guest

Posted: 5. Jun 2010, 13:15
by Sasquatch
Just a guess, but does the location to save the VMDK actually exist?