Eric H. Johnson on 7 Jun 2015 17:09:52 -0700 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PLUG] Virtualize a bare metal machine |
Keith et al, Thanks for all the good information. Sounds like a PLUG talk to me. J Regards, Eric My apologizes that email accidentally got sent before I could finish it... restarting- ~ ~ ~ I had offered a talk on this to PACS but the procedure I for Virtualizing windows on Linux also provides clean way of imaging a Windows box which is especially critical to protection from Ransomware. Since the image is portable it is valid for virtualization use as well as bare metal installations. You will also need a storage location to store the file the VM file that is produced. Fortunately for WinXP the procedure might be slightly less complicated. I'll give you all the steps first and then point out where you might save time.
When this completes you will have a .qcow2 VM image. To test it, I would create a clone (i.e. a copy of the VM pointing to this file as a backing images, see the qemu-img help) and bring it up. You'll have to go through the windows set up. You'll have to create a another user (I just call it sysprep) and when you are done and log off, you will see your others account(s). You and log into them as they will be intact. You can delete the sysprep account. The beauty of this is that when done, you can just delete the clone. Your image remains intact and be used over and over again. To burn this into bare-metal you would boot from your live cd again, connect your storage and use the qemu-img convert facility to write the image out in the "raw" format to the disk you want. To accelerate the process you can use dd to capture your boot sectors and then use ntfsprogs to create a clone of your windows drives. This is much faster but because the rebuild has more steps I don't like to use it here. I've use this for my Windows 7 Home Premium netbook. Which also has 2 Linux partitions. This process protects everything. So even though its 185Gb, I can sleep well knowing that my netbook can be destroyed and nothing is lost. In fact, I have it up in virtualization now so I could look at my Windows side instructions again. For Win XP, I have done this procedure without using sysprep but I don't know if it is always 100% reliable. We are talking about Windows after all. With Windows 2000 it was so I suspect it might work in XP but your mileage my vary. Hope this helps! |
___________________________________________________________________________ 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