Clone Windows XP machines

  • Thread starter Thread starter vhristev
  • Start date Start date
V

vhristev

Guest
Hello ,

I have task to install over 20 Windows XP machines.

Can somebody explain me how to clone this machines I really don't want to install 20 machines.

I see this manual
. You create a source/template virtual machine and install the system.
2. You create virtual machines with exactly the same hd size as the source machine.
3. You issue dd if=/dev/lvmgroup/vm-{$VMID_SOURCE}-disk-1 of=/dev/lvmgroup/vm-{$VMID_NEW}-disk-1
4. You jump start new vms and configure unique IP address for them.
5. Done :)


But I think i can just copy this images and just change IP ,MAC ,Hostname and they will run .
I just need to clone them.

Maybe I will make some default installation with all software I need and then clone it but i need to know how can I do it.

Greetings
 
I would create a installation with all software and then execute something like sysprep (consult a windows expert here).

now, create a backup and restore it (vzdump, qmrestore) as many times as needed.

after restore, you need to manually change the /etc/qemu-server/VMID.conf files, especially the MAC addresses needs a change.
 
OK what i just did was .

1.Create KVM windows image but don't start to install it just create it .

proxmox:/var/lib/vz/images# ls -lah
total 16K
drwxr-xr-x 4 root root 4.0K May 5 13:14 .
drwxr-xr-x 9 root root 4.0K May 5 10:18 ..
drwxr-xr-x 2 root root 4.0K May 5 11:18 101
drwxr-xr-x 2 root root 4.0K May 5 13:14 102

This is my 2 machines 101 and 102 after I create it i get 103
Then make
proxmox:/var/lib/vz/images/103# dd if=101/vm-101-disk-1.raw of=vm-103-disk-1.raw

Start second (103) Windows and it runs just change Hostname IP but I see mac was different take god (: everything work.

Before year I clone 25 physical machines and i use sysprep and it was perfect 10x for advice I will post when I make something different and working