]> git.proxmox.com Git - pve-container.git/log
pve-container.git
8 years agoVZDump lock update, drop lock_aquire/lock_release
Fabian Grünbichler [Wed, 10 Feb 2016 11:01:17 +0000 (12:01 +0100)]
VZDump lock update, drop lock_aquire/lock_release

Since VZDump was the only user of lock_aquire and
lock_release, and does not actually need this split,
we can drop lock_aquire and lock_release.

Since lock_file_full in PVE::Tools now uses the same
refcounting implementation that lock_aquire/release
had, lock_container can simply wrap lock_file_full.

8 years agoprevent snapshot name 'vzdump' from user
Dominik Csapak [Wed, 10 Feb 2016 14:04:11 +0000 (15:04 +0100)]
prevent snapshot name 'vzdump' from user

if someone makes a snapshot named 'vzdump', it would get deleted
when using vzdump in snapshot mode, since we use that name for
making a temporary one

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agoimprove mountpoint parsing
Dominik Csapak [Thu, 4 Feb 2016 12:40:15 +0000 (13:40 +0100)]
improve mountpoint parsing

changes from v1:
renamed function to verify_*
added check for ../ at the beginning
cleaned up regex (\.)? -> \.?

currently we sanitize mountpoints with sanitize_mountpoint, which
tries to remove dots, double-dots and multiple slashes, but it does it
not correctly (e.g. /test/././ gets truncated to /test./ )

instead of trying to truncate the path, we create a format for mp strings
which throws an error if /./ or /../ exist (also /. and /.. at the end or
../ at the beginning) since there should be no valid use for these in
mountpoint paths anyway

with the new behaviour, we don't need sanitize_mountpoint anymore:

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agobump version to 1.0-42
Dietmar Maurer [Mon, 8 Feb 2016 11:17:36 +0000 (12:17 +0100)]
bump version to 1.0-42

8 years agoRemove mknod call from pre-start hook
Fabian Grünbichler [Thu, 4 Feb 2016 12:07:03 +0000 (13:07 +0100)]
Remove mknod call from pre-start hook

Since lxc.autodev defaults to 1, LXC will mount /dev as
tmpfs an populate it. The removed code was unnecessary,
since the device node was not accessable in the container
anyway. A /dev mountpoint is mounted into the rootfs and
accessable under its mountpoint, even if there is no
associated /dev node in the container.

To make matters worse, there was no cleanup for this device
node, which made all but the first boot of containers with
a configured /dev mountpoint fail until the host itself was
rebooted.

8 years agoOnly add actual volumes to volid_list
Fabian Grünbichler [Thu, 4 Feb 2016 10:08:05 +0000 (11:08 +0100)]
Only add actual volumes to volid_list

skip /dev and bind mounts, otherwise stop backups will
fail in parse_volume_id.

8 years agofix growing of a running container's memory limit
Wolfgang Bumiller [Mon, 8 Feb 2016 07:48:28 +0000 (08:48 +0100)]
fix growing of a running container's memory limit

Since the memory cgroup has a memory and a "total" value
depending on whether you're increasing or decreasing the
values you have to set then in a working order. (Eg. you
can't reduce the total amount to less than the swap limit
or grow the swap limit to more than the total one.)

8 years agoopensuse 13.2 support
Wolfgang Bumiller [Mon, 8 Feb 2016 07:48:27 +0000 (08:48 +0100)]
opensuse 13.2 support

Needs the apparmor /run -> /var/run bind mount patch in
lxc-pve.

8 years agoadded $skiplock parameter for pct start/stop
Wolfgang Bumiller [Mon, 8 Feb 2016 07:48:26 +0000 (08:48 +0100)]
added $skiplock parameter for pct start/stop

Like with qemu the root user can use -skiplock with 'pct
start' and 'pct stop'.

This does not alter the container's lxc config, instead we
pass PVE_SKIPLOCK=1 via the environment which will be seen
from the prestart hook but not from inside the container.

8 years agoFix #791: warn when resize2fs fails
Wolfgang Bumiller [Mon, 8 Feb 2016 07:48:25 +0000 (08:48 +0100)]
Fix #791: warn when resize2fs fails

At this point the underlying file has already been
successfully resized which means it makes sense to refelct
that change in the config, but the guest will not see the
effect of it, however, a subsequent resize command will
further increase the size relative to the 'new' size, so
after such an error the best option is to manually deal with
the error and perform the necessary resize steps.

8 years agoFix #881: uninitialized value on valid lxc.cgroup keys
Wolfgang Bumiller [Tue, 2 Feb 2016 07:21:12 +0000 (08:21 +0100)]
Fix #881: uninitialized value on valid lxc.cgroup keys

We have no lxc.cgroup.* keys in $valid_lxc_conf_keys so they
and unknown keys showed an uninitialized value warning for
the new 'eq' operation.
This also avoids the second hash access.

8 years agoupdate changelog
Dietmar Maurer [Thu, 28 Jan 2016 16:12:26 +0000 (17:12 +0100)]
update changelog

8 years agoCloses #877: Skip mps with backup=0 for snapshot backups
Fabian Grünbichler [Thu, 28 Jan 2016 15:10:59 +0000 (16:10 +0100)]
Closes #877: Skip mps with backup=0 for snapshot backups

8 years agoupdate changelog
Dietmar Maurer [Thu, 28 Jan 2016 10:05:53 +0000 (11:05 +0100)]
update changelog

8 years agocreate firewall dir on ct restore, if it does not exists.
Wolfgang Link [Thu, 28 Jan 2016 08:00:40 +0000 (09:00 +0100)]
create firewall dir on ct restore, if it does not exists.

8 years agoupdate changelog
Dietmar Maurer [Wed, 27 Jan 2016 16:15:21 +0000 (17:15 +0100)]
update changelog

8 years agofix PVE::HA use clauses
Thomas Lamprecht [Wed, 27 Jan 2016 13:25:49 +0000 (14:25 +0100)]
fix PVE::HA use clauses

remove to unecessary use clauses and add the PVE2 environment use
clause to the other so that the correct HA resource plugins get
registered

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 years agobump version to 1.0-41
Dietmar Maurer [Wed, 27 Jan 2016 15:43:50 +0000 (16:43 +0100)]
bump version to 1.0-41

8 years agoadded 'acl' and 'ro' mountpoint options
Wolfgang Bumiller [Wed, 27 Jan 2016 10:10:23 +0000 (11:10 +0100)]
added 'acl' and 'ro' mountpoint options

Note that read-only bind mounts are currently not supported.

8 years agolxc.rootfs and lxc.rootfs.options are now invalid
Wolfgang Bumiller [Wed, 27 Jan 2016 10:10:22 +0000 (11:10 +0100)]
lxc.rootfs and lxc.rootfs.options are now invalid

lxc.rootfs has been a conflicting option already but now
lxc.rootfs.options is too

$valid_lxc_conf_keys can now containe an optional warning to
be printed when such a key is used.

8 years agoRemove weird config key entries
Wolfgang Bumiller [Wed, 27 Jan 2016 10:10:21 +0000 (11:10 +0100)]
Remove weird config key entries

8 years agobump version to 1.0-40
Dietmar Maurer [Sat, 23 Jan 2016 07:56:50 +0000 (08:56 +0100)]
bump version to 1.0-40

8 years agocheck sh instead of file for templates architecture type
Thomas Lamprecht [Fri, 22 Jan 2016 17:34:57 +0000 (18:34 +0100)]
check sh instead of file for templates architecture type

/usr/bin/file may not be available, while that has no high
probability we already had bug reports regarding this.

To ensure better compatibility use /bin/sh which every Linux
has (POSIX 1003.1-2004).

See: http://pubs.opengroup.org/onlinepubs/009695399/utilities/sh.html

8 years agoAdd dependency to 'file' package, which we use in src/PVE/LXC/Create.pm
Emmanuel Kasper [Thu, 21 Jan 2016 14:53:09 +0000 (15:53 +0100)]
Add dependency to 'file' package, which we use in src/PVE/LXC/Create.pm

Debian can be installed with the 'Minimal' or the 'Standard' package selection.
'Minimal' debian installations have the package missing.

8 years agoimplement linked clones
Dietmar Maurer [Thu, 21 Jan 2016 10:50:56 +0000 (11:50 +0100)]
implement linked clones

8 years agoRework snapshot config removal logic
Fabian Grünbichler [Wed, 20 Jan 2016 12:14:52 +0000 (13:14 +0100)]
Rework snapshot config removal logic

Correctly update parent relations in config file upon snapshot removal.

