I have a disk that has several partitions on it, 3 of which I've set aside for use with FreeNAS. As per the manual I've identified the partition numbers and issued the command:
Code: Select all
VBoxManage internalcommands createrawvmdk -filename "/mnt/data/freeNAS/partitions.vmdk" -rawdisk /dev/sda -partitions 6,7,8 -relative -registerCode: Select all
tris@jupiter:/mnt/nas/freeNAS$ cat partitions.vmdk
# Disk DescriptorFile
version=1
CID=505a4e4b
parentCID=ffffffff
createType="partitionedDevice"
# Extent description
RW 63 FLAT "partitions-pt.vmdk"
RW 195318207 ZERO
RW 63 FLAT "partitions-pt.vmdk" 63
RW 3903732 ZERO
RW 63 FLAT "partitions-pt.vmdk" 126
RW 390620412 FLAT "/dev/sda6"
RW 63 FLAT "partitions-pt.vmdk" 189
RW 390620412 FLAT "/dev/sda7"
RW 63 FLAT "partitions-pt.vmdk" 252
RW 390620412 FLAT "/dev/sda8"
RW 582441678 ZERO
# The disk Data Base
Code: Select all
VBoxManage modifyvm "FreeNAS" -hdb "/mnt/nas/freeNAS/partitions.vmdk"
I then start up the VM, which works ok. The problem that I have is when I try and access the 3 partitions in FreeNAS - contrary to what the VirtualBox manual says the client sees only ONE disk (the whole disk) and doesn't see the 3 partitions. Anyone got an ideas where I might be going wrong?