RE: [Vserver] How to build first vserver ?
Hi, > >>Next, I have an issue with the setup in general... I mount > >>/vservers/dns-int as a lvm-partition .. > > Sorry; not supported yet. > Well, we have several vservers (60 and more on 20 servers+) > set up like this (either a globale LVM /vservers partition or > one LVM partition by vserver /lvm/vservers/dns, etc.) and we > never had any trouble. > > Can you describe your setup as well as the ouptut of > lvdisplay, vgdisplay, fstab, etc. ? # lvdisplay File descriptor 3 left open File descriptor 5 left open File descriptor 7 left open --- Logical volume --- LV Name/dev/volgrp1/dns-ext VG Namevolgrp1 LV UUIDDvVg6C-pHWx-JAMI-Ggwd-Zabv-O2bZ-m8tTao LV Write Accessread/write LV Status available # open 1 LV Size2,00 GB Current LE 64 Segments 1 Allocation inherit Read ahead sectors 0 Block device 253:0 --- Logical volume --- LV Name/dev/volgrp1/dns-int VG Namevolgrp1 LV UUIDHKF0el-Flal-K2Br-kDnP-FsML-zDGk-7toVCr LV Write Accessread/write LV Status available # open 1 LV Size2,00 GB Current LE 64 Segments 1 Allocation inherit Read ahead sectors 0 Block device 253:1 # vgdisplay File descriptor 3 left open File descriptor 5 left open File descriptor 7 left open --- Volume group --- VG Name volgrp1 System ID Formatlvm2 Metadata Areas1 Metadata Sequence No 3 VG Access read/write VG Status resizable MAX LV0 Cur LV2 Open LV 2 Max PV0 Cur PV1 Act PV1 VG Size 7,41 GB PE Size 32,00 MB Total PE 237 Alloc PE / Size 128 / 4,00 GB Free PE / Size 109 / 3,41 GB VG UUID gsaR3l-U8hZ-ch5g-hvYh-2O2b-xGx3-E5vUA7 # cat /etc/fstab | grep volgrp1 /dev/volgrp1/dns-ext/vservers/dns-ext ext3defaults1 2 /dev/volgrp1/dns-int/vservers/dns-int ext3defaults1 2 Even though I'm using "--force", it still complaints and tries to rename the mountpoint... 2nd: I'm not sure why the vg-commands reports those file descriptor messages, but assume it's a minor issue... Regards, /Brian ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] How to build first vserver ?
Hello, Enrico Scholz a écrit : > [EMAIL PROTECTED] (Brian Ipsen) writes: > > >>Next, I have an issue with the setup in general... I mount >>/vservers/dns-int as a lvm-partition .. > > > Sorry; not supported yet. Well, we have several vservers (60 and more on 20 servers+) set up like this (either a globale LVM /vservers partition or one LVM partition by vserver /lvm/vservers/dns, etc.) and we never had any trouble. Can you describe your setup as well as the ouptut of lvdisplay, vgdisplay, fstab, etc. ? Ben -- Benoît des Ligneris Ph. D. Président / C.E.O. Revolution Linux http://www.revolutionlinux.com/ Toutes les opinions et les prises de position exprimées dans ce courriel sont celles de son auteur et ne représentent pas nécessairement celles de Révolution Linux. Any views and opinions expressed in this email are solely those of the author and do not necessarily represent those of Revolution Linux. ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] How to build first vserver ?
[EMAIL PROTECTED] (Brian Ipsen) writes: > #./vserver-build --force -m yum -n dns-int1 -- -d wbel4 > Renamed '/etc/vservers/dns-int1' to '/etc/vservers/dns-int1.~1121798195~' > ftp://ftp.riken.jp/Linux/whitebox/Null/en/os/i386/repodata/repomd.xml: The yum author refuses to make yum configurable so there is no way to influence '$releasever'. Its value is defined only by the release number of the installed 'fedora-release' package (resp. the configured 'distroverpkg'). Yes, it sucks and feel free to bother the yum author regarding this issue. In the meantime, all occurences of '$releasever' have to be replaced manually with the correct value. > Next, I have an issue with the setup in general... I mount > /vservers/dns-int as a lvm-partition .. Sorry; not supported yet. Enrico pgplxkZUQqZ5U.pgp Description: PGP signature ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] How to build first vserver ?
On Fri, Jul 22, 2005 at 11:02:52PM +0200, Brian Ipsen wrote: > Hi, > > > Sorry, just catching up on the ML. . . > > > > You can use the how-to written for CentOS, another RHEL clone: > > > > http://linux-vserver.org/CentOS_HowTo > > Hmm.. The minimum-list, that the page refers to, looks quite big... Sure, > that all those packages are needed ? > > "eject" and "setserial" could probably be omitted - maybe also several > others yes, but I guess as with most distros there are weird dependancies across the packages .. like for example that basesystem needs cpio and cpio won't do without setserial :) or like fileutils require automount and automount will drag in eject ... well you get the idea In general it would be a great thing if folks really good with a distro (or distributors) could do some kind of linux-vserver dependancy graph, which would allow to fix or ignore certain dependancies for vserver guests (saving a lot of space and trouble) without causing the tiniest update to drag in the 'missing' 350MB you carefully avoided in the first place ... best, Herbert > Otherwise a good link :-) > > /Brian > ___ > Vserver mailing list > Vserver@list.linux-vserver.org > http://list.linux-vserver.org/mailman/listinfo/vserver ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] How to build first vserver ?
Sorry, if it doesn't say this somewhere else - that is the list of rpms installed when you just choose minimal during a normal install of the OS. Obviously, not all of them are needed and can be adjusted by each user. This gives the opposite approach from Enrico's option, which only installs 5 packages or something like that. Kevin Brian Ipsen wrote: Hi, Sorry, just catching up on the ML. . . You can use the how-to written for CentOS, another RHEL clone: http://linux-vserver.org/CentOS_HowTo Hmm.. The minimum-list, that the page refers to, looks quite big... Sure, that all those packages are needed ? "eject" and "setserial" could probably be omitted - maybe also several others Otherwise a good link :-) /Brian ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
RE: [Vserver] How to build first vserver ?
Hi, > Sorry, just catching up on the ML. . . > > You can use the how-to written for CentOS, another RHEL clone: > > http://linux-vserver.org/CentOS_HowTo Hmm.. The minimum-list, that the page refers to, looks quite big... Sure, that all those packages are needed ? "eject" and "setserial" could probably be omitted - maybe also several others Otherwise a good link :-) /Brian ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] How to build first vserver ?
Brian, Sorry, just catching up on the ML. . . You can use the how-to written for CentOS, another RHEL clone: http://linux-vserver.org/CentOS_HowTo Enjoy, Kevin [EMAIL PROTECTED] wrote: Date: Tue, 19 Jul 2005 11:45:43 +0200 From: Brian Ipsen <[EMAIL PROTECTED]> Subject: [Vserver] How to build first vserver ? To: Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="us-ascii" Hi, I've been surfing a bit around in search of a guide on how to set up/build the first vserver - but haven't been able to locate one... My "base" vserver is up and running (with the vserver kernel) - the problem is creating a virtual server... I'm running WhiteBox Enterprise Linux 4 (a RHEL clone), but have difficulties figuring out how to create the distribution stuff - and where does it pick the RPM packages from ?? Any hints, links, instructions etc are appreciated ... /Brian ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] How to build first vserver ?
On Wed, Jul 20, 2005 at 01:43:41PM +0200, Brian Ipsen wrote: > Hi again, > > By the way - after upgrading to 0.30.208, I get: > > # ./vserver-build --force -m yum -n dns-int1 -- -d wbel4 > Renamed '/etc/vservers/.defaults/vdirbase/.pkg/dns-int1' to > '/etc/vservers/.defaults/vdirbase/.pkg/dns-int1.~1121803639~' > rpm-fake.so: vc_create_context(): Function not implemented > rpm-fake.so: failed to initialize communication with resolver > rm -rf /etc/vservers/.defaults/vdirbase/dns-int1 /etc/vservers/dns-int1 > /etc/vservers/.defaults/vdirbase/.pkg/dns-int1 > > Running kernel 2.6.11.12-vs1.9.5.Elsmp could not hurt to update to vs2.0-rc8.1, if the issue remains, please file a bugreport at savannah ... TIA, Herbert ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] How to build first vserver ?
On Wed, Jul 20, 2005 at 01:40:11PM +0200, Brian Ipsen wrote: > > > > # ./vserver-build --force -m yum -n dns-int -- -d wbel4 mv: > > > cannot move `/etc/vservers/.defaults/vdirbase/dns-int' to > > > `/etc/vservers/.defaults/vdirbase/dns-int.~1121800325~': > > > Device or resource busy > > > Any idea why ? > > > > did you try 0.30.208 yet? (not sure this has been fixed) > > I just tried the 0.30.208 : > > # ./vserver-build --force -m yum -n dns-int -- -d wbel4 > mv: cannot move `/etc/vservers/.defaults/vdirbase/dns-int' to > `/etc/vservers/.defaults/vdirbase/dns-int.~1121803446~': > Device or resource busy > rm -rf > # cat /etc/mtab | grep dns-int > /dev/mapper/volgrp1-dns--int /vservers/dns-int ext3 rw 0 0 > # ls -l /vservers > drwxr-xr-x 2 root root 4096 Jul 19 20:33 dns-int > Aparently it isn't fixed yet... would be great if you could file a bug report to savannah (util-vserver) so that it will be fixed soon ... TIA, Herbert > /Brian ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
RE: [Vserver] How to build first vserver ?
Hi, > I'd naively try something like > releasever=4711 > basearch=i786 I've replaced the $releasever with 4 in the yum-files - just to be sure... So at least I don't get that error anymore > > > Next, I have an issue with the setup in general... I mount > > /vservers/dns-int as a lvm-partition .. But vserver-build > seem to have > > difficulties handling my setup this way... Trying to buidl e new > > vserver, I get: > > > > # ./vserver-build --force -m yum -n dns-int -- -d wbel4 mv: > > cannot move `/etc/vservers/.defaults/vdirbase/dns-int' to > > `/etc/vservers/.defaults/vdirbase/dns-int.~1121800325~': Device or > > resource busy > > > > Any idea why ? > > did you try 0.30.208 yet? (not sure this has been fixed) I just tried the 0.30.208 : # ./vserver-build --force -m yum -n dns-int -- -d wbel4 mv: cannot move `/etc/vservers/.defaults/vdirbase/dns-int' to `/etc/vservers/.defaults/vdirbase/dns-int.~1121803446~': Device or resource busy rm -rf # cat /etc/mtab | grep dns-int /dev/mapper/volgrp1-dns--int /vservers/dns-int ext3 rw 0 0 # ls -l /vservers drwxr-xr-x 2 root root 4096 Jul 19 20:33 dns-int Aparently it isn't fixed yet... /Brian ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
RE: [Vserver] How to build first vserver ?
Hi again, By the way - after upgrading to 0.30.208, I get: # ./vserver-build --force -m yum -n dns-int1 -- -d wbel4 Renamed '/etc/vservers/.defaults/vdirbase/.pkg/dns-int1' to '/etc/vservers/.defaults/vdirbase/.pkg/dns-int1.~1121803639~' rpm-fake.so: vc_create_context(): Function not implemented rpm-fake.so: failed to initialize communication with resolver rm -rf /etc/vservers/.defaults/vdirbase/dns-int1 /etc/vservers/dns-int1 /etc/vservers/.defaults/vdirbase/.pkg/dns-int1 Running kernel 2.6.11.12-vs1.9.5.Elsmp ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] How to build first vserver ?
On Wed, Jul 20, 2005 at 12:46:34PM +0200, Brian Ipsen wrote: > Hi, > > I got yum up and running (using existing yum repositories - having my own > setup is on the to-do list, once I find the needed "dummy ho-to" guide ;-)) > > > > > | # vserver ... build -m yum ... -- -d wbel4 > > > > > > > > out-of-the-box (although it is strongly recommended to patch yum). > > > > > > Okay - I'll try to see if I can get something up and running ... > > > Otherwise I'll be back for more info ;-) > Now, when trying to do a vserver-buidl, I get: > > > #./vserver-build --force -m yum -n dns-int1 -- -d wbel4 Renamed > '/etc/vservers/dns-int1' to '/etc/vservers/dns-int1.~1121798195~' > ftp://ftp.riken.jp/Linux/whitebox/Null/en/os/i386/repodata/repomd.xml: > [Errno 4] IOError: [Errno ftp error] 550 Null: > No such file or directory Trying other mirror. > ftp://mirror.netseoul.com/pub/whitebox/Null/en/os/i386/repodata/repomd > .xml: [Errno 4] IOError: [Errno ftp error] 550 > Failed to change directory. Trying other mirror. > ftp://whitebox.wicks.co.nz/pub/linux/dist/whitebox/Null/en/os/i386/rep > odata/ repomd.xml: [Errno 4] IOError: [Errno ftp error] 550 Failed to > change directory. Trying other mirror. > > In the /etc/vservers/.distributions/wbel4/yum/yum.conf I have: > > distroverpkg=whitebox-release > > And the yum repo-files have been copied/edited and put in > > /etc/vservers/.distributions/wbel4/yum.repos.d > > The entry for the base installation: > > [base] > name=WhiteBox Linux 4 - $basearch - Base > enabled=1 > #gpgcheck=1 > name=White Box Enterprise Linux $releasever - $basearch - Base > baseurl=ftp://ftp.gtlib.cc.gatech.edu/pub/whitebox/$releasever/en/os/ > $basearch/ > > ftp://ftp.esat.net/mirrors/whiteboxlinux.org/$releasever/en/os/$basear > ch/ > > gpgcheck has been commented out, because I kept getting an > error-messages when it was enabled - even though I already had > imported the gpg-key into RPM > > Any input to what I could do to get this $releasever variable set > correctly in the yum config ? I'd naively try something like releasever=4711 basearch=i786 > Next, I have an issue with the setup in general... I mount > /vservers/dns-int as a lvm-partition .. But vserver-build seem to > have difficulties handling my setup this way... Trying to buidl e new > vserver, I get: > > # ./vserver-build --force -m yum -n dns-int -- -d wbel4 mv: > cannot move `/etc/vservers/.defaults/vdirbase/dns-int' to > `/etc/vservers/.defaults/vdirbase/dns-int.~1121800325~': Device or > resource busy > > Any idea why ? did you try 0.30.208 yet? (not sure this has been fixed) best, Herbert > Regards, > /Brian > ___ > Vserver mailing list > Vserver@list.linux-vserver.org > http://list.linux-vserver.org/mailman/listinfo/vserver ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
RE: [Vserver] How to build first vserver ?
Hi, I got yum up and running (using existing yum repositories - having my own setup is on the to-do list, once I find the needed "dummy ho-to" guide ;-)) > > > | # vserver ... build -m yum ... -- -d wbel4 > > > > > > out-of-the-box (although it is strongly recommended to patch yum). > > > > Okay - I'll try to see if I can get something up and running ... > > Otherwise I'll be back for more info ;-) Now, when trying to do a vserver-buidl, I get: #./vserver-build --force -m yum -n dns-int1 -- -d wbel4 Renamed '/etc/vservers/dns-int1' to '/etc/vservers/dns-int1.~1121798195~' ftp://ftp.riken.jp/Linux/whitebox/Null/en/os/i386/repodata/repomd.xml: [Errno 4] IOError: [Errno ftp error] 550 Null: No such file or directory Trying other mirror. ftp://mirror.netseoul.com/pub/whitebox/Null/en/os/i386/repodata/repomd.xml: [Errno 4] IOError: [Errno ftp error] 550 Failed to change directory. Trying other mirror. ftp://whitebox.wicks.co.nz/pub/linux/dist/whitebox/Null/en/os/i386/repodata/ repomd.xml: [Errno 4] IOError: [Errno ftp error] 550 Failed to change directory. Trying other mirror. In the /etc/vservers/.distributions/wbel4/yum/yum.conf I have: distroverpkg=whitebox-release And the yum repo-files have been copied/edited and put in /etc/vservers/.distributions/wbel4/yum.repos.d The entry for the base installation: [base] name=WhiteBox Linux 4 - $basearch - Base enabled=1 #gpgcheck=1 name=White Box Enterprise Linux $releasever - $basearch - Base baseurl=ftp://ftp.gtlib.cc.gatech.edu/pub/whitebox/$releasever/en/os/$basear ch/ ftp://ftp.esat.net/mirrors/whiteboxlinux.org/$releasever/en/os/$basearch/ gpgcheck has been commented out, because I kept getting an error-messages when it was enabled - even though I already had imported the gpg-key into RPM Any input to what I could do to get this $releasever variable set correctly in the yum config ? Next, I have an issue with the setup in general... I mount /vservers/dns-int as a lvm-partition .. But vserver-build seem to have difficulties handling my setup this way... Trying to buidl e new vserver, I get: # ./vserver-build --force -m yum -n dns-int -- -d wbel4 mv: cannot move `/etc/vservers/.defaults/vdirbase/dns-int' to `/etc/vservers/.defaults/vdirbase/dns-int.~1121800325~': Device or resource busy Any idea why ? Regards, /Brian ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
RE: [Vserver] How to build first vserver ?
> > When WhiteBox Enterprise Linux is like RHEL, you should now > > be able to create new vservers with > > > > | # vserver ... build -m yum ... -- -d wbel4 > > > > out-of-the-box (although it is strongly recommended to patch yum). > > Okay - I'll try to see if I can get something up and running ... Otherwise > I'll be back for more info ;-) I may be wrong, but I think that WBEL uses Yum as the backend to up2date. Up2date by default is hardwired to RH servers, so they changed it to work the same but use yum instead. I might be mixing this up with one of the other RHEL clones, so forgive me if I'm off on this. ... Ah, just confirmed: http://www.whiteboxlinux.org/faq.html WBEL does use yum, which means I'm not crazy. -- Matthew Nuzum <[EMAIL PROTECTED]> www.followers.net - Makers of "Elite Content Management System" View samples of Elite CMS in action by visiting http://www.followers.net/portfolio/ ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
RE: [Vserver] How to build first vserver ?
Hi, > > My "base" vserver is up and running (with the vserver > > kernel) - the problem is creating a virtual server... > > I'm running WhiteBox Enterprise Linux 4 (a RHEL clone), > > but have difficulties figuring out how to create the > > distribution stuff - and where does it pick the RPM > > packages from ?? > > > > Any hints, links, instructions etc are appreciated ... > > I recommend to: > > 1. choose the best-fitting distribution from >/usr/lib/util-vserver/distributions; in your case, this is >probably fc4. > > 2. copy the files from there into a suitable directory under >/etc/vservers/.distributions/ : > >| # cp -a /usr/lib/util-vserver/distributions/fc4 \ > /etc/vservers/.distributions/wbel4 > >This directory ('wbel4') will be used later at the '-d' option >of the 'vserver ... build' command > > 3. adjust the initpre/initpost symlinks > > 4. depending on your installation method, you need to: > >- create a sources.list for apt in the apt/ subdirectory, or >- adjust the yum repositories in the yum.repos.d/ subdir, or >- add/change files in the rpmlist.d/ subdir Okay, I guess I need to set up an apt or yum repository myself, since I'm not aware of any public ones (WBEL uses the up2date command). - Next step is to locate apt-get or yum, that will run on WBEL4.. > When WhiteBox Enterprise Linux is like RHEL, you should now > be able to create new vservers with > > | # vserver ... build -m yum ... -- -d wbel4 > > out-of-the-box (although it is strongly recommended to patch yum). Okay - I'll try to see if I can get something up and running ... Otherwise I'll be back for more info ;-) Regards, /Brian ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] How to build first vserver ?
[EMAIL PROTECTED] (Brian Ipsen) writes: > My "base" vserver is up and running (with the vserver kernel) - the problem > is creating a virtual server... I'm running WhiteBox Enterprise Linux 4 (a > RHEL clone), but have difficulties figuring out how to create the > distribution stuff - and where does it pick the RPM packages from ?? > > Any hints, links, instructions etc are appreciated ... I recommend to: 1. choose the best-fitting distribution from /usr/lib/util-vserver/distributions; in your case, this is probably fc4. 2. copy the files from there into a suitable directory under /etc/vservers/.distributions/ : | # cp -a /usr/lib/util-vserver/distributions/fc4 \ /etc/vservers/.distributions/wbel4 This directory ('wbel4') will be used later at the '-d' option of the 'vserver ... build' command 3. adjust the initpre/initpost symlinks 4. depending on your installation method, you need to: - create a sources.list for apt in the apt/ subdirectory, or - adjust the yum repositories in the yum.repos.d/ subdir, or - add/change files in the rpmlist.d/ subdir When WhiteBox Enterprise Linux is like RHEL, you should now be able to create new vservers with | # vserver ... build -m yum ... -- -d wbel4 out-of-the-box (although it is strongly recommended to patch yum). Enrico pgpuT9axiHWXz.pgp Description: PGP signature ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] How to build first vserver ?
Hi, I've been surfing a bit around in search of a guide on how to set up/build the first vserver - but haven't been able to locate one... My "base" vserver is up and running (with the vserver kernel) - the problem is creating a virtual server... I'm running WhiteBox Enterprise Linux 4 (a RHEL clone), but have difficulties figuring out how to create the distribution stuff - and where does it pick the RPM packages from ?? Any hints, links, instructions etc are appreciated ... /Brian ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver