Cannot access hard-disk partition for Ubuntu server guest

Discussions about using Linux guests in VirtualBox.
Post Reply
talatnat
Posts: 1
Joined: 4. Jun 2010, 04:01
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: win7, ubuntu server

Cannot access hard-disk partition for Ubuntu server guest

Post 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...
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

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

Post by Sasquatch »

Just a guess, but does the location to save the VMDK actually exist?
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply