Hey, I was just wondering if anyone on the list had any clever solutions to the small problem I''m having. I''m running Xen on FC5, with a few FC5 DomU''s. Basically i have to have kernel-xenU-version kernel-xen0-version both installed in my domU (so the domU kernel image is present in my dom0 so they can boot) as well as installing the kernel-xenU package on each of my domU''s so that the libraries are present. Would it be easy/possible/smart to setup a nfs share or something similar of my dom0''s /boot partition as well as /library/modules to share to my domU''s so that when i install a new kernel all i would need to do is change the domU''s config file? has anyone tried anything like that? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jeff Utter wrote:> Hey, I was just wondering if anyone on the list had any clever solutions > to the small problem I''m having. > > I''m running Xen on FC5, with a few FC5 DomU''s. > > Basically i have to have kernel-xenU-version kernel-xen0-version both > installed in my domU (so the domU kernel image is present in my dom0 so > they can boot) as well as installing the kernel-xenU package on each of > my domU''s so that the libraries are present. > > Would it be easy/possible/smart to setup a nfs share or something > similar of my dom0''s /boot partition as well as /library/modules to > share to my domU''s so that when i install a new kernel all i would need > to do is change the domU''s config file? > > has anyone tried anything like that?Hi 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@lists.xensource.com > http://lists.xensource.com/xen-users > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Oh wow, i didn''t even think of using a ro partition :-P i was concocting some grand scheme involving nfs, but yeah a ro partition would be easy.. that should handle it for me, thanks. -Jeff list user wrote:> Jeff Utter wrote: >> Hey, I was just wondering if anyone on the list had any clever >> solutions to the small problem I''m having. >> >> I''m running Xen on FC5, with a few FC5 DomU''s. >> >> Basically i have to have kernel-xenU-version kernel-xen0-version both >> installed in my domU (so the domU kernel image is present in my dom0 >> so they can boot) as well as installing the kernel-xenU package on >> each of my domU''s so that the libraries are present. >> >> Would it be easy/possible/smart to setup a nfs share or something >> similar of my dom0''s /boot partition as well as /library/modules to >> share to my domU''s so that when i install a new kernel all i would >> need to do is change the domU''s config file? >> >> has anyone tried anything like that? > > Hi 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@lists.xensource.com >> http://lists.xensource.com/xen-users >> >> > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
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. 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@lists.xensource.com http://lists.xensource.com/xen-users
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.The partition/volume must be mounted readonly everywhere it is mounted or the domUs will complain and refuse to participate.> > 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@lists.xensource.com > http://lists.xensource.com/xen-users > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
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@lists.xensource.com > http://lists.xensource.com/xen-users > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
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@lists.xensource.com > http://lists.xensource.com/xen-users > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users