Previously, only the parent of the current state was updated/removed,
which led to broken parent relations if any snapshot other then the
immediate parent of the current snapshot was removed. To fix this,
the parent relation of all children snapshots of the removed snapshot
are updated/removed as well.

Based on code in qemu-server/PVE/QemuServer.pm and parts
of a patch by Gerrit Venema <gmoniker at gmail.com>

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
8 years agoDon't hold flock for whole backup operation
Fabian Grünbichler [Tue, 19 Jan 2016 12:47:24 +0000 (13:47 +0100)]
Don't hold flock for whole backup operation

Instead of holding the flock for the whole backup operation,
release it at the end of prepare(), and use
lock_container() to remove a potential 'backup' lock
from the config file when the backup is finished.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
8 years agoUse lock_container when checking locks
Fabian Grünbichler [Tue, 19 Jan 2016 12:47:23 +0000 (13:47 +0100)]
Use lock_container when checking locks

This should prevent race conditions by preventing config
file changes inbetween checking locks and actually doing
the start/stop/.. operation.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
8 years agoFix typo in lxc-checkpoint dump directory
Fabian Grünbichler [Tue, 19 Jan 2016 12:10:51 +0000 (13:10 +0100)]
Fix typo in lxc-checkpoint dump directory

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
8 years agoFix typos in comments, descriptions and messages
Fabian Grünbichler [Tue, 19 Jan 2016 12:10:50 +0000 (13:10 +0100)]
Fix typos in comments, descriptions and messages

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
8 years agobump version to 1.0-39
Dietmar Maurer [Mon, 18 Jan 2016 16:01:51 +0000 (17:01 +0100)]
bump version to 1.0-39

8 years agoadd support for network trunks
Wolfgang Bumiller [Mon, 18 Jan 2016 08:29:53 +0000 (09:29 +0100)]
add support for network trunks

Like in qemu:

allow only 802.1Q packets with vlanid 2,3,4 :
netx: .....,trunks=2,3,4

allow only 802.1Q packets with vlanid 2,3,4 and tag non-802.1Q packets to vlanid 5 :
netx: tag=5,trunks=2,3,4

tag non-802.1Q packets to vlanid 5
netx: tag=5

8 years agobump version to 1.0-38
Dietmar Maurer [Fri, 15 Jan 2016 16:13:49 +0000 (17:13 +0100)]
bump version to 1.0-38

8 years agoCheck lock in lxc-pre-start-hook script as well
Fabian Grünbichler [Fri, 15 Jan 2016 10:40:11 +0000 (11:40 +0100)]
Check lock in lxc-pre-start-hook script as well

Fixes: #847
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
8 years agoCheck lock for pct start, stop, suspend, shutdown
Fabian Grünbichler [Fri, 15 Jan 2016 10:40:10 +0000 (11:40 +0100)]
Check lock for pct start, stop, suspend, shutdown

Correctly error out upon encountering a locked container
when doing pct start, pct stop, pct suspend or pct shutdown

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
8 years agoadd some newlines to improve readability
Dietmar Maurer [Fri, 15 Jan 2016 16:01:46 +0000 (17:01 +0100)]
add some newlines to improve readability

8 years agoSet backup lock during stop and suspend backups
Fabian Grünbichler [Fri, 15 Jan 2016 10:40:09 +0000 (11:40 +0100)]
Set backup lock during stop and suspend backups

Correctly set a 'backup' lock while a 'stop' or 'suspend'
mode backup is in progress.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
8 years agofix mount_all, improve bind mount handling
Dietmar Maurer [Fri, 15 Jan 2016 09:19:50 +0000 (10:19 +0100)]
fix mount_all, improve bind mount handling

8 years agoimplement parse_ct_rootfs
Dietmar Maurer [Fri, 15 Jan 2016 09:14:53 +0000 (10:14 +0100)]
implement parse_ct_rootfs

8 years agoAdd mp to required in pct set mount-point.
Wolfgang Link [Fri, 15 Jan 2016 06:25:08 +0000 (07:25 +0100)]
Add mp to required in pct set mount-point.

If map is not set you get a warning of an empty variable without real information.
And when you try to start the container, it will not start without an explication.

8 years agosnapshot_create: unfreeze after snapshot creation
Dietmar Maurer [Tue, 12 Jan 2016 06:33:13 +0000 (07:33 +0100)]
snapshot_create: unfreeze after snapshot creation

As pointed out by Gerrit Venema. Also make sure to unfreeze in
case of errors (exceptions).

8 years agoallow to create containers on lvmthin storage
Dietmar Maurer [Tue, 12 Jan 2016 06:24:17 +0000 (07:24 +0100)]
allow to create containers on lvmthin storage

8 years agobump version to 1.0-37
Dietmar Maurer [Sun, 10 Jan 2016 14:15:05 +0000 (15:15 +0100)]
bump version to 1.0-37

8 years agocheck for quorum when starting a container
Wolfgang Bumiller [Fri, 8 Jan 2016 13:32:37 +0000 (14:32 +0100)]
check for quorum when starting a container

8 years agovm_stop: make sure the container is stopped using lxc-wait
Dietmar Maurer [Fri, 8 Jan 2016 10:46:21 +0000 (11:46 +0100)]
vm_stop: make sure the container is stopped using lxc-wait

8 years agobump version to 1.0-36
Dietmar Maurer [Tue, 22 Dec 2015 14:49:36 +0000 (15:49 +0100)]
bump version to 1.0-36

8 years agovzdump stop mode: wait until container is stopped
Dietmar Maurer [Tue, 22 Dec 2015 14:48:26 +0000 (15:48 +0100)]
vzdump stop mode: wait until container is stopped

8 years agobump version to 1.0-35
Dietmar Maurer [Fri, 18 Dec 2015 08:10:02 +0000 (09:10 +0100)]
bump version to 1.0-35

8 years agoSetup: order fqdn before hostname in /etc/hosts
Wolfgang Bumiller [Mon, 14 Dec 2015 13:02:18 +0000 (14:02 +0100)]
Setup: order fqdn before hostname in /etc/hosts

Some services seem to require this to lookup the local fqdn.
This only affects /etc/hosts while /etc/hostname still uses
the non-fqdn hostname.

This is also consistent with behavior in 4.0 (before commit
ce289e3c6e).

Fixes #845

8 years agobump version to 1.0-34
Dietmar Maurer [Thu, 17 Dec 2015 11:28:24 +0000 (12:28 +0100)]
bump version to 1.0-34

8 years agoRevert "set memory.kmem.limit_in_bytes"
Dietmar Maurer [Thu, 17 Dec 2015 11:26:25 +0000 (12:26 +0100)]
Revert "set memory.kmem.limit_in_bytes"

This reverts commit d4eeba779e0e77c65b7324f6a48b8e6a7013a870.

ZFS memory is accounted, so users run out of memory this way!

8 years agofix bug #840: vzdump - fix compression command pipe
Wolfgang Bumiller [Wed, 9 Dec 2015 15:30:34 +0000 (16:30 +0100)]
fix bug #840: vzdump - fix compression command pipe

bump version to 1.0-33

$comp is a command string and needs to be split. The set of
possible commands is limited and known so splitting by
/\s+/ (as suggested by Marc Cousin) should be safe enough.

8 years agoimprove some 'implement me' error messages
Wolfgang Bumiller [Mon, 7 Dec 2015 14:12:46 +0000 (15:12 +0100)]
improve some 'implement me' error messages

8 years agobump version to 1.0-32
Dietmar Maurer [Wed, 9 Dec 2015 07:10:52 +0000 (08:10 +0100)]
bump version to 1.0-32

8 years agoRevert "Mounting of zfspool snapshots are not necessary."
Dietmar Maurer [Wed, 9 Dec 2015 06:44:12 +0000 (07:44 +0100)]
Revert "Mounting of zfspool snapshots are not necessary."

This reverts commit 258dad4af068fead7a41ba26e69d6bd5e497a1ff.

For some unknown reason (zfs bug?), accessing .zfs/snapshot/snapname is
not reliable.

8 years agobump version to 1.0-31
Dietmar Maurer [Fri, 4 Dec 2015 15:33:25 +0000 (16:33 +0100)]
bump version to 1.0-31

8 years agoRevert "use the unmount-namespace stop hook"
Wolfgang Bumiller [Fri, 4 Dec 2015 14:10:43 +0000 (15:10 +0100)]
Revert "use the unmount-namespace stop hook"

This reverts commit c0681d663238486cfaeb3a9f81376caa75b94df1.

With some setups this can cause read-only mount options to
be propagated to the host and needs to be investigated
further before being enabled.

