WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] XCP modifying cloned vms

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] XCP modifying cloned vms
From: George Shuklin <sector-bl@xxxxxxxxx>
Date: Mon, 21 Jun 2010 16:36:09 +0400
Delivery-date: Mon, 21 Jun 2010 05:37:31 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1277123770; bh=+5y3/4UjQQyvuiqYjNtzJxiVvvtEaio1IkXTLFOZ3VI=; h=From:To:In-Reply-To:References:Subject:MIME-Version:Message-Id: Date:Content-Transfer-Encoding:Content-Type; b=dspy/gaN6e7zuBushN2R636Up2+fmi2UUwAaD+fjMCL0oWvC5eyt/OTsn+XYfay8W eJ75489Abyeam0GZTorwTAu32myVKP8W43qjHYuZxIFXEjxJTCll1JxSkkAJhx/FJv JNZoKof4RqyUw2ti/2JnWhWBM32fFiytFAB6IZ+I=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4C1F5699.30603@xxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <4C1F5699.30603@xxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Good day.

I spent some time on this problem and found three separate solution:

1) Use preseed/kickstart to create new VM by automated installation
2) Configure a 'mother' VM (wich one is cloned) with script, reading data from 
xenstore/pvargs and setting up system.
3) Detach vdi from cloned VM, attach it to 'master', perform configuration, 
reattach back to cloned VM

After few tests I decide to use 1st method, as most puristic (new ssh keys, 
clean history, access log, etc). And, with debian preseed it does not take too 
much time: about 2 minutes on gigabit link to network storage.

21.06.10, 16:10, "David Heidt" <david@xxxxxxxxxxxxxxxx>:

> Hello List,
>  
>  are there any best practices of how to modify cloned Linux DomUs before
>  starting them?
>  
>  i.e. I have a cloned debian lenny and need logfiles truncated,
>  /etc/hosts modified and a different ip address configured.
>  
>  The Main focus is to create dummy-staging-VMs for our developers by
>  snapshotting production-VMs.
>  
>  There is one way of how to achieve this via filesystem access:
>  http://support.citrix.com/article/CTX117791
>  but kpartx doesn't show any mappings in my setup (XCP 0.1.1)
>  
>  
>  Any other ideas?
>  
>  Best regards,
>  
>  David
>  
>  
>  
>  
>  _______________________________________________
>  Xen-users mailing list
>  Xen-users@xxxxxxxxxxxxxxxxxxx
>  http://lists.xensource.com/xen-users
>  
>  

-- 
wBR,George.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users