Raw Partition as VirtualBox Disk

Lists all partitions on /dev/sda:
VBoxManage internalcommands listpartitions -rawdisk /dev/sda
Create a VMDK image to access the first partition in raw mode, e.g.:
VBoxManage internalcommands createrawvmdk \
           -filename sda1.vmdk -rawdisk /dev/sda -partitions 1 -relative
Grant read and write access to the raw partition, e.g.:
setfacl -m g:vboxusers:rw /dev/sda1

No comments:

Post a Comment