Using Virtual Box, how can I install an OS to a secondary, physical disk, and boot it in both (at separate times) Virtual Box, and as a typical secondary OS install?
I made a smug comment ("Straight forward") when this question was originally posted and found myself at this page some months later looking for the same answer
Straight forward instructions
Today, I managed to boot from physical drives. This achievement required;
Pics (it did happen :)
1. Create vmdk drives that read from real drives
To create an image that represents an entire physical hard disk (which will not contain any actual data, as this will all be stored on the physical disk), on a Linux host, use the command
You must have read access to the physical disk device file
On a Windows host, instead of the above device specification, use e.g. \\.\PhysicalDrive0. On a Mac OS X host, use e.g. /dev/disk1 (and unmount all partitions on disk1).
2. Assign the vmdk drives to a VM
VM -> Settings -> Storage -> add ide / sata -> Choose existing disk -> browse
3. Set one of the Writethrough modes.
File -> Virtual Media Manager -> e.g raw-0.vmdk -> [modify] -> (o) Writethrough
3. Reorder boot-priority (semi optional)
VM -> Settings -> System -> Boot order
VM -> Settings -> Storage -> Controller: SATA -> e.g. raw-5.vmdk -> Hard Disk: Sata Port 0
Relevant chapters (manual)
Enumerating physical drives in Windows:
The VirtualBox documentation refers to accessing a raw hard disk: