HOWTO: Create VirtualBox Image from Disk

VirtualBox.png

Not quite sure what to backup from a computer I am currently fixing I decided to turn a virus laden XP install into a VirtualBox image on my desktop machine at home.

Enter dd, ssh, and VirtualBox.

After a little reading I came up with this single line to extract the live image from the disk, move it to my desktop machine, and convert it to a 20G VirtualBox image.  First I booted from a live disc, mounted the drive I wanted and ran the following:

sudo dd if=/dev/hda | ssh user@xxx.xxx.xxx.xxx vboxmanage convertdd stdin virusxp.vdi 21474836480

Now upon return if they find I’ve missed anything I can just boot it up and retrieve it for them, and after a month or so after they’ve verified they’re happy with it, just easily delete the machine.

Related Posts

Comments are closed.