Re: [vserver] ipfire 3.14.57

From: Corey Wright <undefined_at_pobox.com>
Date: Mon 11 Apr 2016 - 09:24:39 BST
Message-Id: <20160411032439.265169bffffe82174acb63b1@pobox.com>

On Mon, 11 Apr 2016 14:41:27 +0700
john francis lee <jfmxl@posteo.de> wrote:

> On 04/11/2016 02:06 PM, Corey Wright wrote:
> > On Mon, 11 Apr 2016 12:26:19 +0700
> > john francis lee <jfmxl@posteo.de> wrote:
> >
> >> Thanks Bertl!
> >>
> >> Well, so far no joy.
> >>
> >> I downloaded the source for both kernels 3.14.52 and 3.14.57,
> >> patched 'em both with linux-3.14.52-vs2.3.6.15,
> >> configured 'em both using the config-3.14.57-ipfire and then
> >> 'make oldconfig'.
> >>
> >> The output of the 3 operations on the .57 source ...
> >>
> >> http://jfmxl.sdf.org/linux-3.14.57-vs2.3.6.15/linux-3.14.57-vs2.3.6.15-patch.out.html
> >> http://jfmxl.sdf.org/linux-3.14.57-vs2.3.6.15/linux-3.14.57-vs2.3.6.15-make_oldconfig_choices.html
> >> http://jfmxl.sdf.org/linux-3.14.57-vs2.3.6.15/linux-3.14.57-vs2.3.6.15-make-err.html
> >>
> >> They both fail to make, with the same error.
> >>
> >> include/linux/fs.h:741:15: error: incompatible types when assigning to type `ktag_t' from type `int'
> >> inode->i_tag = make_ktag(&init_user_ns, tag);
> >> ^
> >> /home/jfl/src/linux/linux-3.14.57-vs2.3.6.15/./Kbuild:81: recipe for target 'arch/x86/kernel/asm-offsets.s' failed
> >> make[1]: *** [arch/x86/kernel/asm-offsets.s] Error 1
> >> Makefile:888: recipe for target 'prepare0' failed
> >> make: *** [prepare0] Error 2
> > the more obvious error was the one you didn't include in your email, but
> > appears in linux-3.14.57-vs2.3.6.15-make-err.html:
> >
> > include/linux/uidgid.h:133:8: error: unknown type name `krag_t'
> > extern krag_t make_ktag(struct user_namespace *from, gid_t gid);
> >
> > that tells me that you have user namespaces enabled (ie "CONFIG_USER_NS=y"),
> > which linux-vserver doesn't official support (at least not in < 3.18). please
> > confirm. (your .config is more meaningful to share than
> > linux-3.14.57-vs2.3.6.15-make_oldconfig_choices.html.)
> >
> > if that is the case, then you have two choices:
> > 1. disable user namespaces (ie "# CONFIG_USER_NS is not set")
> > 2. read http://archives.linux-vserver.org/201410/0051.html
> >
> > corey
> > --
> > undefined@pobox.com
> Sorry. I have put the config file up now
>
> http://jfmxl.sdf.org/linux-3.14.57-vs2.3.6.15/linux-3.14.57-config.html
>
> I'm afraid that if user namespaces are defined - and they are - and I
> disable them, then functions of ipfire that rely upon them will fail.
> Now or in the future. I've read the page you refer to once ... I'll have
> to read it several more times before I understand what it means. Thanks
> very much for your help.

basically that page, which is an archive of an email i sent some time ago,
says:

1. there's a patch [1] that allows linux-vserver to work with user namespaces
   enabled (where "work" means linux-vserver and lxc both appear to function
   correctly based on my limited test cases; the lxc failure mentioned in the
   email was later addressed by a herbert-provided pid namespace fix that
   should be integrated into the latest linux-vserver patch for 3.14).

2. the patch is unsupported by any and every party: upstream, linux-vserver,
   and myself. if it works: great. if not: sorry.

[1] http://archives.linux-vserver.org/201410/att-0051/patch-3.14.17-vs2.3.6.13-userns.diff

corey

--
undefined@pobox.com
> >> I have an arch/x86/kernel/asm-offsets.c but no
> >> arch/x86/kernel/asm-offsets.s
> >>
> >> I'm trying to compile these kernels on my debian jessie machine. I don't
> >> know if that's the problem or not.
> >>
> >> Thanks again for all your help.
> >>
> >> On 04/10/2016 12:15 PM, Herbert Poetzl wrote:
> >>> On Sun, Apr 10, 2016 at 09:16:54AM +0700, john francis lee wrote:
> >>>> Hello,
> >>> Hey John Francis!
> >>>
> >>>> It's been years since I ran vservers, but they worked 
> >>>> great for me. 
> >>> Glad to hear!
> >>>
> >>>> Now I'm using ipfire, a linux firewall/router, and 
> >>>> I'd like to try to run vserver on it. 
> >>> Sounds good to me.
> >>>
> >>>> It uses a 3.14.57 kernel, I see a patch-3.14.52-vs2.3.6.15.diff
> >>>> <http://vserver.13thfloor.at/Experimental/patch-3.14.52-vs2.3.6.15.diff>
> >>>> at the 13th floor. 
> >>>> What does the 2.3.6.15 signify? 
> >>> It is the version number of that patch, what does 3.14.52
> >>> signify?
> >>>
> >>>> Is there a great difference between the .52 and .57 
> >>>> do you suppose? 
> >>> Maybe, maybe not, you simply have to try to apply the
> >>> patch and if it fails with more than the Makefile where
> >>> the .52 -> .57 change stops the patch from applying,
> >>> then we need to adapt the patch.
> >>>
> >>>> I have a config-3.14.57-ipfire file. 
> >>>> I went to kernel.org and they don't seem to have the 
> >>>> old kernels anymore. 
> >>>> Anyone know where I can find them? 
> >>> https://www.kernel.org/pub/linux/kernel/v3.x/
> >>>
> >>>> Anyone else running vserver on ipfire?
> >>> Let us know how it goes ...
> >>>
> >>> Hope that helps,
> >>> Herbert
> >>
> >
> 
> 
Received on Mon Apr 11 09:23:17 2016
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Mon 11 Apr 2016 - 09:23:17 BST by hypermail 2.1.8