]> git.proxmox.com Git - pve-container.git/log
pve-container.git
5 years agobump version to 1.0-106 stable-4
Wolfgang Bumiller [Mon, 30 Apr 2018 10:31:47 +0000 (12:31 +0200)]
bump version to 1.0-106

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
5 years agoadd Ubuntu 18.04 to known versions.
Dietmar Maurer [Mon, 23 Apr 2018 08:59:17 +0000 (10:59 +0200)]
add Ubuntu 18.04 to known versions.

5 years agofix #1704: get container uptime with /proc/<pid>/stat
Dominik Csapak [Mon, 19 Mar 2018 15:30:15 +0000 (16:30 +0100)]
fix #1704: get container uptime with /proc/<pid>/stat

stat on /proc/<pid> is reset when caches are dropped (e.g. from pveperf)
so get the uptime like lxcfs it does, via /proc/<pid>/stat

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agofix #1618: do not double encode the description
Dominik Csapak [Tue, 16 Jan 2018 14:43:18 +0000 (15:43 +0100)]
fix #1618: do not double encode the description

we already encode the description in 'write_config',
we do not need to do it here again

this lead to newlines also to be encoded instead of
splitting the description into lines and decode that

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agoconfig: whitelist lxc.limit.*
Wolfgang Bumiller [Mon, 24 Apr 2017 12:08:40 +0000 (14:08 +0200)]
config: whitelist lxc.limit.*

6 years agobump version to 1.0-105
Wolfgang Bumiller [Thu, 8 Mar 2018 14:24:34 +0000 (15:24 +0100)]
bump version to 1.0-105

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agouse systemd-networkd for ubuntu >= 17.10
Dominik Csapak [Tue, 27 Feb 2018 12:30:09 +0000 (13:30 +0100)]
use systemd-networkd for ubuntu >= 17.10

Ubuntu Artful uses systemd-networkd now,
but we have to delete the default netplan config from the
upstream lxc container, and enable systemd-networkd

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
(cherry picked from commit 73a7a0e8603db890116d5de8620a2d5554c9a34a)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agobump version to 1.0-104
Fabian Grünbichler [Fri, 1 Dec 2017 08:24:29 +0000 (09:24 +0100)]
bump version to 1.0-104

6 years agofix read_cgroup_value for unprivileged containers
Wolfgang Bumiller [Tue, 17 Oct 2017 07:57:10 +0000 (09:57 +0200)]
fix read_cgroup_value for unprivileged containers

We changed this to read values from the container's inner
cgroup, but didn't take into account that unprivileged
containers don't have one.
Add a parameter to specify whether it is an unprivileged
container.

Fixes: 41ef9833bf00 ("include ns/ dir in read_cgroup_value")
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
(cherry picked from commit 3b5070d437c1b637daa99aaac6cf507999fa8241)

6 years agobump version to 1.0-103
Wolfgang Bumiller [Wed, 15 Nov 2017 09:37:50 +0000 (10:37 +0100)]
bump version to 1.0-103

(102 was an internal between-merge version)

6 years agomake ssh connection transparent
Dominik Csapak [Fri, 17 Nov 2017 09:22:54 +0000 (10:22 +0100)]
make ssh connection transparent

do not use an escape character for ssh connections for vncterm

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agofixes #1227: include ns/ dir in read_cgroup_value
Philip Abernethy [Fri, 6 Oct 2017 13:52:15 +0000 (15:52 +0200)]
fixes #1227: include ns/ dir in read_cgroup_value

this fixes the disk I/O graph and now also correctly sums the values.

6 years agoAPI/clone: do not overwrite global signal handlers
Thomas Lamprecht [Wed, 6 Sep 2017 11:29:05 +0000 (13:29 +0200)]
API/clone: do not overwrite global signal handlers

perls 'local' must be either used in front of each $SIG{...}
assignments or they must be put in a list, else it affects only the
first variable and the rest are *not* in local context.

