I have a windows 10 host with two instances of windows 10 installed on separate partitions. I would like to boot the second instance in virtual box.
Highlighted in blue is the Host OS partition and orange is the Guest:
Partition ### Type Size Offset
------------- ---------------- ------- -------
Partition 1 System 100 MB 451 MB
Partition 2 Reserved 16 MB 552 MB
Partition 3 Primary 475 GB 569 MB
Partition 4 Recovery 819 MB 476 GB
Partition 5 Primary 244 GB 476 GB
Partition 6 Primary 1141 GB 721 GB
So as per the instructions: virtual box dot org /manual/ch09.html#rawdisk I attempted to create a VMDK image pointing to partition 5 with the following command:
.\VBoxManage.exe internalcommands createrawvmdk -filename win10.vmdk -rawdisk \\.\physicaldrive0 -partitions 5 -mbr win10.mbr
But I get the following error:
VBoxManage.exe: error: Cannot open replacement MBR file 'win10.mbr' specified with -mbr: VERR_FILE_NOT_FOUND
VBoxManage.exe: error: The raw disk vmdk file was not created
If I remove the -mbr part of the command two files are successfully created.
One called win10-pt.vmdk (48kb) and
win10.vmdk (1kb)
Code: Select all
# Disk DescriptorFile
version=1
CID=cbcea3dc
parentCID=ffffffff
createType="partitionedDevice"
# Extent description
RW 63 FLAT "win10-pt.vmdk" 0
RW 923585 ZERO
RW 204800 ZERO
RW 2048 ZERO
RW 32768 ZERO
RW 2048 ZERO
RW 997369534 ZERO
RW 322 ZERO
RW 1679038 ZERO
RW 322 ZERO
RW 512000000 FLAT "\\.\physicaldrive0" 1000214528
RW 2394812416 ZERO
RW 2191 ZERO
RW 33 FLAT "win10-pt.vmdk" 63
# The disk Data Base
#DDB
ddb.virtualHWVersion = "4"
ddb.adapterType="ide"
ddb.geometry.cylinders="16383"
ddb.geometry.heads="16"
ddb.geometry.sectors="63"
ddb.uuid.image="7809b9bd-33f5-42a7-b863-41d56df11de8"
ddb.uuid.parent="00000000-0000-0000-0000-000000000000"
ddb.uuid.modification="00000000-0000-0000-0000-000000000000"
ddb.uuid.parentmodification="00000000-0000-0000-0000-000000000000"Thanks