Become a fan of Slashdot on Facebook


Forgot your password?
DEAL: For $25 - Add A Second Phone Number To Your Smartphone for life! Use promo code SLASHDOT25. Also, Slashdot's Facebook page has a chat bot now. Message it for stories and more. Check out the new SourceForge HTML5 internet speed test! ×
Operating Systems

Submission + - Create virtual machine image of OS on hard disk 1

skristir writes: I have a couple of old clunker boxes on which I run Windows NT and Windows XP. They are around because I have s/w and data on them that I still need. Having upgraded to a reasonably powerful Linux (Ubuntu) machine, I was hoping that I could create virtual machine images from the hard disk and then de-commission the old hardware. I do have the original install disks, but I am not interested in re-installing all the s/w on a virtual machine. What would be the point of that?! Can anyone suggest how one would go about converting existing s/w on a hard disk into a virtual machine image? I looked at Xen and Virtual Box but not enough information is available. VMWare wants my money but I still don't know if it can do what I want....
This discussion was created for logged-in users only, but now has been archived. No new comments can be posted.

Create virtual machine image of OS on hard disk

Comments Filter:
  • ...and do this:
    • Create a VM with a virtual hard disk the same size as the physical hard disk your old system resides in
    • Attach the real hard disk to the VM as a second disk
    • Boot the VM off a linux liveCD
    • dd if=/dev/sdb of=/dev/sda bs=4096 (substitute actual devices, if you're using IDE mode instead of SCSI)
    • Detach the real hard disk
    • Boot the VM off the virtual hard disk
    • ...
    • Profit!

UFOs are for real: the Air Force doesn't exist.