This may cause weird behaviour where daemons seemingly do not get
terminating signals delivered correctly and thus may not shutdown
gracefully anymore.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agobump version to 1.0-101
Wolfgang Bumiller [Mon, 24 Jul 2017 08:19:49 +0000 (10:19 +0200)]
bump version to 1.0-101

6 years agoubuntu: recognize 17.10
Wolfgang Bumiller [Mon, 24 Jul 2017 07:13:49 +0000 (09:13 +0200)]
ubuntu: recognize 17.10

6 years agodebian: recognize all stretch versions, translate buster/sid to 10
Wolfgang Bumiller [Mon, 24 Jul 2017 06:49:44 +0000 (08:49 +0200)]
debian: recognize all stretch versions, translate buster/sid to 10

6 years agobuild: run tests when building
Fabian Grünbichler [Wed, 17 May 2017 10:14:15 +0000 (12:14 +0200)]
build: run tests when building

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agotests: exit with -1 in case of failures
Fabian Grünbichler [Wed, 17 May 2017 10:14:14 +0000 (12:14 +0200)]
tests: exit with -1 in case of failures

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agotests: fix broken snapshot delete tests
Fabian Grünbichler [Wed, 17 May 2017 10:14:13 +0000 (12:14 +0200)]
tests: fix broken snapshot delete tests

these broke when the additonal "snapshot-delete" lock was
introduced.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agotests: use all target to run tests
Fabian Grünbichler [Wed, 17 May 2017 10:14:12 +0000 (12:14 +0200)]
tests: use all target to run tests

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agobump version to 1.0-100
Dietmar Maurer [Tue, 2 May 2017 05:07:55 +0000 (07:07 +0200)]
bump version to 1.0-100

6 years agoadd support for Ubuntu 17.04 (zesty)
Dietmar Maurer [Tue, 2 May 2017 04:34:41 +0000 (06:34 +0200)]
add support for Ubuntu 17.04 (zesty)

(cherry picked from commit d9d448faebe311d4fd88201abcdf4ce9f2edd393)

7 years agobump version to 1.0-99
Fabian Grünbichler [Thu, 6 Apr 2017 07:40:13 +0000 (09:40 +0200)]
bump version to 1.0-99

7 years agofix suse version 13 check being inverted
Wolfgang Bumiller [Thu, 6 Apr 2017 07:26:40 +0000 (09:26 +0200)]
fix suse version 13 check being inverted

7 years agobump version to 1.0-98
Dietmar Maurer [Thu, 6 Apr 2017 04:31:27 +0000 (06:31 +0200)]
bump version to 1.0-98

7 years agoallow opensuse >= 42
Dietmar Maurer [Thu, 6 Apr 2017 04:26:22 +0000 (06:26 +0200)]
allow opensuse >= 42

(cherry picked from commit c42fbb8e32baa3f9af6ec8bc4a25de223efa0541)

7 years agopct: improve error message output of die
Thomas Lamprecht [Wed, 22 Mar 2017 09:11:13 +0000 (10:11 +0100)]
pct: improve error message output of die

7 years agobump version to 1.0-97
Dietmar Maurer [Thu, 16 Mar 2017 15:31:11 +0000 (16:31 +0100)]
bump version to 1.0-97

7 years agoadd console fix for debian containers using systemd
Dietmar Maurer [Thu, 16 Mar 2017 11:52:12 +0000 (12:52 +0100)]
add console fix for debian containers using systemd

(cherry picked from commit b03a8a78a34e2091d989eb5c8fccd6b691a8e969)

7 years agobump version to 1.0-96
Fabian Grünbichler [Fri, 10 Mar 2017 12:52:10 +0000 (13:52 +0100)]
bump version to 1.0-96

7 years agopoststop: use a reboot trigger file
Wolfgang Bumiller [Fri, 10 Mar 2017 10:25:41 +0000 (11:25 +0100)]
poststop: use a reboot trigger file

Since the STOPPED state is set before cgroup cleanup we need
a better way to restart a container: We now install an
ExecStopPost snippet into the lxc@.service which when
encountering a reboot trigger file
(/var/lib/lxc/$vmid/reboot) performs a systemctl restart.

7 years agoRevert "poststop: reboot: wait for lxc to exit before rebooting"
Wolfgang Bumiller [Fri, 10 Mar 2017 10:25:40 +0000 (11:25 +0100)]
Revert "poststop: reboot: wait for lxc to exit before rebooting"

This reverts commit ff867097e8a5ea1ab6ff1d5cbc381a4212c37254.

7 years agobump version to 1.0-95
Fabian Grünbichler [Thu, 9 Mar 2017 14:21:02 +0000 (15:21 +0100)]
bump version to 1.0-95

7 years agobuildsys: update make upload target
Fabian Grünbichler [Thu, 9 Mar 2017 14:18:02 +0000 (15:18 +0100)]
buildsys: update make upload target

7 years agopoststop: reboot: wait for lxc to exit before rebooting
Wolfgang Bumiller [Thu, 9 Mar 2017 13:54:28 +0000 (14:54 +0100)]
poststop: reboot: wait for lxc to exit before rebooting

otherwise it'll leak cgroup directories...

Note that we need to escape the lxc@.service context (by
entering a new scope) as well as close our ties to the lxc
monitor (the stdout pipe), otherwise this never finishes
properly.

7 years agoadd keeplocale parameter to vncproxy run_command
Dominik Csapak [Tue, 28 Feb 2017 11:06:36 +0000 (12:06 +0100)]
add keeplocale parameter to vncproxy run_command

to not overwrite the LC_* environment variables

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoCreate: fix architecture detection in restore_archive
Thomas Lamprecht [Thu, 16 Feb 2017 16:55:29 +0000 (17:55 +0100)]
Create: fix architecture detection in restore_archive

For detecting a CT templates architecture we used the `file -b -L`
output from the PVE host side.
If the container has a link:
/bin/sh -> /bin/bash
(Alpine Linux does that, for example) the '-L' flag from file
resolves the $rootfs/bin/sh to /bin/bash and thus checks the
architecture of bash on the PVE system, which is always 64 bit.

Add a helper which chroots in the rootfs to avoid problems with
absolute symlinks and use 'open' to avoid relative symlink problems
read the first 5 bytes from /bin/sh, 4 bytes for the ELF magic number
and the fifth for the ELF class, which tells us if we have a 32
(class 1) or 64 (class 2) bit ELF binary.

Return this information as an exit code to the parent.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agopct: remove leftover outdated POD content
Thomas Lamprecht [Fri, 10 Feb 2017 19:53:54 +0000 (20:53 +0100)]
pct: remove leftover outdated POD content

gets generated by pve-docs

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoalso expect ENOTDIR when opening dirs with O_NOFOLLOW
Wolfgang Bumiller [Tue, 7 Feb 2017 14:03:24 +0000 (15:03 +0100)]
also expect ENOTDIR when opening dirs with O_NOFOLLOW

open with O_DIRECTORY on newer kernel uses ENOTDIR instead
of ELOOP for symlinks

7 years agodon't pull HA modules for doc-generation
Wolfgang Bumiller [Tue, 7 Feb 2017 14:02:46 +0000 (15:02 +0100)]
don't pull HA modules for doc-generation

7 years agorun tests with lxc-usernsexec; build-depend on lxc or lxc-pve
Wolfgang Bumiller [Tue, 7 Feb 2017 14:01:59 +0000 (15:01 +0100)]
run tests with lxc-usernsexec; build-depend on lxc or lxc-pve

7 years agobuildsys: make job safety
Wolfgang Bumiller [Tue, 7 Feb 2017 12:37:39 +0000 (13:37 +0100)]
buildsys: make job safety

7 years agobump version to 1.0-94
Wolfgang Bumiller [Thu, 2 Feb 2017 13:15:06 +0000 (14:15 +0100)]
bump version to 1.0-94

7 years agouse the lxc@ service file provded by lxc
Wolfgang Bumiller [Thu, 2 Feb 2017 10:02:36 +0000 (11:02 +0100)]
use the lxc@ service file provded by lxc

Until now the lxc-start process was sort of a danglign
process in the pvedaemon.service cgroup when a container was
started from the web UI causing long stalls when trying to
restart pvedaemon and potential container kills. (Mostly
problematic when issuing package upgrades).
We now start containers via the lxc@ service file giving
them their own service cgroup.

The downside is that we'll have to patch the lxc@ service
file in the lxc package to Type=forking without the -F
option otherwise all of the the containers' console outputs
will end up in the logs...

7 years agofix 1153: let crypt() handle unicode CT passwords
Fabian Grünbichler [Mon, 23 Jan 2017 12:20:30 +0000 (13:20 +0100)]
fix 1153: let crypt() handle unicode CT passwords

according to "perldoc -f crypt", crypt() should downgrade
unicode strings anyway:

If using crypt() on a Unicode string (which potentially has
characters with codepoints above 255), Perl tries to make
sense of the situation by trying to downgrade (a copy of)
the string back to an eight-bit byte string before calling
crypt() (on that copy).  If that works, good.  If not,
crypt() dies with "Wide character in crypt".

login via Spice and ssh works now at least, the noVNC /
vncterm combo seems to be broken because of an unrelated
unicode issue..

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agobump version to 1.0-93
Fabian Grünbichler [Wed, 25 Jan 2017 08:40:46 +0000 (09:40 +0100)]
bump version to 1.0-93

7 years agoadd dependency on libpve-guest-common-perl
Fabian Grünbichler [Wed, 25 Jan 2017 08:39:52 +0000 (09:39 +0100)]
add dependency on libpve-guest-common-perl

7 years agobump version to 1.0-92
Dietmar Maurer [Thu, 19 Jan 2017 08:18:20 +0000 (09:18 +0100)]
bump version to 1.0-92

7 years agouse new PVE::Storage::check_volume_access()
Dietmar Maurer [Wed, 18 Jan 2017 16:18:54 +0000 (17:18 +0100)]
use new PVE::Storage::check_volume_access()

7 years agofix #1253: display SSH fingerprints on CT setup
Fabian Grünbichler [Tue, 17 Jan 2017 13:12:34 +0000 (14:12 +0100)]
fix #1253: display SSH fingerprints on CT setup

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agobump version to 1.0-91
Dietmar Maurer [Thu, 12 Jan 2017 12:22:30 +0000 (13:22 +0100)]
bump version to 1.0-91

7 years agoadd setup_environment hook to CLIHandler class
Dietmar Maurer [Thu, 12 Jan 2017 12:20:06 +0000 (13:20 +0100)]
add setup_environment hook to CLIHandler class

7 years agobump version to 1.0-90
Dietmar Maurer [Tue, 27 Dec 2016 08:03:40 +0000 (09:03 +0100)]
bump version to 1.0-90

7 years agoRevert "Do not skip unprivileged config parameter when restoring a container"
Dietmar Maurer [Tue, 27 Dec 2016 07:53:46 +0000 (08:53 +0100)]
Revert "Do not skip unprivileged config parameter when restoring a container"

This reverts commit ca187102dfca383a1125106fef744d3ba525023c.

We extract the backup archive before we read the config, so above patch
generates containers with wrong permissions.

7 years agobump version to 1.0-89
Dietmar Maurer [Wed, 21 Dec 2016 10:56:35 +0000 (11:56 +0100)]
bump version to 1.0-89

7 years agovzdump: use --make-rslave instead of --make-rprivate
Wolfgang Bumiller [Mon, 12 Dec 2016 09:11:55 +0000 (10:11 +0100)]
vzdump: use --make-rslave instead of --make-rprivate

In a stop mode backup of a running container the container
is started from this namespace, so making it private can
cause mount point leaks.

7 years agosupress warning when we try to delete a non-existent option
Dietmar Maurer [Tue, 20 Dec 2016 09:34:15 +0000 (10:34 +0100)]
supress warning when we try to delete a non-existent option

such warnings are just confusing ...

7 years agofix #1226: show the right amount of memory usage
Dominik Csapak [Thu, 15 Dec 2016 11:49:37 +0000 (12:49 +0100)]
fix #1226: show the right amount of memory usage

we moved the lxc cgroup settings in a sub namespace, but did not use the
total_cache value for subtracting so we showed a wrong used amount

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agofix #1225: restore without config changes for VMUser
Fabian Grünbichler [Thu, 15 Dec 2016 15:10:55 +0000 (16:10 +0100)]
fix #1225: restore without config changes for VMUser

this makes the behaviour similar to VM restore operations

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agodocument bind/device mp permissions better
Fabian Grünbichler [Tue, 13 Dec 2016 11:14:28 +0000 (12:14 +0100)]
document bind/device mp permissions better

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agofix typo
Dietmar Maurer [Sat, 17 Dec 2016 15:34:46 +0000 (16:34 +0100)]
fix typo

7 years agobump version to 1.0-88
Dietmar Maurer [Fri, 9 Dec 2016 09:13:34 +0000 (10:13 +0100)]
bump version to 1.0-88

7 years agosetup: allow fedora 22-25
Wolfgang Bumiller [Fri, 9 Dec 2016 08:54:24 +0000 (09:54 +0100)]
setup: allow fedora 22-25

This should allow vanilla lxc templates to work without the
double-console issue by removing their getty@.service
replacement. (Since we instead fixup
container-getty@.service)

7 years agosetup: more general approach to tty paths
Dietmar Maurer [Fri, 9 Dec 2016 07:08:11 +0000 (08:08 +0100)]
setup: more general approach to tty paths

