[Users] Debian 8 packages for OpenVZ as a HN?

Kir Kolyshkin kir at openvz.org
Tue May 12 11:46:05 PDT 2015


On 05/12/2015 02:00 AM, Jonathan Ballet wrote:
>
>
> Hi,
>
> On 05/10/2015 05:05 PM, Pavel Odintsov wrote:
>> Well, well. But why my 2.6.32 kernel become broken after change
>> Wheezy's init system to systemd? Standard 3.2 kernel from Debian works
>> perfectly with systemd.
>>
>> If this problems is not related with kdbus but it's still it broke
>> ability to run OpenVZ kernel on modern distros.
>>
>> If somebody will fix this issue I will be very pleased.
>
> I tried booting one of the latest OpenVZ release on Debian Jessie with 
> systemd, and I got the error:
>
>   Failed to mount /sys/fs/cgroup: No such file or directory.
>
> This is related to this bug :
>
>   https://bugzilla.redhat.com/show_bug.cgi?id=628004
>
> Basically (AFAIU), the OpenVZ kernel lacks support for mounting 
> cgroups at the required place, which make systemd choke when starting 
> up in the early phase.
> As mentioned in the bug report above, applying the patch from [1] 
> might be enough to "fix" the problem, but I haven't tested this one 
> and I'm not sure about the consequences.

I'm afraid you are wrong here, at least It's not the case for me --
with 2.6.32-042stab108.1 kernel and CentOS 7 OS template.

See:

[root at tpad-ovz1 ~]# vzctl enter 101
entered into CT 101
[root at efgh /]# ls -l /sys/fs
total 0
drwxr-xr-x 10 root root 200 Apr 28 01:04 cgroup
[root at efgh /]# ls -l /sys/fs/cgroup/
total 0
drwxr-xr-x 2 root root  0 Apr 28 01:04 blkio
drwxr-xr-x 2 root root 40 Apr 28 01:04 cpu,cpuacct
drwxr-xr-x 2 root root 40 Apr 28 01:04 cpuset
drwxr-xr-x 2 root root 40 Apr 28 01:04 freezer
drwxr-xr-x 2 root root  0 Apr 28 01:04 memory
drwxr-xr-x 2 root root 40 Apr 28 01:04 net_cls,net_prio
drwxr-xr-x 2 root root 40 Apr 28 01:04 perf_event
drwxr-xr-x 4 root root  0 Apr 28 01:04 systemd

[root at efgh /]# mount | grep cgroup
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup 
(rw,nosuid,nodev,noexec,relatime,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/blkio type cgroup 
(rw,nosuid,nodev,noexec,relatime,blkio,name=beancounter)
cgroup on /sys/fs/cgroup/memory type cgroup 
(rw,nosuid,nodev,noexec,relatime,memory)

[root at efgh /]# logout
exited from CT 101

[root at tpad-ovz1 ~]# vzlist -o ostemplate 101
OSTEMPLATE
centos-7-x86_64-minimal

[root at tpad-ovz1 ~]# uname -a
Linux tpad-ovz1 2.6.32-042stab108.1 #1 SMP Thu Apr 23 19:17:11 MSK 2015 
x86_64 x86_64 x86_64 GNU/Linux


>
> In the meanwhile, I removed systemd from my Jessie installations and 
> switched back to sysvinit-core instead. It works, although that would 
> be cool to be able to use systemd.
>
>  Jonathan
>
> [1] 
> http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=676db4af043014e852f67ba0349dae0071bd11f3
>
>> On Sun, May 10, 2015 at 2:40 PM, Marco d'Itri 
>> <md-k2GhghHVRtY at public.gmane.org> wrote:
>>> On May 10, Pavel Odintsov 
>>> <pavel.odintsov-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org> wrote:
>>>
>>>> Unfortunately, we can't run OpenVZ 2/6/32 kernel on top of systemd
>>>> aware system because it lacks kdbus subsystem. But if you changed init
>>> All upstream kernels lack kdbus, and systemd does not depend on it.
>>>
>>> -- 
>>> ciao,
>>> Marco
>
>
> _______________________________________________
> Users mailing list
> Users at openvz.org
> https://lists.openvz.org/mailman/listinfo/users



More information about the Users mailing list