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] Domain duplication

To: Benjamin Watine <watine@xxxxxxxx>
Subject: Re: [Xen-users] Domain duplication
From: mpeters@xxxxxxxxxxxxxxx
Date: Mon, 30 Jul 2007 17:13:04 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 30 Jul 2007 09:10:49 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <46AE0A05.5020009@xxxxxxxx>
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: <46ADFDB7.7070300@xxxxxxxx> <1185809829.46ae05a5bb485@xxxxxxxxxxxxxxxxxxxxxxxx> <46AE0A05.5020009@xxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Internet Messaging Program (IMP) 3.2.3
Quoting Benjamin Watine <watine@xxxxxxxx>:

> mpeters@xxxxxxxxxxxxxxx a écrit :
> > Quoting Benjamin Watine <watine@xxxxxxxx>:
> >
> >> Hi the list, first post here !
> >>
> >> I would like to duplicate v3.0.3 xen domain configured with file volume.
> >>
> >> So I configured a new VM using virt-install script. After installation
> >> process finished, I copy (duplicate) the file volume and the
> >> configuration file. I edit name, disk, mac address on vif on the config
> >> file, and quote uuid parameter.
> >>
> >> (First : how to deal with this uuid ? Removing it is OK ? Can I put the
> >> uuid I want ?)
> >>
> >> I run the new duplicated machine. All seems to be OK, but the network
> >> interface doesn't work anymore. Xen seems to have recreated a new
> >> interface (eth0), and have renamed the old in eth0.bak.
> >>
> >> I would like to know how to avoid that ; I would like that eth0 remains
> >> configured like it was before duplication.
> >>
> >> Maybe I don't use a good method for duplicating domains. If anyone have
> >> some documentation to do that.
> >>
> >> Thanks
> >>
> >> Ben
> >
> > If I understand correctly, this sounds like a similar problam to the one
> > encountered by Tomoki Taniguchi earlier today. Depending upon your Linux
> > Distro/version, look for an entry corresponding to eth0 in either
> /etc/iftab or
> > /etc/udev/rules.d/30-net_persistent_names.rules and delete it. Next, if the
> > config for the interface is stored in a file named as per the MAC address,
> eg
> > /etc/sysconfig/network/ifcg-eth-id-00:aa:aa:aa:aa:aa, you need to rename
> that
> > to
> > /etc/sysconfig/network/ifcg-eth-id-00:bb:bb:bb:bb:bb, where the new name
> matches
> > the new MAC address on the clone.
> >
> > The problem is that eth0's configuration is tied to the MAC address from
> the
> > machine you cloned, this MAC address doesn't exist on your copy. Removing
> the
> > lines from the above mentioned files and renaming the config file will
> enable
> > eth0 to be configured for the interface of your new DomU.
> >
>
> Thank you for your answer.
>
> Yes, the hardware adress of my interface is explicitely configured in
> the device file of my distro (RHEL5) :
> /etc/sysconfig/networking/device/ifcfg-eth0
>
> I will try to delete this line in my source disk to make it "non MAC
> dependant", or I'll correct it later in the duplicated machine.
>
> But, the way I use to duplicate machine is correct ? Nothing to say
> about this "simple" method ?

I currently use a similar method to duplicate domains. I've had no real problems
and am currently running upwards of 70 DomUs created this way.

--
Mike Peters
Web Site: http://www.ice2o.com


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

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