Unprivileged containers always use an empty lxc.devttydir
option (iow. don't use the /dev/lxc/ subdirectory).
Alpine and Gentoo don't support it in general.

Define a devttydir() sub in Setup::Base which by default
returns "lxc/" or an empty string depending on whether it is
an unprivileged container. Gentoo and Alpine override it
with one which always returns an empty string.

7 years agobump version to 1.0-87
Dietmar Maurer [Fri, 2 Dec 2016 11:12:54 +0000 (12:12 +0100)]
bump version to 1.0-87

7 years agoadd restart migration to lxc api
Dominik Csapak [Fri, 2 Dec 2016 10:42:51 +0000 (11:42 +0100)]
add restart migration to lxc api

this simply adds the restart flag and the optional timeout to the
lxc api required for the restart mode migration

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoimplement lxc restart migration
Dominik Csapak [Fri, 2 Dec 2016 10:42:50 +0000 (11:42 +0100)]
implement lxc restart migration

this checks for the 'restart' parameter and if given, shuts down the
container with a optionally defined timeout (default 180s), and
continues the migration like an offline one.

after finishing, we start the container on the target node

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoVZDump: implement stopwait
Thomas Lamprecht [Thu, 1 Dec 2016 11:44:34 +0000 (12:44 +0100)]
VZDump: implement stopwait

This was missing in pve-container, qemu-server does it already.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agobump version to 1.0-86
Dietmar Maurer [Fri, 2 Dec 2016 06:39:48 +0000 (07:39 +0100)]
bump version to 1.0-86

7 years agoDo not skip unprivileged config parameter when restoring a container
Emmanuel Kasper [Thu, 1 Dec 2016 14:38:07 +0000 (15:38 +0100)]
Do not skip unprivileged config parameter when restoring a container

This allows to keep the parameter when restoring from a backup.

7 years agobump version to 1.0-85
Wolfgang Bumiller [Fri, 25 Nov 2016 10:40:07 +0000 (11:40 +0100)]
bump version to 1.0-85

7 years agostart: use root cpuset cgroup if the lxc one fails
Wolfgang Bumiller [Fri, 25 Nov 2016 09:50:00 +0000 (10:50 +0100)]
start: use root cpuset cgroup if the lxc one fails

This happens when no container has been started yet and the
lxc/ directory has not yet been created in the cpuset
cgroup.

7 years agobump version to 1.0-84
Dietmar Maurer [Wed, 23 Nov 2016 14:51:50 +0000 (15:51 +0100)]
bump version to 1.0-84

7 years agostart: use a random cpuset at startup
Wolfgang Bumiller [Wed, 23 Nov 2016 11:48:55 +0000 (12:48 +0100)]
start: use a random cpuset at startup

we'll leave the rebalancing to pvestatd's next iteration

7 years agobump version to 1.0-83
Dietmar Maurer [Wed, 23 Nov 2016 07:28:32 +0000 (08:28 +0100)]
bump version to 1.0-83

7 years agovm_shutdown: request 'stopped' state for HA enabled CTs
Dietmar Maurer [Wed, 23 Nov 2016 07:21:18 +0000 (08:21 +0100)]
vm_shutdown: request 'stopped' state for HA enabled CTs

7 years agoswitch to 'ha-manager set'
Dietmar Maurer [Wed, 23 Nov 2016 07:17:59 +0000 (08:17 +0100)]
switch to 'ha-manager set'

ha-manager enabled/disabled is already removed

7 years agobump version to 1.0-82
Dietmar Maurer [Tue, 22 Nov 2016 15:51:04 +0000 (16:51 +0100)]
bump version to 1.0-82

7 years agofix spelling: 'mountpoint' 'mount point'
Fabian Grünbichler [Fri, 14 Oct 2016 10:51:04 +0000 (12:51 +0200)]
fix spelling: 'mountpoint' 'mount point'

7 years agofix #1147: allow marking non-volume mps as shared
Fabian Grünbichler [Fri, 14 Oct 2016 10:51:03 +0000 (12:51 +0200)]
fix #1147: allow marking non-volume mps as shared

this introduces a new option for non-volume mount points,
modeled after the way we define 'shared' storages: the
boolean flag 'shared' marks a mount point as available on
other nodes (default: false)

when migrating containers with non-volume mount points,
this new property is checked, and a migration is only
allowed if all such mount points are 'shared'.

setting this flag allows containers with non-volume mount
points to be migrated by the ha-manager as well, which was
previously not possible.

for backwards compatibility, the old "workaround" option
'-force' for 'pct migrate' still works, but displays a
warning pointing to the new options.

7 years agoUbuntu 16.10: fix systemd console files
Dietmar Maurer [Wed, 2 Nov 2016 08:34:39 +0000 (09:34 +0100)]
Ubuntu 16.10: fix systemd console files

run setup_container_getty_service().

7 years agobump version to 1.0-81
Dietmar Maurer [Wed, 2 Nov 2016 07:44:02 +0000 (08:44 +0100)]
bump version to 1.0-81

7 years agoadd support for Ubuntu 16.10
Dietmar Maurer [Wed, 2 Nov 2016 07:29:36 +0000 (08:29 +0100)]
add support for Ubuntu 16.10

7 years agofix typo
Dietmar Maurer [Wed, 2 Nov 2016 07:29:03 +0000 (08:29 +0100)]
fix typo

7 years agobump version to 1.0-80
Dietmar Maurer [Sat, 29 Oct 2016 05:47:12 +0000 (07:47 +0200)]
bump version to 1.0-80

7 years agopct cpusets: cleanup output if there are no running containers
Dietmar Maurer [Fri, 28 Oct 2016 04:13:14 +0000 (06:13 +0200)]
pct cpusets: cleanup output if there are no running containers

7 years agopct: add new command 'pct cpusets to print assigned cpu sets
Dietmar Maurer [Thu, 27 Oct 2016 15:35:52 +0000 (17:35 +0200)]
pct: add new command 'pct cpusets to print assigned cpu sets

7 years agobump version to 1.0-79
Dietmar Maurer [Wed, 26 Oct 2016 09:47:12 +0000 (11:47 +0200)]
bump version to 1.0-79

7 years agoadd new option 'cores' to restrict visible cores
Dietmar Maurer [Thu, 27 Oct 2016 05:13:52 +0000 (07:13 +0200)]
add new option 'cores' to restrict visible cores

Actual restriction is done by pvestatd.

7 years agoPVE::LXC::Config::has_lxc_entry() new helper
Dietmar Maurer [Wed, 26 Oct 2016 09:43:59 +0000 (11:43 +0200)]
PVE::LXC::Config::has_lxc_entry() new helper

7 years agovmstatus: fix memory usage value including cache sizes
Thomas Lamprecht [Tue, 18 Oct 2016 13:35:14 +0000 (15:35 +0200)]
vmstatus: fix memory usage value including cache sizes

The cgroup value memory.usage_in_bytes includes the memory used by
file buffers and other caches, resolve this by getting the cache
value from the memory.stat file and substract it from
memory.usage_in_bytes when calculating the current memory usage of
the CT.
This results in the same value as a `free` call from the container
does (when not including the buffered data), at least with a free
version which uses data from /proc and not the sysinfo() syscall.

Addresses partly the bug #1139

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
CC: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 years agofix devices file check in autodev hook
Fabian Grünbichler [Fri, 7 Oct 2016 07:38:14 +0000 (09:38 +0200)]
fix devices file check in autodev hook

open sets the FD even if the file does not exist, but
returns false itself.

the previous check failed for the ENOENT case and caused
reading a closed file handle because the if was never
entered.

7 years agobump version to 1.0-78
Dietmar Maurer [Fri, 7 Oct 2016 07:35:54 +0000 (09:35 +0200)]
bump version to 1.0-78

7 years agoalpine: fix getty line removal
Wolfgang Bumiller [Fri, 7 Oct 2016 06:45:03 +0000 (08:45 +0200)]
alpine: fix getty line removal

and make it a little safer for debian, too

7 years agotests: add missing loopback interfaces
Wolfgang Bumiller [Fri, 7 Oct 2016 06:45:02 +0000 (08:45 +0200)]
tests: add missing loopback interfaces

My last patch contained a test case built before I had
Thomas' loopback patch merged in.

7 years agoremove unused RELEASE var
Dietmar Maurer [Tue, 4 Oct 2016 09:50:44 +0000 (11:50 +0200)]
remove unused RELEASE var

7 years agobump version to 1.0-77
Dietmar Maurer [Tue, 4 Oct 2016 09:50:03 +0000 (11:50 +0200)]
bump version to 1.0-77

7 years agofix #1134: debian: don't start empty interface sections
Wolfgang Bumiller [Mon, 3 Oct 2016 07:41:19 +0000 (09:41 +0200)]
fix #1134: debian: don't start empty interface sections

While a completely unconfigured network interface is
considered manually managed, one that contains an ipv4 _or_
an ipv6 address needs to remove sections with no configured
address rather than printing the 'iface' section header with
no content.

7 years agobump version to 1.0-76
Dietmar Maurer [Tue, 4 Oct 2016 09:40:22 +0000 (11:40 +0200)]
bump version to 1.0-76

7 years agobug #1021: add loopback interface if not network config
Thomas Lamprecht [Tue, 4 Oct 2016 08:50:31 +0000 (10:50 +0200)]
bug #1021: add loopback interface if not network config

While loopback is always there it still needs to be in the config in
older Debian versions and Alpine Linux.

Fixes 1021 as the Alpine code uses the debian network code.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>