Virtualbox booting from a real drive?

I'm about to take the plunge and install Win7 RC1 on my desktop machine. However I want to preserve access to my old HDD with XP on it. I don't really want to use full dual-boot since that would leave my new Win7 install on the d:\ drive, which it wouldn't otherwise be.

Is it possible to use Virtualbox to boot from that old real drive instead of from an image?

If so, what are the implications for drivers, etc, since the "new" running OS will be using VirtualBox's virtual hardware and not the original hardware on which XP thinks it was installed.


Is it possible to use Virtualbox to boot from that old real drive instead of from an image?

Yes. VirtualBox has support for using a raw host hard disk from a guest since version 1.4. As of version 2.2.0, it is still listed as an experimental feature. It is described in section 9.10 of the user manual for VirtualBox 2.2.0.

There are some instructions for running a WindowsXP guest using a raw host hard disk on a linux host:

  • http://mesbalivernes.blogspot.com/2008/01/virtual-box-booting-from-existing.html
  • http://ubuntuforums.org/showthread.php?t=769883

If so, what are the implications for drivers, etc, since the "new" running OS will be using VirtualBox's virtual hardware and not the original hardware on which XP thinks it was installed.

The second link above describes some steps to prepare your XP system prior to booting under VirtualBox.


I have done this, but it can be dangerous! I had a VirtualBox VM that I ran off of my main hard disk. Once I accidentally failed to tell grub to boot Windows in time. It loaded Linux, which promptly tried to run e2fsck on my / and /home partitions, which were already mounted by the non-virtual os. After hours of work with testdisk I was able to recover all my data, but that was the last time I tried something like that.

If I'd had a separate physical disk to play with it probably would have been fine. Oh well.


Just a word of caution: if you're running virtualized Windows RC1 connecting to a real Windows partition, with write access, you should first backup your data before trying. As alberge says above, if something goes wrong, you could lose a lot of stuff. I'm not sure you will get write access, but if you do, this is a precaution you will be happy to have taken.

(Or maybe I got your question wrong...)