Changes

Jump to: navigation, search

Vzctl for upstream kernel

662 bytes added, 12:54, 15 August 2012
enlarge, split into more sections
It is currently possible to create and start a container with the same steps as one would use for a normal OpenVZ container. Other functionality may be present with limited functionality, while some are not present at all.
* == Limitations ==The following vzctl commands are not working at all:* <code>quotaon</code>/<code>quotaoff</code>/<code>quotainit</code> (vzquota-specific)* <code>convert</code>, convert<code>compact</code>, <code>snapshot*</code> (ploop-specific)* <code>console</code> (need a virtual /dev/console, /dev/ttyN device)* <code>enter</code>, <code>exec </code> and <code>runscript are not expected to work. Checkpoint </code> (need pidns entering support)* <code>chkpnt</code>, <code>restore is also not possible</code> (currently need OpenVZ-kernel-specific checkpointing, but upstream support for that is progressing very fast (See [http://criucrui.org for details/ CRIU] will be supported later).
The following commands have severe limitations:* Networking <code>stop</code>. A container can be stopped from inside (say if one is available through connected to CT over ssh) in case the switches --netdev_add, --netif_add, and their respective deletion counterpartsunderlying kernel supports rebooting a PID namespace (> 3. IP mode networking (--ipadd / --ipdel4) . Using vzctl, the "stop" command is currently not supported, unless accompanied by the --fast switch, which will simply forceably kill all processes in the container.
* Stopping a container once one Software that depend on information supplied by the proc filesystem may not work correctly, since there is logged in is possible, in case the underlying kernel supports rebooting not a PID namespace (> 3.4)full solution for full /proc virtualization. Using vzctlFor instance, the "stop" command /proc/stat is not supportedyet virtualized, unless accompanied by the --fast switch, which and top will simply forceably kill all processes in the containershow distorted values.
* Software that depend on information supplied by the proc filesystem may not work correctly, since there is not a full solution for full /proc virtualization. For instance, /proc/stat is not yet virtualized, and top will show distorted values. * Setting resources like --physpages and --cpuunits work, but there their effect is dependent on what the current kernel supports, through the cgroups subsystem. When a particular cgroup file is present, it will be used. Currently, vzctl will search for the following files:
** cpu.cfs_quota_us
** cpu.shares
** memory.kmem.limit_in_bytes
** memory.kmem.tcp.limit_in_bytes
 
=== Other binaries ===
 
Pretty much everything else other than vzctl is not working. That includes:
* vzlist
* vzcalc
* vzcfgvalidate
* vzcpucheck
* vzmemcheck
* vzmigrate
* vzeventd
* vzpid
* vzsplit
* vzubc
== Building and using ==
Upstream support is not enabled by default. To build it into vzctl, one needs to specify the <code>--with-cgroup</code> switch to <code>configure</code>:
$ ./configure --with-cgroup--without-ploop
plus, of course, any other relevant options. Minimum versions for depencies is:
For supported features, usage is expected to be the same as standard vzctl tool.
 
== Networking ==
Networking is available through the switches --netdev_add, --netif_add, and their respective deletion counterparts.
 
IP mode networking (--ipadd / --ipdel) is currently not supported.

Navigation menu