I have a fully patched, pristine Windows XP box and would like to create virtual machines that have the exact same setup, OS and software - just differ in disk size, available RAM. The virtual technology does not matter (VMWare, VirtualPC, other), but is there a way to go from existing system to virtual machine? And can you do this for free?! I would sooner go this route than create and patch a new VM... Thanks for any advice.
- For converting the physical box to a virtual machine: VMware Converter. There's even a free version.
- For creating variations: Use linked clones to create a bunch of instances of that base machine, changing the RAM on each. You'll have to do a bit more work to change the disk size as you'll have to change the partition size and resize NTFS. I usually use sysrescuecd to do this to Windows virtual machines.
You may run into problems verifying the Windows license when you start the new instances of your VMs.
VMware Converter. You can boot from the bootable version to convert or you can use the add in Converter in VC, Virtual Center. With the VC route you right click on the VMware server you want the Vm to run on and select import machine. Answer a few questions... and presto!
Some things to look out for... if you have more than one physical drive or partition on the physical box you will be able to chose to create one VMDK file with multiple drives within or one VMDK file per drive. In cause that doesn’t make sense. if the physical box has a C, D and E drives.. you can have
1 VMDK cool_box.vmk (has 3 partitions)
cool_box.vmk = c drive
cool_box1.vmk = d drive
cool_box2.vmk = e drive
Also you will prob find you can get by with a smaler page file than in the physcial and less RAM and MOST one vCPU runs better than 2 or 4.
Just for the record, as ServerFault seems to be very VMware oriented, this is also possible with Citrix XenServer. It works pretty much like VMWare, you put a CD into a machine and it gets uploaded to a virtualization server which then executes it.
The extra advantage is that you can have paravirtualization with Linux/BSD/Solaris which leads to much better performance then VMWare.
Also XenServer is much cheaper then VMWare.
Vmware Converter is pretty trustworthy, although there are some caveats with whatever tool you use.
RAID drivers, NIC bonding, USB devices, and a host of other things need to be removed before the P2V.
OEM licensed OSes (ie you purchased a Dell server that came with Windows 2003 server) will not work.
P2Ver Beware! Good luck!