Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 498290 - sys-cluster/vzctl USE=vz should configure with --with-vz-kernel
Summary: sys-cluster/vzctl USE=vz should configure with --with-vz-kernel
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-16 21:32 UTC by Mitch Harder
Modified: 2017-01-02 19:08 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mitch Harder 2014-01-16 21:32:31 UTC
The sys-cluster/vzctl ebuild (for versions 4.4, 4.5.1, 4.6.1) should consider the 'vz-kernel' USE flag in the src_configure() section.

OpenVZ is in the process of providing limited support for non-openvz kernels.  Since the most recent openvz kernel is 2.6.32, it is becoming more interesting to sometimes use openvz with a more recent upstream kernel.

This configuration flag notifies vzctl not to look for certain kernel hooks.  For the most part, vzctl still works OK on upstream kernels even if it isn't built this way, but it may help in some corner cases to be explicit about using an upstream kernel.

The configure script help section describes this configuration option as follows:

  --with-vz              Enable support for OpenVZ kernel

I have modified my local ebuild as follows:

--- /usr/portage/sys-cluster/vzctl/vzctl-4.6.1.ebuild	2013-12-03 10:06:11.000000000 -0600
+++ /usr/local/portage/sys-cluster/vzctl/vzctl-4.6.1-r1.ebuild	2013-12-31 07:10:15.867038248 -0600
@@ -51,7 +51,7 @@ src_configure() {
 		--enable-udev \
 		--enable-bashcomp \
 		--enable-logrotate \
-		--with-vz \
+		$(use_with vz-kernel vz) \
 		$(use_with ploop) \
 		--with-cgroup
 }
Comment 1 Mitch Harder 2017-01-02 19:08:15 UTC
I'm going to close out my bug as OBSOLETE.

As far as I know, vzctl will work with an upstream kernel even if it's configured with --with-vz.

Three years ago, it looked like upstream was going to differentiate their support for upstream kernels, but the concept never seemed to gather any traction.