brent timothy saner on 7 Jun 2015 09:11:09 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Virtualize a bare metal machine


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 06/07/2015 11:53 AM, Eric H. Johnson wrote:
> Hi all,

> I know of a number of tools where I can do this for Linux, but is there
> a tool that will let me backup / virtualize a bare metal install of
> WinXP? There is windows backup, which I guess I could backup and then
> restore to a freshly created VM. (I think that exists back in XP).

If you have the disk space on the virt host, remove the hdd from the
legacy box, hook it up in the virt box, and:

mkdir /opt/virtdisk && dd if=/dev/sd<whatever_windows_hdd_is>
of=/opt/virtdisk/winxp.legacy.img

(sorry for the awkward linebreaks; that should all be on one line)

you'll get a faster dd if you specify bs=, but i don't know the disk's
geometry so i can't provide that for you.

you ca then use it in e.g. KVM by specifying the disk type as raw and
pointing it to that dd image. :) cool, eh?


however, cloning the *entire* hdd takes up quite a bit of space- so you
can also use clonezilla (clonezilla.org) since it only grabs populated
sectors. you *may* need to fix the MBR in the image, so be prepared for
that (there's even a linux tool to do this! see
http://askubuntu.com/questions/183799/fix-windows-mbr-using-ubuntu-live-cd-and-ms-sys-tool)

ta-da!


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCgAGBQJVdG0OAAoJEIwATC+TSB9riEMQAJrGKrcUCjomWqYh9F919dpp
PfQYmlA4grWdxzMGkRLVlSkrkqnc94D5zgnEQB403iN0CcMZVULvSm866HZX+eQ3
CVHgOwEG0PIpu6KdWJmtnqXwDHQFRJ0HGLjO1Dy+0qy8Zlm2QwQwQbsrTiJNWsYx
OuahHukzJIRset4XbPnac49caTSWSFUxPWyCr/f6D2RGAQzv6iE5VuHpBVpRGMRm
PLsawxTJTE24IOLL/+f+LpMz/PdR/zaKshth8HnmScLvsK4MgB5/CjSeCg4R1vBL
8scOmeNYKtJOnlw/PQF4MmSFGuH9b5+iEkg4Wx9Ih7s8H2142fhBBz4MQEF5hsxb
C9KyT+oXcn5HqBD7xdCCMe+YrWkxD8CWm/QeLlthq7pMKBIyn/ZJWjlfXXJRTmmK
rA9bgU3mCGgb7fendoeZiW0G+8GUhJt6vq/bpDrYuUzBFjVz7smdDsrsNXUuyQ8x
KQ4KfjAgmmyUQ9mpGKe0nP/j+LRE160/6kNW6lEJenC6CANyAZlbmySgXqBo00go
hEhA+HX/hde4GMtiq2M8WkTWhmtjNPAwGUPPGr2ggqS791Q1x4X2UVqI2NJu8dtj
6uEkNIg1YoKqrJzdjc6ABgWnm2JWU9UoVBthTqvQP+Cb4iaFkcuL8D6YryoRm/ss
wPyJ11k1tXUHjHYsEEtZ
=k854
-----END PGP SIGNATURE-----
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug