From: Jacob Gorm Hansen Subject: Re: Cloning(making copies) of VMs Date: Tue, 15 Nov 2005 16:48:49 +0100 Message-ID: References: <83c5685b0511072225u40ba05c9t121ea92c942286a1@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: mark.williamson@cl.cam.ac.uk Cc: xen-devel@lists.xensource.com, sowmya dayanand , Deepak Manohar List-Id: xen-devel@lists.xenproject.org On 15 Nov 2005 15:35:37 +0000, M.A. Williamson wrote: > We really need some sort of daemon / hotplug script in the guest to react > to this sort of thing. Only problem is if the hotplug script or daemon resides on an NFS-root then. In any case calling on domU userspace to do this will be error-prone and slow :-( I think the best thing would be a domU kernel module or similar that can obtain the new IP address from xenstore and do the ifconfig inside the domU kernel. Alternatively the guest could always have the same IP (say 10.0.0.1) and then in- and outgoing packets could be rewritten to the real IP on the fly, either by the domU or by some iptables magic in dom0. Jacob