8 years agobump version to 1.0-30
Dietmar Maurer [Wed, 2 Dec 2015 10:04:01 +0000 (11:04 +0100)]
bump version to 1.0-30

8 years agoOpenSUSE support added
Wolfgang Bumiller [Tue, 1 Dec 2015 14:53:48 +0000 (15:53 +0100)]
OpenSUSE support added

* Detection via /etc/SuSE-brand
* Currently only supporting version 13.1 (This apparently
ships no systemd-networkd and has no wicked yet.)
* Introduced ct_modify_file_head_portion: Both Redhat and
SuSE have separate route files for network interfaces, but
with a different formats. For consistency the SuSE code also
only changes routes between the BEGIN/END PVE comment lines.
This version also fixes a bug where the route file got
deleted instead of left untouched when no changes were made
(now caught by a testcase).

8 years agocreate: don't skip arch detection on unpack errors
Wolfgang Bumiller [Tue, 1 Dec 2015 13:55:05 +0000 (14:55 +0100)]
create: don't skip arch detection on unpack errors

The -ignore-unpack-errors option needs to be taken into
account in restore_archive instead of restore_and_configure
as restore_archive is also responsible for arch detection.

8 years agobump version to 1.0-29
Dietmar Maurer [Tue, 1 Dec 2015 10:24:55 +0000 (11:24 +0100)]
bump version to 1.0-29

8 years agoadd 'fedora' to ostype schema enum
Wolfgang Bumiller [Tue, 1 Dec 2015 09:56:04 +0000 (10:56 +0100)]
add 'fedora' to ostype schema enum

8 years agoset RELEASE=4.1
Dietmar Maurer [Tue, 1 Dec 2015 09:07:09 +0000 (10:07 +0100)]
set RELEASE=4.1

8 years agobump version to 1.0-28
Dietmar Maurer [Tue, 1 Dec 2015 08:57:04 +0000 (09:57 +0100)]
bump version to 1.0-28

8 years agorenamed lxc.start.unshare to lxc.monitor.unshare
Wolfgang Bumiller [Mon, 30 Nov 2015 12:44:37 +0000 (13:44 +0100)]
renamed lxc.start.unshare to lxc.monitor.unshare

8 years agofix bug #827: Setup: don't replace fqdn with searchdomain in /etc/hosts
Wolfgang Bumiller [Fri, 27 Nov 2015 11:24:03 +0000 (12:24 +0100)]
fix bug #827: Setup: don't replace fqdn with searchdomain in /etc/hosts

8 years agoadded Setup::Fedora
Wolfgang Bumiller [Tue, 24 Nov 2015 08:48:24 +0000 (09:48 +0100)]
added Setup::Fedora

For now only Fedora 22 is tested. The setup routines from
the Redhat base can be kept, so the only difference for now
is the version scheme and 'ostype'.

8 years agoupdate changelog
Dietmar Maurer [Thu, 26 Nov 2015 11:23:13 +0000 (12:23 +0100)]
update changelog

8 years agowarn when trying to delete non-existent options
Wolfgang Bumiller [Wed, 25 Nov 2015 14:25:17 +0000 (15:25 +0100)]
warn when trying to delete non-existent options

Otherwise this runs through the code causing all kinds of
different errors like use of uninitialized values in
peculiar places or format errors trying to validate empty
string or 'missing property' errors trying to parse empty
property strings...

8 years agocreate_disks: don't drop extra parameters
Wolfgang Bumiller [Wed, 25 Nov 2015 14:25:16 +0000 (15:25 +0100)]
create_disks: don't drop extra parameters

When using the 'storage:size' notation to allocate a disk we
only modify the volume id, so it makes sense to just update
this along with the size rather than creating a new hash
which would drop extra parameters such as 'backup=yes'.

8 years agovzdump: exclude lost+found with unprivilged containers
Wolfgang Bumiller [Wed, 25 Nov 2015 14:25:15 +0000 (15:25 +0100)]
vzdump: exclude lost+found with unprivilged containers

The lost+found directory is created by mkfs and fsck with
the absolute numeric owner of 0:0 which causes tar on an
unprivileged container to error when trying to read it, so
it needs to be excluded un-anchored.
This doesn't need to be done for rsync as rsync runs as
privileged root.

8 years agodon't restore mountpoint settings
Wolfgang Bumiller [Wed, 25 Nov 2015 14:25:14 +0000 (15:25 +0100)]
don't restore mountpoint settings

