Error when trying to mount an image file. (winxp) [SOLVED]

Discussions related to using VirtualBox on Linux hosts.
Post Reply
lukaz
Posts: 1
Joined: 9. Oct 2008, 06:13

Error when trying to mount an image file. (winxp) [SOLVED]

Post by lukaz »

Code: Select all

The problem was that the image I created didn't have read/write permissions for the current user. xD 



Hi, reading in some forums they said that I could mount directly an existing partition containing windows XP by doing this

Code: Select all

VBoxManage internalcommands createrawvmdk -filename ~/.VirtualBox/WinXP.vmdk  -rawdisk /dev/sda

ok, that went well the link to the partition worked fine, now when I try to mount the "linked image file" I got this message:

Image

I have set all permissions to the partition containing windows xp with chmod, and I really don't know what is wrong.

Any comment or suggestion will be of great help.. thanks.
8)

*edit I'm using Ubuntu 8.04 as host.
vkov_tinsky
Volunteer
Posts: 218
Joined: 5. Apr 2008, 20:18

Post by vkov_tinsky »

lukaz wrote:I have set all permissions to the partition containing windows xp with chmod"
Assuming you have set permissions for /dev/sda (which you of course have to do after each boot) the only other thing that can cause this error message (as far as I know) is is if VirtualBox does not have permission to read/write the vmdk files. (Since you most likely created these as root.)

However: Giving your Virtual Machine access to your whole (first?) hard disk is very dangerous. I suggest you only allow access to the required partitions. Have a look at the section entitled "VMDK creation and usage" in this article. If you want to boot an existing Windows installation in VirtualBox you'll want to create a second hardware profile in the very least. Have a look at HOWTO: manage VDIs and import native installations.

Regards,
VT
Post Reply