Does anyone know how to make a .vdi .hdd .vmdk or .vhd image of my Mac? I need to make a perfect clone of my hard drive in one of these formats so I can clone my system in a VirtualBox VM (for development purposes).
It's completely legal if the host is also a Mac.
Use a disk cloning software (AFAIK CarbonCopyCloner/Superduper or anything else like that, not my area). It should be able to export to ISO. This command will apparently turn it into a virtualbox hard drive.
VBoxManage convertfromraw /path/to/output/disk-image.iso /path/to/output/disk-image.vdi
Check out this thread on StackOverflow.
It's only supported for OS X Server, and on an OS X host.