8 years agovzdump: use --anchored on tar
Wolfgang Bumiller [Wed, 25 Nov 2015 14:25:13 +0000 (15:25 +0100)]
vzdump: use --anchored on tar

rsync treats --exclude as anchored when they start with
a slash which they do, and which is our desired behavior,
so we should also include --anchored for our tar command.

8 years agohonor backup=yes/no for bind and device mountpoints
Wolfgang Bumiller [Wed, 25 Nov 2015 14:25:12 +0000 (15:25 +0100)]
honor backup=yes/no for bind and device mountpoints

Initially we skipped bind and device mountpoints because we
didn't start out with a backup property. Now that it is
available it is more appropriate to give control back to the
user. The default is 'off' anyway.

8 years agointroduce internal mountpont 'type' property
Wolfgang Bumiller [Wed, 25 Nov 2015 14:25:11 +0000 (15:25 +0100)]
introduce internal mountpont 'type' property

To avoid having to use the ^/ and ^/dev/ regexes which are
easy to forget about there's now a 'type' property on
mountpoints which classify them via names, for now including
"volume", "bind" and "device".

8 years agoRedhat: handle /etc/sysconfig/network better
Wolfgang Bumiller [Mon, 23 Nov 2015 14:19:13 +0000 (15:19 +0100)]
Redhat: handle /etc/sysconfig/network better

The NETWORKING and NETWORKING_IPV6 variables are now setup
in setup_network instead of set_hostname, which now only
sets the hostname.

This changes the variable order so the testcase had to be
adapted.

Note that the HOSTNAME update s// now uses \h instead of \s
for horizontal spaces so it doesn't eat up newlines at the
end of file (caught by the testcase).

8 years agoRedhat: fix ipv4 dhcp only setup
Wolfgang Bumiller [Mon, 23 Nov 2015 13:26:53 +0000 (14:26 +0100)]
Redhat: fix ipv4 dhcp only setup

With ipv4 dhcp and no ipv6 configuration present $data is
empty and only $bootproto set to dhcp.

8 years agofactor query_loopdev into PVE::LXC
Wolfgang Bumiller [Fri, 20 Nov 2015 13:04:26 +0000 (14:04 +0100)]
factor query_loopdev into PVE::LXC

8 years agobump version to 1.0-27
Dietmar Maurer [Thu, 26 Nov 2015 08:59:54 +0000 (09:59 +0100)]
bump version to 1.0-27

8 years agorestore firwall settings if they exist in tar
Wolfgang Link [Wed, 25 Nov 2015 09:18:18 +0000 (10:18 +0100)]
restore firwall settings if they exist in tar

on LXC restore import firewall settings

8 years agoadd firewall config to vzdump
Wolfgang Link [Wed, 25 Nov 2015 09:18:16 +0000 (10:18 +0100)]
add firewall config to vzdump

it is necessary to copy firewall config first in tmp dir to prevent xattr warnings

8 years agoadd -ignore-unpack-errors
Wolfgang Bumiller [Fri, 20 Nov 2015 15:37:24 +0000 (16:37 +0100)]
add -ignore-unpack-errors

In some cases the user may genuinly want to ignore unpacking
errors. (Like permission denied errors on mknod commands in
some templates where the user might choose to work around
the problem manually in the running container.)

8 years agofixed wrong parameter when force removing a vzdump snapshot
Dirk Nilius [Thu, 19 Nov 2015 12:35:31 +0000 (13:35 +0100)]
fixed wrong parameter when force removing a vzdump snapshot

Signed-off-by: Dirk Nilius <dirk.nilius@ckc.de>
8 years agofix pct resize parameter list
Wolfgang Bumiller [Fri, 20 Nov 2015 13:04:28 +0000 (14:04 +0100)]
fix pct resize parameter list

Resize accidentally used json_config_properties giving it
all the options of pct create (which obviously aren't
required...)

8 years agoerror when failing to extract rather than warn
Wolfgang Bumiller [Fri, 20 Nov 2015 12:39:24 +0000 (13:39 +0100)]
error when failing to extract rather than warn

8 years agoupdate changelog
Dietmar Maurer [Fri, 20 Nov 2015 06:16:23 +0000 (07:16 +0100)]
update changelog

