debian/0000775000000000000000000000000012245444427007200 5ustar debian/dirs0000664000000000000000000000001112207123723010043 0ustar usr/sbin debian/vzctl.postrm0000664000000000000000000000270112207123723011577 0ustar #! /bin/sh # postrm script for vzctl # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `purge' # * `upgrade' # * `failed-upgrade' # * `abort-install' # * `abort-install' # * `abort-upgrade' # * `disappear' overwrit>r> # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in purge) update-rc.d -f vz remove > /dev/null update-rc.d -f vzeventd remove > /dev/null # Upgrade path for old (lenny version) of vz cron script. rm -f /etc/cron.d/vz # Upgrade path for old (etch version) of vz cron scripts. rm -f \ /etc/cron.d/vpsnetclean \ /etc/cron.d/vpsreboot \ /etc/cron.d/vpsnetclean,disabled \ /etc/cron.d/vpsreboot,disabled # Upgrade path for old (lenny version) of vz cron scripts. rm -f \ /etc/cron.d/vz \ /etc/cron.d/vz,disabled \ /etc/vz/cron/vz ;; remove) ldconfig ;; upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/copyright0000664000000000000000000000207212207123723011123 0ustar This package was debianized by Ola Lundqvist on Tue, 25 Apr 2006 21:13:14 +0200. It was downloaded from: http://download.openvz.org/utils/vzctl/ http://www.openvz.org/ Copyright Holder: Copyright (C) 2000-2010, Parallels, Inc. All rights reserved. License: This program is free software; you may redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. See the GNU General Public License for more details. A copy of the GNU General Public License is available as /usr/share/common-licenses/GPL in the Debian GNU/Linux distribution or on the World Wide Web at http://www.gnu.org/copyleft/gpl.html. You can also obtain it by writing to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. debian/vzctl.preinst0000664000000000000000000000223112207123723011735 0ustar #! /bin/sh # preinst script for vzctl # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `install' # * `install' # * `upgrade' # * `abort-upgrade' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in install) ;; upgrade) # Upgrade path, vz cron file no longer needed as vzeventd exist # instead. # From lenny if [ -e /etc/cron.d/vz ] ; then mv /etc/cron.d/vz /etc/cron.d/vz,disabled fi # Upgrade path for (etch version) cron files. if [ -e /etc/cron.d/vpsnetclean ] ; then mv /etc/cron.d/vpsnetclean /etc/cron.d/vpsnetclean,disabled fi if [ -e /etc/cron.d/vpsreboot ] ; then mv /etc/cron.d/vpsreboot /etc/cron.d/vpsreboot,disabled fi ;; abort-upgrade) ;; *) echo "preinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/README.Debian0000664000000000000000000001545012207123723011235 0ustar vzctl for Debian ---------------- This package requires you to have a modified version of the Linux kernel. The kernel packages can be downloaded (rpm format) from http://wiki.openvz.org/Download/kernel/rhel6. Use alien to convert those packages from rpm to deb format and then use dpkg to install them. apt-get install fakeroot alien fakeroot alien --to-deb --scripts --keep-version dpkg -i You can also download precompiled kernel images from OpenVZ site: http://download.openvz.org/kernel/debian or by using the APT repository at: http://download.openvz.org/debian See http://wiki.openvz.org/Download_mirrors for a list of mirrors. It is highly recommended to use a Linux kernel that support vzevent. If not vzeventd will not be started. The limitation in such case is that reboot operation for a vz container will not work. Unfortunately there is no openvz Linux kernel in Debian wheezy. The openvz patched Linux kernel in Debian squeeze supports vzevent. The openvz patched Linux kernel in Debian lenny do not support vzevent. Changes compared to standard vzctl installation: ------------------------------------------------ * Default OS template is "debian" instead of "fedora-core-4". * Directory structure as described below. Configuration: -------------- If you want vzeventd to be more verbose, do echo 'OPTIONS=-v' > /etc/default/vzeventd and then /etc/init.d/vzeventd restart Architecture support: --------------------- vzctl and vzquota are supported on IA-32 (i386), x86-64 (amd64), IA-64 (ia64), sparc and powerpc architectures. Note that the live migration function is only supported on IA-32 and x86-64 architectures. File structure: --------------- The functionality that OpenVZ provides requires that a directory structure is created. On a Debian installation it is by default located in /var/lib/vz, which is different from the upstream /vz directory. You can change it back in the /etc/vz/vz.conf configuration file or change to any other location if you like. The directories can be (re)created with the following commands: mkdir -p /vz/lock mkdir -p /vz/dump mkdir -p /vz/template/cache You can also copy the structure from /var/lib/vz. OBSERVE! The vzsplit tool only supports the following directories: /vz, /var/lib/vz and /srv/vz. Create a configuration template: -------------------------------- The vzctl package includes two sample configuration files: light and basic. The basic template is used in the samples below. Normally you should create a new "larger" configuration template using the tool vzsplit. vzsplit -n 1 > /etc/vz/conf/ve-big.conf-sample For further information on how to use vzsplit, see the vzsplit man page. man vzsplit Create a virtual server: ------------------------ Below is one example on how to create a virtual server. You can find more information on the OpenVZ wiki pages http://wiki.openvz.org/Debian_template_creation. First create a filesystem. You can do that by unpacking an image or by using debootstrap. Below is an example by using debootstrap. You can change the VEID (100) to some other value if you like. Avoid zeros in the beginning of the VEID as vzctl treat this value as an integer. This means that 001 is translated to 1. Also avoid VEID below 100 as they are reserved for package management work. debootstrap --arch i386 wheezy /var/lib/vz/private/100 \ http://ftp.uk.debian.org/debian When debootstrap has finished successfully the virtual server needs to have a configuration: vzctl set 100 --applyconfig basic --save echo "OSTEMPLATE=debian" >> /etc/vz/conf/100.conf The newly created filesystem needs to be updated with some configuration changes. Give it a hostname. vzctl set 100 --hostname yourhostname --save echo yourhostname.yourdomain > /var/lib/vz/private/100/etc/mailname Disable getty in /etc/inittab as openvz do not have that. sed -i -e '/getty/d' /var/lib/vz/private/100/etc/inittab Link /etc/mtab to /proc/mtab to make mount work as expected. ln -sf /proc/mounts /var/lib/vz/private/100/etc/mtab If an IP address is needed for the virtual server it should be added as well: vzctl set 100 --ipadd x.x.x.x --save To download updates you may need to specify a DNS server for it as well: vzctl set 100 --nameserver x.x.x.x --save In that case you also need to enable network configuration. More details about network configuration is available in the "Network Configuration" chapter below. Now the virtual server can be started: vzctl start 100 Enter the virtual server to install your software: vzctl enter 100 apt-get update apt-get install ssh Hardware or kernel related packages can be removed as they are not usable on a virtual server: dpkg --purge module-init-tools Network configuration: ---------------------- If you want network access for the virtual server then you need to enable IP forwarding. You do that in the /etc/sysctl.conf file by using the following directives: # On Hardware Node we generally need # packet forwarding enabled and proxy arp disabled net.ipv4.ip_forward=1 net.ipv4.conf.default.forwarding=1 net.ipv4.conf.default.proxy_arp=0 # Enables source route verification net.ipv4.conf.all.rp_filter = 1 # Enables the magic-sysrq key kernel.sysrq = 1 # we do not want all our interfaces to send redirects net.ipv4.conf.default.send_redirects = 1 net.ipv4.conf.all.send_redirects = 0 In most situations this is sufficient. However there are situations when you might want to enable ARP handling manually. In such case follow the instructions below. It is possible to enable proxy_arp manually for the network devices that you want your virtual hosts to be accessible on. This can be used to avoid possible race conditions in case you use DHCP for the network interface. sysctl -w net.ipv4.conf.default.proxy_arp=1 or sysctl -w net.ipv4.conf.$DEV.proxy_arp=1 You can add this to a specific interface in the network configuration (/etc/network/interfaces) by the following lines: up sysctl -w net.ipv4.conf.%DEV%.proxy_arp=100 pre-down sysctl -w net.ipv4.conf.%DEV%.proxy_arp=0 Replace %DEV% with your device name (ie. eth0). Alternatively you set the following to the /etc/sysctl.conf file. net.ipv4.conf.default.proxy_arp = 1 IPv6: ----- IPv6 forwarding must be globally enabled (/sbin/sysctl -q -w net.ipv6.conf.all.forwarding=1) and hardware node public ethernet device must be statically IPv6-configured in order to get IPv6 support working. Enable and disable root login: ------------------------------ To disable login for root you enter the virtual server and run the following command: usermod -L root To enable it again you can run the following command from outside the virtual server. vzctl set 100 --userpasswd root:xxxx -- Ola Lundqvist , Tue, 10 Oct 2006 06:44:59 +0200 debian/patches/0000775000000000000000000000000012234251612010615 5ustar debian/patches/bashism-fix.patch0000664000000000000000000000212512207130563014051 0ustar Description: bashism fixes Various bashism fixes solved before vzctl 4.5. . Author: Ola Lundqvist Origin: other Reviewed-By: Ola Lundqvist Last-Update: 2013-08-27 --- --- vzctl-4.5.orig/etc/dists/scripts/etcnet-add_ip.sh +++ vzctl-4.5/etc/dists/scripts/etcnet-add_ip.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Copyright (C) 2006-2007 Dmitry V. Levin # # This program is free software; you can redistribute it and/or modify --- vzctl-4.5.orig/bin/vznetcfg.in +++ vzctl-4.5/bin/vznetcfg.in @@ -26,7 +26,7 @@ usage() init_veth() { - local dev="$1" + local dev; dev="$1" ip link set "$dev" up } --- vzctl-4.5.orig/bin/vzpid.in +++ vzctl-4.5/bin/vzpid.in @@ -31,7 +31,7 @@ header() getveid() { - local pid="$1" + local pid; pid="$1" [ -f "/proc/$pid/status" ] || return awk -v "pid=$pid" ' --- vzctl-4.5.orig/bin/vzmigrate.in +++ vzctl-4.5/bin/vzmigrate.in @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Copyright (C) 2000-2013, Parallels, Inc. All rights reserved. # # This program is free software; you can redistribute it and/or debian/patches/series0000664000000000000000000000014012234251535012031 0ustar destroy-securityfix-1.patch exec-home-fix.patch bashism-fix.patch default-template-debian.patch debian/patches/destroy-securityfix-1.patch0000664000000000000000000000163712207131202016040 0ustar Description: destroy-securityfix-1.patch Security fix to make sure the root directory is not removed. . Author: Ola Lundqvist Last-Update: 2013-08-27 --- In the vzctl 4.5 upgrade half the patch was removed. Maybe this patch should be removed. --- vzctl-4.5.orig/src/lib/destroy.c +++ vzctl-4.5/src/lib/destroy.c @@ -173,6 +173,15 @@ int destroydir(char *dir) logger(-1, 0, "Unable to get root for %s", dir); return VZ_FS_DEL_PRVT; } + else if ((strcmp(dir,root) == 0) && + (strlen(dir) == strlen(root))) { + /* Root is the same as the directory to remove. + * If this is the case we can not rename the directory. + * So skipping that. */ + logger(0, 0, "%s is a mounted filesystem. Needs to be unmounted before it can be completely removed.", dir); + del_dir(dir); + return 0; + } snprintf(tmp, sizeof(tmp), "%s/vztmp", root); free(root); if (stat_file(tmp) != 1) { debian/patches/default-template-debian.patch0000664000000000000000000000160712214575466016335 0ustar Description: The default template is debian instead of centos. The default template name in vz.conf is set to a debian template instead of centos. . vzctl (4.5-3) unstable; urgency=low . * Fixed lib directory to make sure it works on amd64. * Changed to the default template is debian-7.0-x86 instead of centos. Author: Ola Lundqvist Origin: other Forwarded: not-needed Reviewed-By: Ola Lundqvist Last-Update: 2013-09-13 --- vzctl-4.5.orig/etc/vz.conf.in +++ vzctl-4.5/etc/vz.conf.in @@ -37,7 +37,7 @@ TEMPLATE=@VZDIR@/template VE_ROOT=@VZDIR@/root/$VEID VE_PRIVATE=@VZDIR@/private/$VEID CONFIGFILE="basic" # Use vswap-256m on RHEL6 kernel -DEF_OSTEMPLATE="centos-6-x86" +DEF_OSTEMPLATE="debian-7.0-x86" NAMESERVER=inherit # Copy from host system's /etc/resolv.conf ## Filesystem layout for new CTs: either simfs (default) or ploop #VE_LAYOUT=ploop debian/patches/exec-home-fix.patch0000664000000000000000000000463412234251350014302 0ustar Description: Make sure HOME is set to /root when entering a container This patch make sure the HOME environment variable is set to /root instead of / when entering a container. . Author: Ola Lundqvist Origin: other Reviewed-By: Ola Lundqvist Last-Update: 2013-08-27 --- TODO: Bug-Debian: http://bugs.debian.org/ Forwarded: Index: vzctl-4.6/src/enter.c =================================================================== --- vzctl-4.6.orig/src/enter.c 2013-10-29 22:05:49.000000000 +0100 +++ vzctl-4.6/src/enter.c 2013-10-30 19:40:13.000000000 +0100 @@ -303,7 +303,7 @@ char *term; char *arg[] = {NULL, NULL}; char *env[] = {ENV_PATH, - "HISTFILE=/dev/null", +// "HISTFILE=/dev/null", "USER=root", "HOME=/root", "LOGNAME=root", NULL, /* for TERM */ NULL}; Index: vzctl-4.6/src/lib/exec.c =================================================================== --- vzctl-4.6.orig/src/lib/exec.c 2013-10-29 22:05:49.000000000 +0100 +++ vzctl-4.6/src/lib/exec.c 2013-10-30 19:40:13.000000000 +0100 @@ -37,7 +37,7 @@ #include "script.h" static volatile sig_atomic_t alarm_flag, child_exited; -static char *envp_bash[] = {"HOME=/", "TERM=linux", ENV_PATH, NULL}; +static char *envp_bash[] = {"HOME=/root", "TERM=linux", ENV_PATH, NULL}; int execvep(const char *path, char *const argv[], char *const envp[]) { Index: vzctl-4.6/src/lib/env.c =================================================================== --- vzctl-4.6.orig/src/lib/env.c 2013-10-29 22:05:49.000000000 +0100 +++ vzctl-4.6/src/lib/env.c 2013-10-30 19:40:13.000000000 +0100 @@ -243,7 +243,7 @@ { int fd, ret; char *argv[] = {"init", "-z", " ", NULL}; - char *envp[] = {"HOME=/", "TERM=linux", NULL}; + char *envp[] = {"HOME=/root", "TERM=linux", NULL}; /* Clear supplementary group IDs */ setgroups(0, NULL); Index: vzctl-4.6/src/lib/script.c =================================================================== --- vzctl-4.6.orig/src/lib/script.c 2013-10-29 22:05:49.000000000 +0100 +++ vzctl-4.6/src/lib/script.c 2013-10-30 19:40:13.000000000 +0100 @@ -41,7 +41,7 @@ #include "cleanup.h" volatile sig_atomic_t alarm_flag; -static char *envp_bash[] = {"HOME=/", "TERM=linux", ENV_PATH, NULL}; +static char *envp_bash[] = {"HOME=/root", "TERM=linux", ENV_PATH, NULL}; int read_script(const char *fname, char *include, char **buf) { debian/source/0000775000000000000000000000000012207124330010462 5ustar debian/source/format0000664000000000000000000000001412207124330011670 0ustar 3.0 (quilt) debian/vzctl.lintian-overrides0000664000000000000000000000127112207215415013712 0ustar vzctl binary: package-name-doesnt-match-sonames libvzchown-1.0 libvzctl-4.5 vzctl binary: package-contains-empty-directory usr/lib/vzctl/modules/ vzctl binary: script-calls-init-script-directly ./etc/vz/dists/scripts/debian-add_ip.sh:168 vzctl binary: script-calls-init-script-directly ./etc/vz/dists/scripts/debian-del_ip.sh:43 vzctl binary: script-calls-init-script-directly ./etc/vz/dists/scripts/gentoo-add_ip.sh:114 vzctl binary: script-calls-init-script-directly ./etc/vz/dists/scripts/gentoo-del_ip.sh:49 vzctl binary: script-calls-init-script-directly ./etc/vz/dists/scripts/redhat-add_ip.sh:215 vzctl binary: script-calls-init-script-directly ./etc/vz/dists/scripts/suse-7.x_add_ip.sh:87 debian/rules0000775000000000000000000000310512234015120010235 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 export DEB_BUILD_HARDENING=1 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) override_dh_auto_configure: # Add here commands to configure the package. vzdir=/var/lib/vz ./configure \ --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \ --prefix=/usr --libexecdir=/usr/lib/vzctl \ --sysconfdir=/etc --mandir=/usr/share/man \ --localstatedir=/var \ --enable-logrotate \ --enable-bashcomp \ --with-vz \ --with-ploop \ --with-cgroup \ --disable-udev override_dh_auto_build: # Add here commands to compile the package. $(MAKE) override_dh_auto_clean: # Add here commands to clean up after the build process. [ ! -f Makefile ] || $(MAKE) distclean -rm config.log config.status override_dh_auto_install: # Add here commands to install the package into debian/vzctl. $(MAKE) install install-debian \ DESTDIR=$(CURDIR)/debian/vzctl \ VPSCONFDIR=/etc/vz/conf NETSCRIPTS= # Useless udev rules file is not needed #520190 rm -Rf $(CURDIR)/debian/vzctl/etc/udev # Added to fix a lintian error. # See https://wiki.debian.org/ReleaseGoals/LAFileRemoval sed -i "/dependency_libs/ s/'.*'/''/" `find debian/vzctl -name '*.la'` %: dh $@ debian/watch0000664000000000000000000000154412221267033010223 0ustar # Example watch control file for uscan # Rename this file to "watch" and then you can run the "uscan" command # to check for upstream updates and more. # See uscan(1) for format # Compulsory line, this is a version 3 file version=3 http://download.openvz.org/utils/vzctl/(\d.*)/src/vzctl-(\d.*)\.(?:tgz|tbz2|txz|tar\.(?:gz|bz2|xz) # Uncomment to examine a Webpage # #http://www.example.com/downloads.php vzctl-(.*)\.tar\.gz # Uncomment to examine a Webserver directory #http://www.example.com/pub/vzctl-(.*)\.tar\.gz # Uncommment to examine a FTP server #ftp://ftp.example.com/pub/vzctl-(.*)\.tar\.gz debian uupdate # Uncomment to find new files on sourceforge, for devscripts >= 2.9 # http://sf.net/vzctl/vzctl-(.*)\.tar\.gz # Uncomment to find new files on GooglePages # http://example.googlepages.com/foo.html vzctl-(.*)\.tar\.gz debian/control0000664000000000000000000000204412234015036010567 0ustar Source: vzctl Section: admin Priority: optional Maintainer: Ola Lundqvist Build-Depends: debhelper (>= 9.0.0), libxml2-dev, libcgroup-dev, hardening-wrapper, pkg-config, libploop-dev Standards-Version: 3.9.4 Package: vzctl Architecture: i386 ia64 amd64 powerpc sparc Depends: ${shlibs:Depends}, ${misc:Depends}, iproute, vzquota Recommends: rsync, ploop Description: server virtualization solution - control tools OpenVZ is an Operating System-level server virtualization solution, built on Linux. OpenVZ creates isolated, secure virtual private servers on a single physical server enabling better server utilization and ensuring that applications do not conflict. Each VPS performs and executes exactly like a stand-alone server; VPSs can be rebooted independently and have root access, users, IP addresses, memory, processes, files, applications, system libraries and configuration files. . This package contain the control tool to manipulate the virtual servers. . OBSERVE! You need a Linux kernel patched with openvz support. debian/compat0000664000000000000000000000000212207214566010373 0ustar 9 debian/vzctl.prerm0000664000000000000000000000347512207215055011411 0ustar #! /bin/sh # prerm script for vzctl # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `upgrade' # * `failed-upgrade' # * `remove' `in-favour' # * `deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in remove) # This is a fix to make sure to avoid killing the own ve in case # vzctl has been installed inside the ve by mistake. if [ ! -e /dev/vzctl ] && [ -e /proc/vz/veinfo ] ; then # Make additional checks to make sure we are inside a ve. # Only ve0 can have more than one line. if [ "$(wc -l /proc/vz/veinfo | sed -e 's|^ *||;s| .*||;')" = "1" ] ; then # And only ve0 have id 0 if [ "$(cat /proc/vz/veinfo | sed -e 's|^ *||;s| .*||;')" != "0" ] ; then echo "Ignore stopping the ve as we are inside the container." exit 0 fi fi fi # End of fix. if [ -x "/etc/init.d/vz" ]; then if [ -x /usr/sbin/invoke-rc.d ] ; then invoke-rc.d vz stop || true else /etc/init.d/vz stop || true fi fi if [ -x "/etc/init.d/vzeventd" ]; then if [ -x /usr/sbin/invoke-rc.d ] ; then invoke-rc.d vzeventd stop || true else /etc/init.d/vzeventd stop || true fi fi ;; upgrade|deconfigure) ;; failed-upgrade) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/vzctl.postinst0000664000000000000000000000502212210427276012141 0ustar #! /bin/bash # postinst script for vzctl # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package # case "$1" in configure) ldconfig if [ -x "/etc/init.d/vz" ] ; then update-rc.d vz defaults >/dev/null fi if [ -x "/etc/init.d/vzeventd" ] ; then update-rc.d vzeventd defaults >/dev/null fi # No idea to start here as no virtual host can have been configured # yet. It may also break here. # Check if this is an upgrade if [ -n "$2" ] ; then # Upgrade path for --name settings for NAMECFG in $(find /etc/vz/names -maxdepth 1 -name "*.conf"); do VEID= SYML=`echo $NAMECFG|sed -e "s/.conf//"` . $NAMECFG if [ -n "$VEID" ] && [ ! -L "$SYML" ] && [ ! -e "$SYML" ] ; then ln -s /etc/vz/conf/$VEID.conf $SYML rm $NAMECFG fi done fi if [ "$2" = "" ] || [ "$2" = "3.0.22-14" ] || [ "$2" = "3.0.24-12" ] || [ "$2" = "3.0.29.3-1" ] ; then # If this is a new install (no upgrade), an upgrade from latest # version in the archive, from lenny or from squeeze then we shall # fix the security permisions but not in other cases as the # admnistrator may want it differently. if [ -d /var/lib/vz/private ] ; then chmod 700 /var/lib/vz/private fi if [ -d /var/lib/vz/root ] ; then chmod 700 /var/lib/vz/root fi fi # This is not an upgrade, check if we should start it as well. if [ -x /usr/sbin/invoke-rc.d ] ; then invoke-rc.d vz start || true else /etc/init.d/vz start || true fi if [ -d /proc/vz ] ; then # VZeventd is VZ kernel specific so do not start it unless # a vz kernel is used. if [ -x /usr/sbin/invoke-rc.d ] ; then invoke-rc.d vzeventd start || true else /etc/init.d/vzeventd start || true fi fi ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/changelog0000664000000000000000000006007612245444411011054 0ustar vzctl (4.6.1-1) unstable; urgency=low * New upstream release. * No longer depends on gawk. Closes: #728071. -- Ola Lundqvist Wed, 27 Nov 2013 20:32:37 +0100 vzctl (4.6-1) unstable; urgency=low * New upstream release. -- Ola Lundqvist Wed, 30 Oct 2013 19:39:40 +0100 vzctl (4.5-7) unstable; urgency=low * Added build dependency to ploop and enabled that as an optional feature. -- Ola Lundqvist Tue, 29 Oct 2013 21:27:44 +0100 vzctl (4.5-6) unstable; urgency=low * Applied upstream fix for IA64 build problem. -- Ola Lundqvist Sat, 28 Sep 2013 22:55:26 +0200 vzctl (4.5-5) unstable; urgency=low * Added watch file. -- Ola Lundqvist Fri, 27 Sep 2013 13:38:12 +0200 vzctl (4.5-4) unstable; urgency=low * Adding pkg-config to build-depends. Fixes FTPFS. Thanks to Mikhail Gusarov for the fix. Closes: #723690. -- Ola Lundqvist Thu, 19 Sep 2013 06:33:25 +0200 vzctl (4.5-3) unstable; urgency=low * Fixed lib directory to make sure it works on amd64. * Changed to the default template is debian-7.0-x86 instead of centos. -- Ola Lundqvist Fri, 13 Sep 2013 13:07:56 +0200 vzctl (4.5-2) unstable; urgency=low * Added hardening-wrapper to build depends. * Made sure that vzeventd init script is only run on install time if the vz kernel is executing. -- Ola Lundqvist Sat, 31 Aug 2013 19:56:20 +0200 vzctl (4.5-1) unstable; urgency=low * New upstream release. * Updated to debhelper 9 compatibility by updating the debian/rules file. * Did not add build dependency on libploop-dev as it is not yet in the debian archives. Instead --without-ploop is added to configure in debian/rules. * Added build dependency on libcgroup-dev to allow for standard kernel usage. Added --with-cgroup to debian/rules. * Added build dependency on libxml2-dev. * Updated to standards version 3.9.4. * Fixed a bug preventing vzeventd from being started at installation time. * Fixed a bug preventing vzeventd being stopped at removal time. -- Ola Lundqvist Tue, 27 Aug 2013 15:21:24 +0200 vzctl (3.0.30.2-4) unstable; urgency=low * Bashisms corrected. Closes: #690713. Thanks to Raphael Geissert for the report. -- Ola Lundqvist Wed, 24 Oct 2012 21:27:50 +0200 vzctl (3.0.30.2-3) unstable; urgency=low * Updated kernel information again. An APT repository is now available to make the usage more convenient. -- Ola Lundqvist Sat, 25 Aug 2012 17:33:18 +0200 vzctl (3.0.30.2-2) unstable; urgency=low * Updated documentation to describe how it works in wheezy release. -- Ola Lundqvist Wed, 25 Jul 2012 12:13:31 +0200 vzctl (3.0.30.2-1) unstable; urgency=low * New upstream release. -- Ola Lundqvist Thu, 26 Jan 2012 07:32:48 +0100 vzctl (3.0.29.3-2) unstable; urgency=low * Permission set so that only root can see the directories of the containers. Closes: #657051. -- Ola Lundqvist Tue, 24 Jan 2012 07:36:01 +0100 vzctl (3.0.29.3-1) unstable; urgency=low * New upstream release. Closes: #638072. -- Ola Lundqvist Mon, 17 Oct 2011 06:51:28 +0200 vzctl (3.0.27-1) unstable; urgency=low * New upstream release. This release solves: No documentation for ndsend. Closes: #622682. * No longer install debian-4.0, 5.0 and 6.0 configuration files as the debian target is identical. -- Ola Lundqvist Tue, 31 May 2011 06:42:51 +0200 vzctl (3.0.26.1-1) unstable; urgency=low * New upstream release. This release solves: #597876 in a new way. The udev log warning problem. Closes: #615478. The wait issue. Closes: #606526. * Changed the default OS_TEMPLATE in vz.conf from centos-5 to debian-6. * Updated from standards version 3.9.0 to 3.9.1. * Updated vzctl.8 man page to tell that default dump dir is in /var/lib/vz/dump instead of /vz/dump which is upstream default. * Language correction in postinst script. Closes: #611818. -- Ola Lundqvist Tue, 15 Mar 2011 16:54:50 +0100 vzctl (3.0.24-12) unstable; urgency=high * Corrected the issue that vzeventd is not enabled as an init script by default. Closes: #610891. -- Ola Lundqvist Tue, 25 Jan 2011 07:18:05 +0100 vzctl (3.0.24-11) unstable; urgency=low * Applied a documentation update for README.Debian as the name of the sample configuration file has changed name. Closes: #605050. Thanks to Guido Gunther for the patch and report. -- Ola Lundqvist Fri, 03 Dec 2010 08:11:33 +0100 vzctl (3.0.24-10) unstable; urgency=medium * Correction of the solution for #597876. A typo cause the correction to not work. -- Ola Lundqvist Sat, 06 Nov 2010 12:46:23 +0100 vzctl (3.0.24-9) unstable; urgency=high * Correction of the solution of #600455 in last upload. Applied patch from upstream. Thanks to Kir Kolyshkin for fast support. This patch allows vzeventd to be started. * Addtional corrections for vzeventd init function: Makes sure that init script do not return error when already started. Make sure the mandatory status command works. The start-stop-daemon was called with wrong arguments. Fixed now. -- Ola Lundqvist Fri, 29 Oct 2010 18:02:11 +0200 vzctl (3.0.24-8) unstable; urgency=medium [ Ola Lundqvist ] * Solved a package purge problem if vzctl is installed inside the container. Thanks to Apollon Oikonomopoulos for the report. Closes: #597522. * Solved the problem that HISTFILE and HOME are set to wrong values. Thanks to Daniel Hahler for the correction. Closes: #597555. The patch is in reverse order in debian/patches. * Correction to a debian specific patch that cause problem with routing. Closes: #597876. Thanks to Daniel Hahler for the proposed fix. [ Florian Ernst ] * debian/vzctl.postrm: correctly extend line in Lenny cleanup. Closes: #600585. [ Gregor Herrmann ] * Fix "typo in postinst breaks ct reboot feature / vzeventd isn't start at bootup": check for the correct init script; patch by Thorsten Schifferdecker (closes: #600081). * Fix "ct reboot feature broken - part II"; store and apply upstream patch that uses start-stop-daemon (closes: #600455). -- Ola Lundqvist Wed, 27 Oct 2010 07:06:45 +0200 vzctl (3.0.24-7) unstable; urgency=medium * No longer ignore errors on startup. -- Ola Lundqvist Tue, 14 Sep 2010 06:31:34 +0200 vzctl (3.0.24-6) unstable; urgency=low * Configuration files are not allowed to be removed on upgrade. Solved. -- Ola Lundqvist Mon, 13 Sep 2010 21:57:44 +0200 vzctl (3.0.24-5) unstable; urgency=medium * Make sure vzeventd can read options from /etc/default/vzeventd. This is a correction of the backported solution for #576227 in last upload. Documented this functionality as well. * Changed the README.Debian file so that it documents how to install squeeze instead of how to install lenny. In a addition a number of language corrections was made. Also clarification on network configuration was done. Closes: #574522. * Documented in the README.Debian file that /etc/mailname should be changed when creating the container. Closes: #50086. * Changed the package description so it do not refer to the kernel patch package as it do no longer exist. -- Ola Lundqvist Fri, 10 Sep 2010 18:56:42 +0200 vzctl (3.0.24-4) unstable; urgency=medium * Backported solution from upstream to solve the problem with vz container reboot and insserv. Closes: #576227. This solution is provided by a series of patches. A new vzeventd function is introduced and removes the need for cron jobs. * Had to run the upstream build commands. Stored in autogen.sh. * Now starts after installation as well. But only if the kernel support openvz in order to avoid installation failures. Closes: #411902. * Use correct install target install-debian instead of install-redhat. This introduces a vzufup-post network rule to add arp parameters. * Updated the README.Debian file to reflect the recent changes in the vzctl package. * Backport of solutions in from 3.0.24.1: vzmigrate: ignore error 24 from the first rsync run vzmigrate: migrate premount/postumount action scripts Revert "Check for memory granted by get_dist_name" bash_completion: vzlist's stderr goes to /dev/null * Backport of solutions in 3.0.24.2: Restore vzgetnetdev incompatibility with mawk. Closes: #592991. debian-add_ip.sh: fixlet for Ubuntu networking vzctl start: do not remove 127.0.0.1 aliases in /etc. Closes: #594003. list2str_c produces wrong string when list is empty (data corruption) -- Ola Lundqvist Tue, 08 Sep 2010 22:56:50 +0200 vzctl (3.0.24-3) unstable; urgency=medium * Correction to the solution for #594783. Changed to more suitable LSB header. -- Ola Lundqvist Mon, 30 Aug 2010 07:48:46 +0200 vzctl (3.0.24-2) unstable; urgency=low * Generates vzquota init script with correct LSB header. Closes: #594783. Thanks to Stefan Schlesinger for the patch. -- Ola Lundqvist Sun, 29 Aug 2010 16:24:37 +0200 vzctl (3.0.24-1) unstable; urgency=low * New upstream release. Closes: #588266. Re-applied correction for #579174 in a slightly different way according to latest information in upstream bugtracker. * Added shlibdeps information. * Lintian override change for shared library information for the new version of the shared library. * Lintian override added for the fact that some scripts call init script directly. * Updated to debhelper compatibility version 7. * Updated to debian standards version 3.9.0. * Changed from ch_clean -k to dh_prep in debian/rules. -- Ola Lundqvist Sun, 25 Jul 2010 22:59:11 +0200 vzctl (3.0.23-18) unstable; urgency=low * Solved serious build problem, closes: #584359. The fix is to copy the .am make file to the .in version. -- Ola Lundqvist Thu, 17 Jun 2010 22:07:28 +0200 vzctl (3.0.23-17) unstable; urgency=low * Applied patch to make it possible to have head and tail interface definitions. Closes: #514001. Thanks to Ivan Vilata i Balaguer for the suggestion. The solution is a backport from 3.0.24. * Solution for openvz bug 556 - vz init script doesn't check eth status before running. Backport fom 3.0.24. -- Ola Lundqvist Sun, 16 May 2010 12:48:40 +0200 vzctl (3.0.23-16) unstable; urgency=low * Corrected bashism in vzmigrate by enforcing bash. Closes: #581147. -- Ola Lundqvist Sun, 16 May 2010 12:18:39 +0200 vzctl (3.0.23-15) unstable; urgency=low * Adding one more fix from for the IPv6 issues seen. -- Ola Lundqvist Mon, 26 Apr 2010 21:14:12 +0200 vzctl (3.0.23-14) unstable; urgency=low * Applied patch from Denis Feklushkin to solve the IPv6 issue. Closes: #579174. -- Ola Lundqvist Mon, 26 Apr 2010 19:22:10 +0200 vzctl (3.0.23-13) unstable; urgency=low * Documented that vzsplit should be used to create larger configuration files. Closes: #482283. -- Ola Lundqvist Mon, 26 Apr 2010 07:30:41 +0200 vzctl (3.0.23-12) unstable; urgency=low * Warning about proxy_arp removed. Upstream did not like it and the solution was not perfect either as there are many solutions to avoid this. -- Ola Lundqvist Fri, 19 Mar 2010 07:17:59 +0100 vzctl (3.0.23-11) unstable; urgency=low * Returned the -e option for vzmigrate. So now we are back on how upstream defined it in the first place. -- Ola Lundqvist Thu, 25 Feb 2010 20:06:35 +0100 vzctl (3.0.23-10) unstable; urgency=low * Corrected bash compatibility issue and output issue in vzmigrate. Closes: #562736. Thanks to James Stanley and Teodor MICU for good suggestions. -- Ola Lundqvist Mon, 28 Dec 2009 21:20:39 +0100 vzctl (3.0.23-9) unstable; urgency=low * Correction for destroyed symlink for configuration file backported from upstream GIT. This solves a potential data corruption issue as described in the bug report. Closes: #557785. * Applied patch for bash completion so it is only performed for users with root privileges. Closes: #560303. Thanks to Ignace Mouzannar for the patch. -- Ola Lundqvist Sun, 20 Dec 2009 19:51:54 +0100 vzctl (3.0.23-8) unstable; urgency=low * Init script dependency correction, closes: #547334. Thanks to Petter Reinholdtsen fot the patch. * Useless udev rules file is not needed. Closes: #520190. * Documented that proxy_arp needs to be set in order to avoid this race condition. Closes: #495667. * Removed the suggestion of linux-patch-openvz. Closes: #515482. The kernel packages change too frequently to suggest a specific version. -- Ola Lundqvist Sat, 26 Sep 2009 21:48:45 +0200 vzctl (3.0.23-7) unstable; urgency=low * Documented how what is needed to support IPv6. -- Ola Lundqvist Sun, 13 Sep 2009 21:48:25 +0200 vzctl (3.0.23-6) unstable; urgency=low * Correction of bashism problem in scripts/vpsreboot and scripts/vpsnetclean. Closes: #530219. -- Ola Lundqvist Sat, 23 May 2009 20:46:52 +0200 vzctl (3.0.23-5) unstable; urgency=low * Correction applied for vzctl destroy problem. Closes: #527986. -- Ola Lundqvist Sat, 23 May 2009 17:26:40 +0200 vzctl (3.0.23-4) unstable; urgency=low * Updated the documentation for the network configuration in README.Debian. * Made the warning about network configuration visible in more correct situations. -- Ola Lundqvist Mon, 30 Mar 2009 21:25:08 +0200 vzctl (3.0.23-3) unstable; urgency=low * Upload to unstable. Correct build problem, closes: #518853. Includes fixes for ubuntu, closes: #504449, #490060. * Updated to standards version 3.8.0. * debian/rules file will fail if the clean target fails. * Added a lintian override for empty usr/lib/vzctl/modules/ dir. -- Ola Lundqvist Mon, 30 Mar 2009 07:40:53 +0200 vzctl (3.0.23-2) experimental; urgency=low * Reverted patch from Sebastian Klamar as the fix caused data overwriting during startup. It was the intention but that is not a good thing. Reopens: #500862. -- Ola Lundqvist Sun, 30 Nov 2008 19:23:13 +0100 vzctl (3.0.23-1) experimental; urgency=low * New upstream release This release includes a number of fixes for ubuntu, closes: #504449, #490060. * Applied patch from Sebastian Klamar that fix /etc/mailname creation in a proper way. This has been applied upstream for next 3.0.24 version as well. Closes: #500862. * Corrected examples location. * Changed from make clean to make distclean, to really clean the build before rebuild. * Changed copyright name in debian/copyright file because of name change of the company providing the upstream source. -- Ola Lundqvist Tue, 18 Nov 2008 20:16:24 +0100 vzctl (3.0.22-14) unstable; urgency=medium * Correction to make it work with ipv6, closes: #505792. Thanks to Sven Koch for pointing me to the patch. -- Ola Lundqvist Sat, 15 Nov 2008 20:35:07 +0100 vzctl (3.0.22-13) unstable; urgency=medium * Corrected bashism in vznetcfg. Closes: #499250. -- Ola Lundqvist Sat, 25 Oct 2008 16:20:55 +0200 vzctl (3.0.22-12) unstable; urgency=low * Correction of bashisms in some helper scripts, closes: #501374. -- Ola Lundqvist Sat, 18 Oct 2008 15:27:43 +0200 vzctl (3.0.22-11) unstable; urgency=low * Correction of init script so that it starts and stop on correct runlevels, closes: #493206. Thanks to Teodor for the patch. -- Ola Lundqvist Thu, 7 Aug 2008 07:03:36 +0200 vzctl (3.0.22-10) unstable; urgency=low * Updated README.Debian file to be suitable for lenny. Thanks to Miroslav Kure for the patch. -- Ola Lundqvist Mon, 4 Aug 2008 23:08:43 +0200 vzctl (3.0.22-9) unstable; urgency=low * Correction of capability problem on some platforms. Closes: #482974. -- Ola Lundqvist Sat, 7 Jun 2008 19:26:21 +0200 vzctl (3.0.22-8) unstable; urgency=low * Changed suggestion and reference to linux-patch-openvz instead of kernel-patch-openvz, closes: #482201. -- Ola Lundqvist Sun, 25 May 2008 13:27:51 +0200 vzctl (3.0.22-7) unstable; urgency=low * Correction for bash completion merged from ubuntu. Thanks to Daniel Hahler for this information. Closes: #479797. * Also changed so that the default OS TEMPLATE is Debian and not fedora-core-4. -- Ola Lundqvist Sun, 11 May 2008 14:33:56 +0200 vzctl (3.0.22-6) unstable; urgency=low * Applied patch from upstream git archive to correct a syntax error problem, closes: #477783. * Added ldconfig to postinst and postrm. * Added lintian override for two issues reported. They are not bugs. * Applied patch from Raphael Geissert to correct the bashism problems found in vzpid, vzmigrate and vznetcfg tools. Closes: #472901. -- Ola Lundqvist Sun, 27 Apr 2008 21:53:11 +0200 vzctl (3.0.22-5) unstable; urgency=low * Updated README.Debian to use /etc/sysctl.conf instead of depricated directive in /etc/network/options. * Corrected two bashism issues, closes: #468468. Thanks to Raphael Hertzog for both the above corrections. -- Ola Lundqvist Sun, 2 Mar 2008 16:44:27 +0100 vzctl (3.0.22-4) unstable; urgency=low * Changed shell interpreter from /bin/sh to /bin/bash for vz init script and vzmigrate, closes: #465377. * Added upgrade path for --name setting, closes: #460310. -- Ola Lundqvist Tue, 12 Feb 2008 18:15:58 +0100 vzctl (3.0.22-3) unstable; urgency=low * Correction for #459717. Thanks to eyck for the report. -- Ola Lundqvist Sun, 27 Jan 2008 10:24:49 +0100 vzctl (3.0.22-2) unstable; urgency=low * Correction to a bashism bug in vps-functions, closes: #459717. Thanks to Pawel Tecza for the patch. -- Ola Lundqvist Wed, 9 Jan 2008 07:53:13 +0100 vzctl (3.0.22-1) unstable; urgency=low * New upstream release. -- Ola Lundqvist Tue, 25 Dec 2007 20:44:56 +0100 vzctl (3.0.18-1) unstable; urgency=low * New upstream release. Closes: #415645, #417540, #415673. * With this the init script is POSIX compatible, closes: #420879. * Corrected permission of etc/vz/cron/vz because of lintian warning. * Added removal of config.log and config.status in debian/rules clean target. -- Ola Lundqvist Thu, 16 Aug 2007 13:09:45 +0200 vzctl (3.0.16-4) unstable; urgency=low * Etch has been released which means that this version can be uploaded to unstable. -- Ola Lundqvist Tue, 10 Apr 2007 18:08:16 +0200 vzctl (3.0.16-3) experimental; urgency=low * Merge of display dir correction for #415645 from 3.0.11-15. -- Ola Lundqvist Thu, 22 Mar 2007 05:37:55 +0100 vzctl (3.0.16-2) experimental; urgency=low * Allowed /srv/vz to vzsplit.c as well (related to bug #415645). -- Ola Lundqvist Wed, 21 Mar 2007 06:02:16 +0100 vzctl (3.0.16-1) experimental; urgency=low * New upstream release. * To build it configure line was added to rules file. * Upgrade path for vz related cron files. * Added support for /vz, /var/lib/vz and /opt/vz to vzsplit.c. It should later follow the configuration file. -- Ola Lundqvist Fri, 16 Mar 2007 19:00:59 +0100 vzctl (3.0.13-4) experimental; urgency=low * Corrected documentation link in arp warning. -- Ola Lundqvist Tue, 2 Jan 2007 21:16:51 +0100 vzctl (3.0.13-3) experimental; urgency=low * Make sure that rsync work as expected when clean is off. * Added dependency on vzquota. -- Ola Lundqvist Tue, 2 Jan 2007 20:20:38 +0100 vzctl (3.0.13-2) experimental; urgency=low * Added sparc arch as well to build all supported architectures. * Changed from ppc to powerpc. * Added architecture support text to README.Debian file. * Made sure that etc/init.d/vz is installed properly. -- Ola Lundqvist Sat, 30 Dec 2006 10:39:49 +0100 vzctl (3.0.13-1) experimental; urgency=low * New upstream release. * Added PPC target for testing. -- Ola Lundqvist Wed, 27 Dec 2006 10:37:26 +0100 vzctl (3.0.11-8) unstable; urgency=medium * Added recommendataion of rsync as the migration tools require it to run, closes: #401828. -- Ola Lundqvist Thu, 7 Dec 2006 21:54:48 +0100 vzctl (3.0.11-7) unstable; urgency=medium * Changed location of the lock file from /var/lock/subsys to /var/lock, closes: #399129. -- Ola Lundqvist Fri, 17 Nov 2006 06:56:14 +0100 vzctl (3.0.11-6) unstable; urgency=low * Added reference to openvz prepared kernels. -- Ola Lundqvist Mon, 30 Oct 2006 21:43:27 +0100 vzctl (3.0.11-5) unstable; urgency=high * No longer start vz by default on installation, closes: #378045. * Updated description of the package so that it is clear that a patched kernel is needed. * Added kernel-patch-openvz to the suggests field. -- Ola Lundqvist Sun, 15 Oct 2006 13:27:31 +0200 vzctl (3.0.11-4) unstable; urgency=medium * More README.Debian file updates to make it an useful guide to get started. -- Ola Lundqvist Tue, 10 Oct 2006 06:57:01 +0200 vzctl (3.0.11-3) unstable; urgency=medium * Updated the README.Debian file to contain information on how to create the first virtual server. -- Ola Lundqvist Mon, 9 Oct 2006 21:17:07 +0200 vzctl (3.0.11-2) unstable; urgency=low * Build only for vzctl, amd64 and ia64, closes: #390627. -- Ola Lundqvist Mon, 2 Oct 2006 21:32:21 +0200 vzctl (3.0.11-1) unstable; urgency=low * New upstream release * Added some more options to the make install in debian/rules file. * Changed default vz dir from /vz to /var/lib/vz. * Netscripts are no longer installed as they are only useful on RedHat or Suse systems. * Corrected minor error in manpage for vz.conf, closes: #378258. Thanks to Andrew Schulman for pointing to the fault and solution. -- Ola Lundqvist Sun, 1 Oct 2006 22:19:44 +0200 vzctl (3.0.10-4) unstable; urgency=low * Warning and documentation for proxy_arp issue, closes: #387762. * Added dependency on iproute package, closes: #387417. -- Ola Lundqvist Tue, 26 Sep 2006 07:31:58 +0200 vzctl (3.0.10-3) unstable; urgency=low * Applied patch from upstream to list netdevices correctly, closes: #382868. Thanks to Sebastian Werner . * Correction of awk path, closes: #383103. Thanks to Sebastian Werner . * Make bash the shell for init scripts, closes: #382666. -- Ola Lundqvist Tue, 15 Aug 2006 07:04:19 +0200 vzctl (3.0.10-2) unstable; urgency=low * Correction of installation problem, closes: #377686. -- Ola Lundqvist Thu, 13 Jul 2006 22:23:40 +0200 vzctl (3.0.10-1) unstable; urgency=low * Initial release, closes: #360869. -- Ola Lundqvist Mon, 12 Jun 2006 22:06:54 +0200