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] sharing kernels

To: Jeff Utter <jeffutter.lists@xxxxxxxxx>
Subject: Re: [Xen-users] sharing kernels
From: mike <mike@xxxxxxxxxxxxxxx>
Date: Tue, 02 May 2006 13:44:27 -0700
Cc: Xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 05 May 2006 03:20:48 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <445697A5.70709@xxxxxxxxx>
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: <445265E5.1060400@xxxxxxxxx> <445274FF.4080109@xxxxxxxxxxxxxx> <445697A5.70709@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.2-6 (X11/20050513)
Jeff Utter wrote:
So, I've been trying this out. But i ran into the problem where if the /lib/modules was mounted in the dom0 xen wouldn't let me start a domU with it as one of the disk entries. Is there any way around this, am i overlooking something? for now i made a lvm snapshot of the /lib/module partition so i could get my domU's back up and running.

Hi Jeff,

Here's how I did it for r/o /usr.

# disk volumes/partitions

/dev/vg0/fc4  contains /        # for domain-0
/dev/vg0/swap contains swap     # for domain-0

/dev/vg0/vm1  contains /        # for domU #1
/dev/vg0/sw1  contains swap     # for domU #1

/dev/vg0/usr  contains /usr/*   # for everybody

# from the xen domU #1 definition file  /etc/xen/vm1

disk = [
   'phy:vg0/vm1,hda1,w',
   'phy:vg0/usr,hda2,r',
   'phy:vg0/sw1,hda3,w'
]

# domain-0 /etc/fstab

/dev/vg0/fc4   /    ext3 defaults 1 1
/dev/vg0/usr   /usr ext3 ro,async,exec,suid,dev,nouser,auto 0 0
/dev/vg0/swap  swap swap defaults 0 0

# domU #1 /etc/fstab

/dev/hda1      /    ext3 defaults 1 1
/dev/hda2      /usr ext3 ro,async,exec,suid,dev,nouser,auto 0 0
/dev/hda3      swap swap defaults 0 0

There are alot of little pieces happening at different times on different levels so it can become very confusing. Hope this makes it a little clearer for you.



Thanks,
Jeff

I use a shared /usr partition between my dom0 and all the domU's. You may be able to do something like that.

Create a logical volume to contain /lib/modules/2.6.xx-xen. Export it in your domU definitions as one of the "disk = []" entries, read only, then add a mount line in each of your domU's for it. Guaranteed to be the same on each domU.

BTW, none of my domU's even has a /boot partition.


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



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

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