Hi, what would be the shortest and fastest way to clone a e.g. basic Centos 5 guest for further use? For example I'd like to set up a master Mysql-server as a guest an than "clone" two additional slaves. Which xen configfiles may be edited? Can the config and the filesystem simply be copied? Thanks for suggestions! Regards G?tz -- G?tz Reinicke IT Koordinator Tel. +49 7141 969 420 Fax +49 7141 969 55 420 E-Mail goetz.reinicke at filmakademie.de Filmakademie Baden-W?rttemberg GmbH Mathildenstr. 20 71638 Ludwigsburg www.filmakademie.de Eintragung Amtsgericht Stuttgart HRB 205016 Vorsitzender des Aufsichtsrats: Dr. Christoph Palmer, MdL, Minister a.D. Gesch?ftsf?hrer: Prof. Thomas Schadt
Manuel Wolfshant
2008-Apr-16 12:54 UTC
[CentOS-virt] How to clone a guest for cold stand by
G?tz Reinicke wrote:> Hi, > > what would be the shortest and fastest way to clone a e.g. basic > Centos 5 guest for further use? For example I'd like to set up a > master Mysql-server as a guest an than "clone" two additional slaves.I have a lvm "template", i.e. a simple volume with the OS skeleton ( a minimal install). When I need a new VM I do - lvcreate newvolume - mkfs newvolume - mount template /mnt/source - mount newvolume /mnt/destination - cp -a /mnt/source /mnt/destination wash, rinse, repeat as needed.> > Which xen configfiles may be edited?cp /etc/xen/template /etc/xen/newVM vim /etc/xen/newVM> Can the config and the filesystem simply be copied?yes.
G?tz Reinicke wrote on Wed, 16 Apr 2008 14:41:47 +0200:> Can the config and the filesystem > simply be copied?yes. You want to remove information from the config file that should be unique, for instance the UUID. It will then create a new one for you. Kai -- Kai Sch?tzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com