Virtualbox booting from a real drive?

26,777

Solution 1

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:

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.

Solution 2

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.

Solution 3

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...)

Share:
26,777

Related videos on Youtube

Alnitak
Author by

Alnitak

Director of DNS Operations and Research Fellow at Internet Systems Consortium, Inc., the people behind the BIND 9 DNS server and also operators of F-Root. Author of RFC 5625, RFC 5966 and RFC 6915, and co-author of RFCs 7216, 7766, 7828, 8490 and 8906. At IETF, Co-chair of the HOMENET Working Group between 2011 and 2017 and briefly Chair of the GeoPriv Working Group. In a past life I was Director of Network Operations at a successful B2B ISP in the UK.

Updated on September 17, 2022

Comments

  • Alnitak
    Alnitak almost 2 years

    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.

  • Alnitak
    Alnitak about 15 years
    if I've got a VMDK, can I just use VMware player for free instead? There's no particular reason it has to be VirtualBox.
  • alif
    alif about 15 years
    Sure, no reason not to.
  • JSchlather
    JSchlather over 14 years
    While this is technically possible, I would really recommend getting the disk virtualized at some point. It is much nicer to have the file that can be easily backed up as well as snapshots and other things just work a lot better.
  • Sridhar Sarnobat
    Sridhar Sarnobat over 2 years
    Thanks for sharing your experience. I will go through the extra trouble of duplicating my XP drive and using that.