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] XEN : Is there any way for sharing base virtual image.?

To: "Christian Horn" <chorn@xxxxxxxxxxxx>, ashifsyed@xxxxxxxxx, arunain@xxxxxxxxx, xen-users@xxxxxxxxxxxxxxxxxxx, "Anand Gupta" <xen.mails@xxxxxxxxx>
Subject: Re: [Xen-users] XEN : Is there any way for sharing base virtual image.?
From: "Arun Sharma" <arunain@xxxxxxxxx>
Date: Sat, 3 Nov 2007 14:50:10 +0530
Delivery-date: Sat, 03 Nov 2007 02:20:58 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=1lmS4nMWVLgaIpSXD7Uf3un46Sf2nTTAMCUOI/TqwPE=; b=kR7R30gpayx48RHkQOzn8KTaPfubeVg1QP4e2VyTNJ93O7Bz1JCjtyBr7iwVGUrXN7WJanA6pcSyxUCbFjNjPBq+CYOOhQfvXuujkmLksyNt+C+fKsTY2Z52vK8RAkeyDS0l2tj+grXqyi2FqrJBBbkDWYv1o3VYrZDiSJVl50Y=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=mkJ7o+5fSG+xtGExMtln80Pw3e8nAWW+5njyTx5FdszzwCIEF/iDJeSF5JpuIUyPNTtlL6IUR4F/LVxCg/jXnS8mFa+SbSF4IOlpFwI1tGoNz2/Y6CVA915h1YMWADXkzCi7bwQNZGMkjdz1Mhe2bLtngTJ84w6n9cDwSijw1BY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi Christian ,

Its good to know the concept given by you.I found one more thing to work the same like stuf.. even you will feel nice about it.

UnionFS based snapshotting Or having a Read only based virtual machines.

Just give a try and give the feedback. Since i found this concept interesting.

http://flaviostechnotalk.com/wordpress/index.php/2005/06/28/filesystem-snapshots-with-unionfs/


Regards
Arun Sharma

On 11/2/07, Christian Horn <chorn@xxxxxxxxxxxx> wrote:
On Fri, Nov 02, 2007 at 07:01:35PM +0530, Arun Sharma wrote:
>
> So can you give me the steps by step doc on how to implemnent the same you
> are talking about. So that i can have a try.

The basic steps using usual lvm2 are:

- create a pv, i.e. if /dev/sdc is a disc you want to use:
        pvcreate /dev/sdc

- create a volumegroup containing the created pv:
        vgcreate vg_xen /dev/sdc

- create your master-volme:
        lvcreate -L 7G -n lv_master vg_xen

- create the master-domU: create a xen-domU using
  phy:/dev/vg_xen/lv_master as disc and install your OS

- shutdown the master-domU

- create the first snapshot:
        lvcreate -s -L 2G -n lv_snap01 /dev/vg_xen/lv_master
  The above leaves 2G storage for changes that the slave-domU can
  make in the snapshot.

- create the first slave-domU: create a xen-configfile mostly
  similiar to the master-domU config, change domU name, and
  use phy:/dev/vg_xen/lv_snap01 as disc



Christian



--


Regards
Arun Sharma
0-934-829-3810
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>