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 domains

To: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Subject: Re: [Xen-users] cloning domains
From: "Arie Goldfeld" <arik.goldfeld@xxxxxxxxx>
Date: Thu, 14 Jun 2007 11:58:37 +0300
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 14 Jun 2007 01:56:45 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=h4+gmyB+L1vnGHUlOK61MWf9AAoiGhV/sjoB7rE4jowwldw9Phd97r3IZujmkMcZkIZhyLGl+Dq+vDLAlpEe6YUlG4TriA2eEN1C4cem5VU11vHwW89mIZlHF/OBsd5k+2TojB8yJ4zx097o2FM8LfIKqFDSoPnVNnKjUOHbp9M=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=T/ghLxhN4MkjcZ/cOTdSuBTU6FJG7qoalnCOwp//BR2Rl76A6gZ+6j3aEyS4IcL5x7sAXvn90zBc/0X7BDxo2S/k6de+M3NxmvUeAmdd/08yDv+Akrgk6vNkgjjtpfMKdeLgtF4DQFqFr4Cm0c3pfkjq5hdqMXqo/tIfrzIyVy0=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070613125547.GF14120@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: <817d8cc30706130017l783e1f01i57f9076add94be76@xxxxxxxxxxxxxx> <20070613125547.GF14120@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
The guest domains I've created by the cloning process described by Daniel have a problem with network connection.
Does anybody have an idea what might be the problem? Please see the exerpt from xend.log:
 

[2007-06-14 09:25:00 10796] DEBUG (DevController:570) hotplugStatusCallback 1.

[2007-06-14 09:25:00 10796] DEBUG (DevController:148) Waiting for devices console.

[2007-06-14 09:25:00 10796] DEBUG (DevController:148) Waiting for devices pci.

[2007-06-14 09:25:00 10796] DEBUG (DevController:148) Waiting for devices ioports.

[2007-06-14 09:25:00 10796] DEBUG (DevController:148) Waiting for devices tap.

[2007-06-14 09:25:00 10796] DEBUG (DevController:153) Waiting for 51712.

[2007-06-14 09:25:00 10796] DEBUG (DevController:556) hotplugStatusCallback /local/domain/0/backend/tap/23/51712/hotplug-status.

[2007-06-14 09:25:00 10796] DEBUG (DevController:570) hotplugStatusCallback 1.

[2007-06-14 09:25:00 10796] DEBUG (DevController:148) Waiting for devices vtpm.



 
On 6/13/07, Daniel P. Berrange <berrange@xxxxxxxxxx> wrote:
On Wed, Jun 13, 2007 at 10:17:24AM +0300, Arie Goldfeld wrote:
> Hello,
>
> I use FC7 with its built-in Xen 3.1.
> I am looking for a method of guest domain cloning. Specifically, my problem
> is with the domain UUID. With Xen 3.0 one could simply copy the domain
> config file and then edit it for the new domain settings, then copy the
> image file. But with Xen 3.1 a domain's config file is stored in
> /var/lib/xend/domains/<UUID>/config.sxp, and I am not sure how the UUID is
> generated...

Best bet at this time is to extract the guest config

  virsh dumpxml [guest name]  >  guest.xml

Edit the guest.xml to change the name, UUID, MAC address & point to a
copy of the filesystems, then load the config back into XenD

  virsh define guest.xml

In the next update of  python-virtinst in Fedora we are also adding a
command explicitly for cloning existing guests called 'virt-clone'
which will make this task much much easier :-)

Regards,
Dan.
--
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=|

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>