Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19230 - Created an ebuild for the vserver utilities
Summary: Created an ebuild for the vserver utilities
Status: RESOLVED DUPLICATE of bug 45053
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Gentoo Cluster Team
URL: http://www.solucorp.qc.ca/miscprj/s_c...
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2003-04-13 05:36 UTC by klavs klavsen
Modified: 2010-09-10 18:59 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
vserver utilities (vserver-0.22.ebuild,568 bytes, text/plain)
2003-04-13 05:38 UTC, klavs klavsen
Details
vserver-0.22.ebuild - with patch (vserver-0.22.ebuild,691 bytes, text/plain)
2003-04-13 16:49 UTC, klavs klavsen
Details
vserver-0.23.ebuild - using patch from my site. (vserver-0.23.ebuild,580 bytes, text/plain)
2003-08-05 23:18 UTC, klavs klavsen
Details
Changelog (ChangeLog,501 bytes, text/plain)
2003-08-05 23:37 UTC, klavs klavsen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description klavs klavsen 2003-04-13 05:36:15 UTC
It works fine - and it should work fine for the next versions with a filename
change only :)

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 klavs klavsen 2003-04-13 05:38:50 UTC
Created attachment 10580 [details]
vserver utilities

I think it should go in app-emulation/vserver :)
Comment 2 klavs klavsen 2003-04-13 16:49:23 UTC
Created attachment 10593 [details]
vserver-0.22.ebuild - with patch 

I added a patch to the ebuild - that makes it compatible with Gentoo (and
other) init systems that do not use /etc/rc.d/rc {0-6}.

you just set S_START="/sbin/rc default" and S_STOP="/sbin/rc shutdown" in your
/etc/vservers/<vserver-name>.conf

p.s. that dir isn't created, but I could put that in the ebuild - and a sample
conf and .sh ? otherwise newvserver script will create one - but it can't
handle generating gentoo servers - and needs RPM utility to make redhat and
other vservers.
Comment 3 Cedric Veilleux 2003-07-08 20:17:47 UTC
I tested this ebuild and it works flawlessly.  
  
Please note that the "fakeinit" flag should not be used in your gentoo vservers configuration  
file, otherwise the STARTCMD / STOPCMD patch will be ineffective and the vserver will not  
boot properly.  
 
Also, to be of any interest, this package needs a patched kernel. The wolk-sources kernel 
contains the required patch, but a ctx-sources or vserver-sources ebuild could be useful. 
Comment 4 Thomas Eckert 2003-07-16 15:22:16 UTC
I tested too -- also no problems.

For the patched kernel-sources see bug #24619
Comment 5 klavs klavsen 2003-07-29 01:09:50 UTC
I just updated the patch, so it applies cleanly with vserver-0.23. All that is needed is to rename the vserver ebuild to 0.23 and it will work like a charm ;)

How is it looking to get this in the tree? Anything you want from me? I'll gladly throw up a changelog if you are considering throwing it in :)
Comment 6 Baptiste SIMON 2003-08-05 11:59:57 UTC
great... I worked perfectly here !! :c)
It only remains to be put into the official portage tree.

But I can't see any license nor any (c) copyright in this package ? <ironic> because it is in the public domain, I can get it, put my company's copyright on it, and publish it under an open source but totally proprietary license... great !! Thanks for your work klavs ! </ironic>

Be careful to put _your_ copyright and the licence you've chosen (maybe an OSI certified if you want Gentoo Linux integrate it) into your package's file. It can seem useless... but as my example shows, it is not !!
Comment 7 klavs klavsen 2003-08-05 23:18:39 UTC
Created attachment 15590 [details]
vserver-0.23.ebuild - using patch from my site.

Just upgraded it to 0.23, added the GPLv2 statement :) and wrote a Changelog.
Comment 8 klavs klavsen 2003-08-05 23:37:36 UTC
Created attachment 15591 [details]
Changelog
Comment 9 klavs klavsen 2003-08-06 04:34:03 UTC
the vserver-0.23 I thought was released, was actually "just" a Debian version of 0.22. the vserver-0.22 ebuild still works fine - so use that :)

OOOPS - I messed up, sorry.
Comment 10 Thomas Eckert 2003-08-06 12:55:31 UTC
0.23 is available on ftp://ftp.solucorp.qc.ca/pub/vserver/
It may not be _offical_ as the website only lists 0.22, but is works for me.
Comment 11 Baptiste SIMON 2003-08-17 07:32:42 UTC
vserver-0.22 don't work w/ the ctx17a kernel patch :c/

I tried two things then...
- renaming the patch and the ebuild from -0.22 to -0.23 -> it worked but w/ hunks on patch
- removing the patch lines from the ebuild. Works well but I still don't have try everything.
Comment 12 Thomas Eckert 2003-12-06 10:21:38 UTC
a few updates are available: latest release is 0.28 (Klavs patch needs to be ported -- I just hardcoded his original version).

this bug is related to the new #33906 -- maybe we can both have in portage?
Comment 13 Thomas Eckert 2004-03-25 12:00:02 UTC
i think we can close this one as util-vserver (the successor if vserver) is
in-portage now (see bug #45053 and bug #45729).
Comment 14 klavs klavsen 2004-03-25 13:00:43 UTC
Yup. I've been running kernel-2.6 and theres still no vserver patch for that, so I haven't been using it - thus no upgrade :)

*** This bug has been marked as a duplicate of 45053 ***
Comment 15 Thomas Eckert 2004-03-26 00:51:20 UTC
@klavs: there is a vserver-patch for 2.6 (well, it's not marked stable, but what
is this days? ;)
have a look at: http://www.linux-vserver.org/ (a good meta-page for vservser-
stuff), or directly at http://www.13thfloor.at/vserver/e_patches/vs-26x/

if it works for you it would be nice to have a 2.6-ebuild
(sys-kernel/vserver-sources are in-portage since yesterday :)
Comment 16 klavs klavsen 2004-04-19 00:04:45 UTC
I patched my kernel gentoo-dev-sources-2.6.4-r1 with the vserver patches, and it went fine (only had to resolve a few myself :)

It seems to run fine enough - the kernel is stable, and vserver <vservername> enter works too - and sets up an interface for the vserver.

I'm not using vserver anymore - went too long with 2.4 with USAGI patch, and 2.6 without vserver support :)

When I get the time, I could start looking at vserver again - IMHO we need either a vserver-baselayout - or a USE option for baselayout, to fix the baselayout for a vserver.

It needs to be easy to run Gentoo-vservers (and other distros too, but thats not our problem is it :)