[CentOS] How to clone CentOS server ?

Michael Kress kress at hal.saar.de
Wed Aug 26 13:40:57 UTC 2009

przemolicc at poczta.fm wrote:
> I'd like to clone existing CentOS server. Can anybody
> recommend any working solution to achieve that ?

1) virsh shutdown vmxx
2) cp /etc/libvirt/qemu/vmxx /etc/libvirt/qemu/vmyy
3) cp <old image file> <new image file>
4) perl -pi -w -e 's/old image file/new image file/g;' /etc/libvirt/qemu/vmyy
5) adjust new name in /etc/libvirt/qemu/vmyy
6) reload libvirtd
7) virsh start vmxx
   virsh start vmyy


More information about the CentOS mailing list