Monday, July 9, 2012

How to access a physical hard disk from VirtualBox

VirtualBox is a "virtualization product" with allows you to run a guest OS in a virtual machine.  While you typically boot from a VirtualBox Virtual Disk Image (.vdi), it may be useful to boot off of physical media like a USB drive, or a partition of your hard drive.

Support for this feature is described in the manual (you did read the manual, right?) in section 9.8 Advanced Storage Configuration.

Simply run:

$ VBoxManage internalcommands createrawvmdk -filename \
/path/to/file.vmdk -rawdisk /dev/sda

No comments:

Post a Comment