Code: Select all
VBoxManage internalcommands createrawvmdk -filename /Users/me/raw-partition.vmdk -rawdisk /dev/disk1s1
Code: Select all
# Disk DescriptorFile
version=1
createType="fullDevice"
[...]
# Extent description
RW 976762880 FLAT "/dev/disk1s1" 0
In Linux I'd use `/dev/disk/by-uuid` path to point to a specific disk which would solve this issue, however on MacOS there is no such device descriptor in the filesystem. This issue extends to a point where I unplug the disk completely, in such case I'd expect the VM to fail to boot completely instead of randomly selecting a partition.
How can I achieve a consistent reference to a disk and its partition?