Creating a VM from a bootcamp partition

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
ronmrdechai
Posts: 1
Joined: 7. May 2012, 13:16

Creating a VM from a bootcamp partition

Post by ronmrdechai »

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:

Code: Select all

$ sudo VBoxManage internalcommands createrawvmdk -filename windows.vmdk -rawdisk /dev/disk0 -partitions 4
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):

Code: Select all

$ sudo chown (my name) *.vmdk
$ chmod 0666 *.vmdk
$ sudo chmod 0666 /dev/disk0
But when trying to add the vmdk to VirtualBox I get this:

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}
What have I overlooked?
ChipMcK
Volunteer
Posts: 1095
Joined: 20. May 2009, 02:17
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, OSX
Location: U S of A

Re: Creating a VM from a bootcamp partition

Post by ChipMcK »

Google search "bootcamp partition site:virtualbox.org"
Post Reply