Creating a VM from a bootcamp partition
Posted: 7. May 2012, 13:30
I partitioned my disk using bootcamp, and installed Windows 7 on it. I'd to run a virtual machine from the partition.
I read that I need to create a vmdk from the partition like so:
The vmdk was created successfully, I changed the ownership and permissions of both files, and the permissions of the disk node (not sure if this is necessary):
But when trying to add the vmdk to VirtualBox I get this:
What have I overlooked?
I read that I need to create a vmdk from the partition like so:
Code: Select all
$ sudo VBoxManage internalcommands createrawvmdk -filename windows.vmdk -rawdisk /dev/disk0 -partitions 4
Code: Select all
$ sudo chown (my name) *.vmdk
$ chmod 0666 *.vmdk
$ sudo chmod 0666 /dev/disk0
Code: Select all
Failed to open the hard disk
/Users/(my name)/Documents/Windows/windows.vmdk.
The medium
'/Users/(my name)/Documents/Windows/windows.vmdk' can't be used as the requested device type.
Details:
Result Code: NS_ERROR_FAILURE (0x80004005)
Component: Medium
Interface: IMedium {53f9cc0c-e0fd-40a5-a404-a7a5272082cd}
Callee: IVirtualBox {c28be65f-1a8f-43b4-81f1-eb60cb516e66}