Making a virutal machine out of a networked computer

This is for discussing general topics about how to use VirtualBox.
Post Reply
kylejwx
Posts: 3
Joined: 4. Dec 2007, 23:24

Making a virutal machine out of a networked computer

Post by kylejwx »

I have heard that it is possible to create a virtual machine out of a real computer. For instance, I want to do some messing with my family's XP Home desktop but i can't take the risk to of doing that on the real machine. So I want to virtualize that machine on my laptop in order to conduct the testing with out messing anything up. I have been told that VirtualBox can allow me to do that. How do I do that? Are there any help documents that can lead me through the proccess?
eiffel56
Volunteer
Posts: 100
Joined: 10. Oct 2007, 21:53

Post by eiffel56 »

If you are running VirtualBox on a Linux host, its quite simple.

Plug the HDD in your computer, and copy the entire disk in an image on your computer using dd.

Code: Select all

dd if=/dev/realharddisk of=image.raw
After that, you can convert that RAW file to a VDI file,

Code: Select all

vditool DD image.raw image.vdi
You can use the resulting VDI file directly in VirtualBox.

Or you can use it directly by using the loopback device and a rawvmdk

Code: Select all

losetup /dev/loop0 image.raw
VBoxManage internalcommands createrawvmdk -filename image.vmdk -rawdisk /dev/loop0
You can use the resulting VMDK file directly in VirtualBox, do not delete the raw file for this solution.

Since your new guest is Windows XP, it may not boot(just a bluescreen at startup). Windows does not like if you change the hardware without reinstalling it. This issue is related to Windows itself, and can't be fixed in VirtualBox.

If your host is Windows, it may be difficult. There is a DD windows port somewhere, you'll have to use it. Or maybe that "WinImage", but I don't really know.
S.SubZero
Volunteer
Posts: 123
Joined: 5. Oct 2007, 21:30

Post by S.SubZero »

As said, moving XP from one environment to another is painful.

One other problem is going to be activation. Even if you get past all the driver and hardware change issues, XP will likely deactivate and since you apparently plan on running the original PC *and* the new virtual one, the virtual XP can't be activated (legally). You can only use one key on one PC, real or virtual.
kylejwx
Posts: 3
Joined: 4. Dec 2007, 23:24

Post by kylejwx »

Yeah, my host in this case is my Windows Vista laptop. Sounds like it is going to be quite a challenge. Maybe someday I will figure it out. Thanks for the help!
Post Reply