I am trying to create a virtual disk of my physicall windows partition so I can boot the windows partition on my linux side. To do this, I have been trying to use the VBoxManage application and follow the instructions I found elsewhere on this site.
Here is the command and its arguments:
Code: Select all
VBoxManage internalcommands createrawvmdk -filename WinXP.vmdk -rawdisk /dev/sda -relative -register -partitions 2
Code: Select all
VirtualBox Command Line Management Interface Version 2.1.0
(C) 2005-2008 Sun Microsystems, Inc.
All rights reserved.
RAW host disk access VMDK file WinXP.vmdk created successfully.
[!] FAILED calling aVirtualBox->OpenHardDisk2(filename, hardDisk.asOutParam()) at line 1250!
[!] Primary RC = VBOX_E_IPRT_ERROR (0x80BB0005) - Runtime subsystem error
[!] Full error info present: true , basic error info present: true
[!] Result Code = VBOX_E_IPRT_ERROR (0x80BB0005) - Runtime subsystem error
[!] Text = Could not get the storage format of the hard disk '/home/aviv/.VirtualBox/HardDisks/WinXP.vmdk' (VERR_FILE_NOT_FOUND)
[!] Component = HardDisk2, Interface: IHardDisk2, {ed6e2525-c2fd-42a4-917a-7a9045ac9e15}
[!] Callee = IVirtualBox, {339abca2-f47a-4302-87f5-7bc324e6bbde}
I run Fedora 10, and my Windows partition is /dev/sda2, and this is also the partition I boot from. I understand that I may need to mess with the boot sector of the virtual disk when I am done, but I can't even create the virtual disk. I have the privledge to read the disk, I am a member of the disk group. I have even tried to run it in super user mode just to experiment. I am flat out of ideas, and I have looked through almost all the options for VBoxManager. I am not sure if this is even possible, but it seems like it should. Anyway help would be greatly appreciated.
thanks,
adam