8 years agouse the unmount-namespace stop hook
Wolfgang Bumiller [Thu, 19 Nov 2015 10:56:02 +0000 (11:56 +0100)]
use the unmount-namespace stop hook

8 years agovzdump: warn about lack of xattr/acl support on nfs
Wolfgang Bumiller [Thu, 19 Nov 2015 09:55:48 +0000 (10:55 +0100)]
vzdump: warn about lack of xattr/acl support on nfs

When rsyncing to a temporary location mounted via nfs warn
about the lack of xattr and acl support and disable it.

8 years agoUse lxc.start.unshare and revert "unshare lxc-start ..."
Wolfgang Bumiller [Thu, 19 Nov 2015 09:30:35 +0000 (10:30 +0100)]
Use lxc.start.unshare and revert "unshare lxc-start ..."

This reverts commit 4162edaea3452a3ffba85db95774c3615fb47cff.

This is now controlled by lxc's lxc.start.unshare
configuration option.

8 years agoset memory.kmem.limit_in_bytes
Wolfgang Bumiller [Thu, 19 Nov 2015 09:19:46 +0000 (10:19 +0100)]
set memory.kmem.limit_in_bytes

Memcg/kmem reclaim support has been merged since kernel 4.1,
so it makes sense to include this.

Closes #820

8 years agobump version to 1.0-26
Dietmar Maurer [Thu, 19 Nov 2015 11:43:22 +0000 (12:43 +0100)]
bump version to 1.0-26

8 years agoMounting of zfspool snapshots are not necessary.
Wolfgang Link [Thu, 19 Nov 2015 11:28:21 +0000 (12:28 +0100)]
Mounting of zfspool snapshots are not necessary.

zfs subvol snapshots are allays mounted on $path_of_subvol/.zfs/$snapname

8 years agounprivileged: remove bad chown -R call
Wolfgang Bumiller [Fri, 13 Nov 2015 13:10:51 +0000 (14:10 +0100)]
unprivileged: remove bad chown -R call

This was added before we had bind mounts, instead we now
change ownership when creating disks by passing the
`root_owner` option to mkfs or activating+chown()ing the
paths for subvolumes.

8 years agobump version to 1.0-25
Dietmar Maurer [Sat, 14 Nov 2015 09:29:31 +0000 (10:29 +0100)]
bump version to 1.0-25

8 years agoimprove OS type detection
Dietmar Maurer [Sat, 14 Nov 2015 09:27:10 +0000 (10:27 +0100)]
improve OS type detection

8 years agoremove --totals from COMMON_TAR_FLAGS
Wolfgang Bumiller [Thu, 12 Nov 2015 13:00:29 +0000 (14:00 +0100)]
remove --totals from COMMON_TAR_FLAGS

It's included in the places that execute tar since it's a
flag to modify the status output rather than the data.

8 years agovzdump: userns support
Wolfgang Bumiller [Thu, 12 Nov 2015 13:00:28 +0000 (14:00 +0100)]
vzdump: userns support

8 years agounshare lxc-start into a slave mount namespace
Wolfgang Bumiller [Thu, 12 Nov 2015 13:00:27 +0000 (14:00 +0100)]
unshare lxc-start into a slave mount namespace

The rationale here is simply that if the host can see all
the mounts, then any program on the host entering a new
mount namespace can keep the mountpoints active.
This can potentially lead to hard-to-track problems with
multiple mount protection or NFS storages not syncing to the
end when stop-migrating a container to another node.

8 years agoadded the unprivileged flag
Wolfgang Bumiller [Thu, 12 Nov 2015 13:00:26 +0000 (14:00 +0100)]
added the unprivileged flag

This flag (like lxc.id_map entries) should only be set at
create-time in order to make sure the container's filesystem
has the correct ownerships and permissions.
For this reason modification is not allowed via the API.

An unprivileged containers defines lxc.id_map properties,
and includes $ostype.userns.conf in addition to
$ostype.common.conf in its lxc config.

8 years agoLXC::Setup: id_map support for file wrappers
Wolfgang Bumiller [Thu, 12 Nov 2015 13:00:25 +0000 (14:00 +0100)]
LXC::Setup: id_map support for file wrappers

when an id_map is configured for the container or the
unprivileged flag set (which implies the default userid
map), the file access wrappers (LXC::Setup::Plugin::ct_*
functions) will use the id_map to fixup ownership of created
files.