I have a dual boot setup with Windows XP and Ubuntu 9.04 Jaunty Jackalope.
I wanted to use my current partition as a virtual machine. I was able to create a vmdk file using the following command:
Code: Select all
VBoxManage internalcommands createrawvmdk -filename ~/.VirtualBox/WinXP.vmdk -rawdisk /dev/sda1I ran "fdisk -l" and get the following output:
Code: Select all
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xaf80af80
Device Boot Start End Blocks Id System
/dev/sda1 * 1 11594 93128773+ 7 HPFS/NTFS
/dev/sda2 11611 11903 2353522+ 82 Linux swap / Solaris
/dev/sda3 11921 19457 60540952+ 83 Linux
I saw the using an MBR for raw disks can sometimes be the solution so I used this command:
Code: Select all
VBoxManage internalcommands createrawvmdk -filename ~/.VirtualBox/WinXP.vmdk -rawdisk /dev/sda1 -partitions 1 -mbr ~/.VirtualBox/WinXP.mbrCode: Select all
VirtualBox Command Line Management Interface Version 2.2.4
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
Error while creating the raw disk VMDK: VERR_INVALID_PARAMETER
The raw disk vmdk file was not createdWhat am I doing wrong? Any searches only turn up overlapping partition fixes, which I have done already.