Page 5 of 5

Re: Accessing raw partitions with VMDK (VirtualBox 1.4)

Posted: 3. Dec 2010, 05:50
by halgol60
chmod 666 /dev/sda
Really? what if something or someone were to:

Code: Select all

dd if=/dev/zero of=/dev/sda
Maybe not the best solution ...

Re: Accessing raw partitions with VMDK (VirtualBox 1.4)

Posted: 8. Jun 2011, 03:52
by pavkb@yahoo.com
Hi.. Not sure if this has been resolved.
Tried all the steps across different post & created the .vmdk. When i try to run XP i get grub error as below

Code: Select all

GRUB Loading stage 1.5

GRUB Loading please wait...
Error 22

After this only thing i can do is to shutdown the virtual machine.
My setup is as follows
Host: Ubuntu
Guest: XP
Ubuntu loads off on /dev/sda
My windows XP is from /dev/sdb1 (an old installation)
Used to dual boot Ubuntu/XP from /dev/sdb which was once a Primary (/dev/sda).
Restored XP from recovery disk on it and i believe GRUB on that drive has been removed on that drive.

PS: I am ensuring that everything from /dev/sdb* has 666 permissions on it.

What am i missing.
Thanks

Re: Accessing raw partitions with VMDK (VirtualBox 1.4)

Posted: 14. Aug 2011, 08:57
by tombrdfrd66
I can get vms up and running in the conventional way with no problem but when I try to utilise a raw disk the nightmares begin.

Having been working my way through this thread but am no grounded on a problem seen nowhere previously.

Host is Ubuntu Server 10.04LTS. The guest is a small Linux-based routerOS installed (and licensed) on a hdd.

When I try to create the raw disk vmdk image I get the following error messages:

tom@Gwen:~$ VBoxManage internalcommands createrawvmdk -filename /home/tom/ROS/bigfoot.vmdk -rawdisk /dev/sda
VBoxManage: error: VMDK: could not create new file '/home/tom/ROS/bigfoot.vmdk'
VBoxManage: error: Error code VERR_ACCESS_DENIED at /home/vbox/vbox-4.0.12/src/VBox/Storage/VMDK.cpp(3598) in function int vmdkCreateRawImage(VMDKIMAGE*, VBOXHDDRAW*, uint64_t)
VBoxManage: error: Cannot create the raw disk VMDK: VERR_ACCESS_DENIED
VBoxManage: error: The raw disk vmdk file was not created

Now, the particularly puzzling thing is that "/home/vbox/vbox-4.0.12/src/VBox/Storage/VMDK.cpp(3598)" doesn't exist, even as a .file. Which presumably is why it can't be accessed.

Any hints?

Re: Accessing raw partitions with VMDK (VirtualBox 1.4)

Posted: 15. Aug 2011, 13:45
by mpack
tombrdfrd66 wrote:Now, the particularly puzzling thing is that "/home/vbox/vbox-4.0.12/src/VBox/Storage/VMDK.cpp(3598)" doesn't exist, even as a .file. Which presumably is why it can't be accessed.
No, that's just telling the devteam which line of the VBox source code signalled the error. Access will have been denied to one of the filesystem objects you named on the command line, or else the code was denied permission to create the named target .vmdk file (e.g. no access to that folder, or a protected/open file with the same name already exists). I interpret the error message as meaning the latter, i.e. a file creation error.

Re: How to change partition table

Posted: 6. Oct 2014, 12:24
by PHP
klaus wrote:If you want you can change the partition table (in the guest only of course) at your will. The host won't notice - as long as you really configured raw partition and not raw disk access.
How to change partition table of a vmdk file?

Re: How to change partition table

Posted: 6. Oct 2014, 13:39
by mpack
PHP wrote:How to change partition table of a vmdk file?
The same way you would on any physical PC. E.g. using something like GParted.