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] Cloning VM's

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Cloning VM's
From: David Koski <david@xxxxxxxxxxxxxxxx>
Date: Tue, 13 Jun 2006 10:27:59 -0700
Delivery-date: Tue, 13 Jun 2006 10:28:45 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <448EADBF.BA77.0095.0@xxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <448EADBF.BA77.0095.0@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.1
On Tuesday 13 June 2006 09:21, Jose Betancourt wrote:
> Hi all,
> 
> I'm looking for different ways of "cloning" a domU once it has been
> successfully created.  On SUSE Linux, I have already used AutoYast and
> combined it with the VM creation process through Yast and I can build
> another machine that way.
> 
> I was wondering if there are other "quick and dirty" ways to replicate
> the environments.  I don't think the quick dd will work 100% since
> although I can change the ip and hostname information on the definition
> file and the vm itself, I'm not able to change the underlying MAC.
> 
> Any thoughts, ideas, etc?

I use a script that creates LVM partitions for the root and swap
partitions, then untars a debootstrap created image to it. Of
course it makes the filesystems and mounts them first. It also
creates a default config file. From executing the command to
logging in takes about a minute. I could modify the script to
change the hostname and other settings but I don't create enough
VMs to make it worthwhile.  The install has shorewall firewall
preinstalled. If I want to modify the tar'ed version I just untar
it, chroot to it and update packages or whatever, then tar it
back up. It is easy with Debian.

David





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

<Prev in Thread] Current Thread [Next in Thread>