OpenVZ Forum


Home » General » Support » Experimental OpenVZ on Debian Wheezy (kernel 3.2)
Experimental OpenVZ on Debian Wheezy (kernel 3.2) [message #49748] Tue, 11 June 2013 14:13 Go to next message
dash is currently offline  dash
Messages: 2
Registered: June 2013
Junior Member
There is experimental support for non OpenVZ kernels since vzctl 4.0.

I have converted vzctl-core (4.3.1-1), vzctl (4.3.1-1) and vzquota (3.1-1) with alien from rpm to deb.

I have added
cgroup_enable=memory swapaccount=1
to the kernel's command line.

Even after tinkering with some other settings I still can't get further as:

# vzctl start 101
Directory /proc/vz not found, assuming non-OpenVZ kernel
Starting container...
Mounting root: /vz/root/101 /vz/private/101
Container is mounted
Failed to set limits for TCPbuffer (Cgroup, requested group parameter does not exist)
Failed to set limits for Kernel Memory (Cgroup, requested group parameter does not exist)
WARNING: Running container unprivileged. USER_NS not supported, or runtime disabled
Setting iptables mask 0x000017bf
Setting features mask 0000000000000001/0000000000000001
Running container script: /etc/vz/dists/scripts/debian-add_ip.sh
Running container script: /etc/vz/dists/scripts/prestart.sh
Container start failed (try to check kernel messages, e.g. "dmesg | tail")
Running: /usr/sbin/vzquota stat 101 -f 
Container is unmounted



My assumption is that one of the newer kernels would solve the-container-is-not-starting problem.

The container config is based on the shipped
/etc/sysconfig/vz-scripts/ve-basic.conf-sample
.


I would like to find out which one of the cgroup's parameter is missing. So, if I can remove the corresponding limit from the config then the container should theoretically start.

If I set the following parameters

TCPSNDBUF="0:0"
TCPRCVBUF="0:0"


then the message regarding the TCPbuffer doesn't come up but I'm really unsure what the values means here or even they do make any sense.


Please help me, and please focus on the question and not on the other ways to use OpenVZ on Debian 3.2.



Re: Experimental OpenVZ on Debian Wheezy (kernel 3.2) [message #49756 is a reply to message #49748] Wed, 12 June 2013 19:51 Go to previous messageGo to next message
dash is currently offline  dash
Messages: 2
Registered: June 2013
Junior Member
I have succeeded to create a really dummy config:

# UBC parameters (in form of barrier:limit)
KMEMSIZE="0:0"
LOCKEDPAGES="unlimited"
PRIVVMPAGES="unlimited"
SHMPAGES="unlimited"
NUMPROC="unlimited"

PHYSPAGES="0:unlimited"

VMGUARPAGES="unlimited"
OOMGUARPAGES="unlimited"

NUMTCPSOCK="unlimited"

NUMFLOCK="unlimited"
NUMPTY="16:16"
NUMSIGINFO="256:256"

TCPSNDBUF="0:0"
TCPRCVBUF="0:0"

OTHERSOCKBUF="0:0"

DGRAMRCVBUF="0:0"

NUMOTHERSOCK="unlimited"

DCACHESIZE="unlimited"
NUMFILE="unlimited"
#AVNUMPROC="180:180"
NUMIPTENT="128:128"

# Disk quota parameters (in form of softlimit:hardlimit)
#DISKSPACE="2G:2.2G"
#DISKINODES="200000:220000"
#QUOTATIME="0"
DISK_QUOTA="no"

# CPU fair scheduler parameter
CPUUNITS="1000"
VE_ROOT="/vz/root/$VEID"
VE_PRIVATE="/vz/private/$VEID"
OSTEMPLATE="debian-7.0-amd64-minimal"
ORIGIN_SAMPLE="basic




After that:

# vzctl start 101
Directory /proc/vz not found, assuming non-OpenVZ kernel
Starting container...
Mounting root: /vz/root/101 /vz/private/101
Container is mounted
Could not properly cleanup container: No such file or directory
WARNING: Running container unprivileged. USER_NS not supported, or runtime disabled
Setting iptables mask 0x000017bf
Setting features mask 0000000000000001/0000000000000001
Running container script: /etc/vz/dists/scripts/debian-add_ip.sh
Running container script: /etc/vz/dists/scripts/prestart.sh
Container start failed (try to check kernel messages, e.g. "dmesg | tail")
Running: /usr/sbin/vzquota stat 101 -f
Container is unmounted


It seems that even if the above config is fully silly there are other problems which can be seen from the output of

strace vzctl start 101


# cat vzctl.strace.txt | grep "(No such file or directory)"
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/libexec/vzctl/modules", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
access("/proc/vz", F_OK)                = -1 ENOENT (No such file or directory)
stat("/proc/10246/ns/pid", 0x7fffb264e650) = -1 ENOENT (No such file or directory)
stat("/proc/10246/ns/user", 0x7fffb264e650) = -1 ENOENT (No such file or directory)
access("/vz/dump/Dump.101", F_OK)       = -1 ENOENT (No such file or directory)
access("/vz/private/101/root.hdd/DiskDescriptor.xml", F_OK) = -1 ENOENT (No such file or directory)
access("/etc/vz/dists/debian-7.0-amd64-minimal.conf", F_OK) = -1 ENOENT (No such file or directory)
access("/etc/vz/dists/debian-7.0-amd64.conf", F_OK) = -1 ENOENT (No such file or directory)
access("/etc/vz/dists/debian-7.0.conf", F_OK) = -1 ENOENT (No such file or directory)
access("/etc/vz/conf/vps.premount", F_OK) = -1 ENOENT (No such file or directory)
access("/etc/vz/conf/101.premount", F_OK) = -1 ENOENT (No such file or directory)
access("/vz/private/101/root.hdd/DiskDescriptor.xml", F_OK) = -1 ENOENT (No such file or directory)
access("/etc/vz/conf/vps.mount", F_OK)  = -1 ENOENT (No such file or directory)
access("/etc/vz/conf/101.mount", F_OK)  = -1 ENOENT (No such file or directory)
access("/vz/private/101/root.hdd/DiskDescriptor.xml", F_OK) = -1 ENOENT (No such file or directory)
access("/etc/vz/conf/101.umount", F_OK) = -1 ENOENT (No such file or directory)
access("/etc/vz/conf/vps.umount", F_OK) = -1 ENOENT (No such file or directory)
access("/vz/private/101/root.hdd/DiskDescriptor.xml", F_OK) = -1 ENOENT (No such file or directory)
access("/etc/vz/conf/101.postumount", F_OK) = -1 ENOENT (No such file or directory)
access("/etc/vz/conf/vps.postumount", F_OK) = -1 ENOENT (No such file or directory
Re: Experimental OpenVZ on Debian Wheezy (kernel 3.2) [message #49848 is a reply to message #49756] Mon, 24 June 2013 21:58 Go to previous message
HoverHell
Messages: 1
Registered: June 2013
Junior Member
Note: it appears to work with with kernel 3.10 (from experimental). I would guess that Debian's 3.2 kernel is somehow insufficient.

Edit: ... kernel 3.9 (from sid) works too.

[Updated on: Tue, 25 June 2013 11:24]

Report message to a moderator

Previous Topic: centOS + Cpanel + Openvz
Next Topic: Ubuntu 12.04 PPTP to Windows Server Command Line Only
Goto Forum:
  


Current Time: Tue May 21 17:27:03 GMT 2024

Total time taken to generate the page: 0.01523 seconds