[CentOS-virt] How to clone a guest for cold stand by
Götz Reinicke
goetz.reinicke at filmakademie.de
Wed Apr 16 14:09:11 UTC 2008
Manuel Wolfshant schrieb:
> 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.
Thanks, that's realy simple. I'll try it.
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
More information about the CentOS-virt
mailing list