]>
git.proxmox.com Git - pve-container.git/log
Thomas Lamprecht [Thu, 9 Jul 2020 11:46:12 +0000 (13:46 +0200)]
bump version to 3.1-9
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Oguz Bektas [Thu, 2 Jul 2020 12:49:11 +0000 (14:49 +0200)]
fix #1423: add timezone config option
optionally enabled.
adds the 'timezone' option to config, which takes a valid timezone (i.e.
Europe/Vienna) to set in the container.
if nothing is selected, then it will show as 'container managed' in
GUI, and nothing will be done.
if set to 'host', the /etc/localtime symlink from the host node will be
cached and set in the container rootfs.
Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
Thomas Lamprecht [Wed, 24 Jun 2020 09:12:32 +0000 (11:12 +0200)]
add reason for mp backup exclusion
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 24 Jun 2020 09:11:38 +0000 (11:11 +0200)]
followup variable name and empty line cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Aaron Lauterer [Mon, 22 Jun 2020 14:34:38 +0000 (16:34 +0200)]
vzdump: move include logic for mountpoints to method
Move the logic which mountpoints are included in the backup job to its
own method and adapt the VZDump code accordingly. This makes it possible
to develop other features around backup jobs.
Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Aaron Lauterer [Mon, 22 Jun 2020 14:34:37 +0000 (16:34 +0200)]
vzdump: add reason for mountpoint backup inclusion
Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Oguz Bektas [Thu, 18 Jun 2020 14:42:55 +0000 (16:42 +0200)]
fix #2778: use vm_start instead of systemctl to start/restart container
when a backup task in 'stop' mode is executed, VZDump calls 'start_vm'
sub instead of 'PVE::LXC::vm_start'.
'start_vm' however does not follow our regular process but instead uses
systemctl to start the container, which results in the guest hookscripts
not being executed in 'pre-start' and 'post-start'.
to call the hooks correctly we can just make use of the
PVE::LXC::vm_start routine which already handles them.
Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
Thomas Lamprecht [Mon, 8 Jun 2020 15:40:26 +0000 (17:40 +0200)]
bump version to 3.1-8
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Thu, 4 Jun 2020 12:25:47 +0000 (14:25 +0200)]
lxcnetaddbr: do not use depreacated method
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Arnout Engelen [Thu, 28 May 2020 20:18:46 +0000 (20:18 +0000)]
lxc: fall back to 'unmanaged' when no OS detected
This is useful when the uploaded CT does not contain a full OS. When the
autodetection detects an OS, that OS is returned. When it does not
successfully detect a supported OS, but /etc/os-release exists and has an ID
other than 'unmanaged', then the setup fails.
Signed-off-by: Arnout Engelen <arnout@bzzt.net>
Thomas Lamprecht [Thu, 28 May 2020 13:28:24 +0000 (15:28 +0200)]
bump version to 3.1-7
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 26 May 2020 09:04:44 +0000 (11:04 +0200)]
followup comment cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Oguz Bektas [Mon, 25 May 2020 12:32:13 +0000 (14:32 +0200)]
fix #2655: don't forget to setup securetty for centos >= 7
in template_fixup we only call this method for version < 7, but greater
versions also need to allow lxc/tty[N] as secure.
Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
Thomas Lamprecht [Thu, 21 May 2020 17:10:27 +0000 (19:10 +0200)]
setup: Fedora: print which version was detected in error message
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 15 May 2020 14:21:40 +0000 (16:21 +0200)]
bump version to 3.1-6
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Wolfgang Bumiller [Fri, 15 May 2020 13:53:22 +0000 (15:53 +0200)]
cgroup: don't dup cgroup.events and don't busy-loop
Events are reported via POLLPRI and POLLERR (priority and
exception flags), not POLLIN (which causes a busy-loop).
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Thomas Lamprecht [Fri, 15 May 2020 13:41:20 +0000 (15:41 +0200)]
LXC: separate freeze_thaw to explicit freeze and thaw methods
as else one needs to always lookup parameter value means freeze and
which one thaw when reading call sites what
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Wolfgang Bumiller [Fri, 15 May 2020 09:08:42 +0000 (11:08 +0200)]
stop using lxc-freeze/unfreeze binaries
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 15 May 2020 09:08:41 +0000 (11:08 +0200)]
add PVE::LXC::freeze_thaw
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 15 May 2020 09:08:40 +0000 (11:08 +0200)]
cgroup: add freeze_thaw implementation
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 15 May 2020 09:08:39 +0000 (11:08 +0200)]
cgroup: some fixups & use limiting cgroup path
Fix cpu quota/shares using the wrong controller path, and
use the outer path to apply hotplugged changes.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 15 May 2020 09:08:38 +0000 (11:08 +0200)]
cgroup: factor out cgroupv2_base_path
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 15 May 2020 09:08:37 +0000 (11:08 +0200)]
get_cgroup_path: add fallback for lxc 3
Fixes some hotplug issues with containers still running
lxc 3.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 15 May 2020 09:08:36 +0000 (11:08 +0200)]
commands: add freeze and unfreeze
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Thomas Lamprecht [Thu, 7 May 2020 19:54:55 +0000 (21:54 +0200)]
bump version to 3.1-5
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Fabian Grünbichler [Wed, 6 May 2020 08:57:51 +0000 (10:57 +0200)]
vzdump: use new 'pbs' option
instead of storage config to determine whether we are in 'PBS mode'
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Tue, 5 May 2020 09:24:02 +0000 (11:24 +0200)]
bump version to 3.1-4
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Tue, 5 May 2020 09:22:52 +0000 (11:22 +0200)]
d/control: depend on newer libpve-guest-common-perl
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Tue, 5 May 2020 08:27:20 +0000 (10:27 +0200)]
api/destroy: repeat early checks after locking
and check_lock before forking as well
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Tested-by: Fabian Ebner <f.ebner@proxmox.com>
Fabian Ebner [Tue, 5 May 2020 08:27:15 +0000 (10:27 +0200)]
create_vm: avoid premature write_config caused by update_pct_config
by moving the write_config calls from vmconfig_*_pending to their
call sites. The single other call site for update_pct_config in
update_vm is also adapted.
The update_pct_config call lead to a write_config call and so the
configuration file was created before it was intended to be created.
When the CFS is updated in between the write_config call and the
PVE::Cluster::check_vmid_unused call in create_and_lock_config,
the container file would already exist and so creation would
fail after writing out a basically empty config.
Even worse, a race was possible for two containers created with the
same ID at the same time:
Assuming the initial PVE::Cluster::check_vmid_unused check in the
parameter verification passes for both create_vm calls, the later one
would potentially overwrite the earlier configuration file with its
update_pct_config call.
Additionally, the file read for $old_config was always the one written
by update_pct_config. Meaning that for a create_vm call with force=1,
already existing old volumes were not removed.
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Fabian Grünbichler [Tue, 5 May 2020 08:27:14 +0000 (10:27 +0200)]
LXC: drop unused imported locking functions
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Tested-by: Fabian Ebner <f.ebner@proxmox.com>
Alwin Antreich [Tue, 28 Apr 2020 13:58:10 +0000 (15:58 +0200)]
Fix: #2124 add zstd
Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
Wolfgang Bumiller [Wed, 29 Apr 2020 09:33:25 +0000 (11:33 +0200)]
bump version to 3.1-3
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 9 Apr 2020 11:28:39 +0000 (13:28 +0200)]
cgroup: use version returned from get_path()
Instead of deciding via `cgroup_mode()` use the version we
get from get_path().
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 9 Apr 2020 11:28:38 +0000 (13:28 +0200)]
support cpuset cgroupv2 controller
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 9 Apr 2020 11:28:37 +0000 (13:28 +0200)]
cgroup: more generic get_cgroup_controllers function
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Wolfgang Bumiller [Thu, 9 Apr 2020 11:28:36 +0000 (13:28 +0200)]
consider lxc.cgroup2.cpuset.cpus as explicit cpuset
We should not override it in either case.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 9 Apr 2020 11:28:35 +0000 (13:28 +0200)]
config: whitelist lxc.cgroup2 raw keys
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Thomas Lamprecht [Sat, 25 Apr 2020 15:44:19 +0000 (17:44 +0200)]
api/destroy: add force to allow destroying running CT
Convenient and naturally opt-in
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Sat, 25 Apr 2020 15:35:08 +0000 (17:35 +0200)]
api/destroy: improve description for purge param
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Sat, 25 Apr 2020 15:34:35 +0000 (17:34 +0200)]
pct: reorder CLI definitions
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Stoiko Ivanov [Wed, 22 Apr 2020 09:24:27 +0000 (11:24 +0200)]
CentOS 6: add '--nohangup' as mingetty arg
When creating an unprivileged container with CentOS 6 (which will be EOL in
Nov 2020 [0]) the console does not work.
The problem is mitigated by adding the --nohangup argument to the mingetty
invocations during bootup (in /etc/init/tty.conf).
The idea for the fix is based on the legacy template builder-scripts from
lxc:
https://github.com/lxc/lxc-templates/blob/master/templates/lxc-centos.in#L308
Since '/etc/init/tty.conf' is only written during container creation/restore
and since it is guarded to CentOS versions < 7, the potential for regression
should be rather small.
Tested by creating an unprivileged and a privileged CentOS6 container and
with nesting enabled and disabled for both - the console showed up in
all cases with this fix.
[0] https://wiki.centos.org/About/Product
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Fabian Ebner [Mon, 20 Apr 2020 11:12:28 +0000 (13:12 +0200)]
Fix move_volume by using result from parse_volume
This was changed by accident by my refactoring in
commit
e4034859fd0e3491fd1aefb4f9ef44ee585aa404
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Fabian Ebner [Tue, 14 Apr 2020 12:02:18 +0000 (14:02 +0200)]
Also free unused volumes owned by a container on removal
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Fabian Ebner [Tue, 14 Apr 2020 12:02:17 +0000 (14:02 +0200)]
Fix parse_volume for unused volumes
by extending the description. Also fixes the relevant for loop to
iterate over MAX_UNUSED_DISKS instead of MAX_MOUNT_POINTS.
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Fabian Grünbichler [Thu, 9 Apr 2020 06:50:58 +0000 (08:50 +0200)]
bump version to 3.1-2
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Thu, 9 Apr 2020 06:49:44 +0000 (08:49 +0200)]
d/control: depend on pve-storage with new storage_migrate
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Wed, 8 Apr 2020 20:58:04 +0000 (22:58 +0200)]
config: make full parser private sub
it's now only used within the public parse_volume interface
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Ebner [Wed, 8 Apr 2020 09:25:02 +0000 (11:25 +0200)]
Use new storage_migrate interface
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Fabian Ebner [Wed, 8 Apr 2020 09:24:58 +0000 (11:24 +0200)]
Use parse_volume instead of parse_ct-variants
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Fabian Ebner [Wed, 8 Apr 2020 09:24:57 +0000 (11:24 +0200)]
Use foreach_volume instead of foreach_mountpoint-variants
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Wolfgang Bumiller [Mon, 6 Apr 2020 12:24:19 +0000 (14:24 +0200)]
bump version to 3.1-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 6 Apr 2020 07:50:46 +0000 (09:50 +0200)]
command: get_cgroup_path: handle undef subsystem
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 6 Apr 2020 07:50:45 +0000 (09:50 +0200)]
command: actually use the provided command id
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 6 Apr 2020 07:50:44 +0000 (09:50 +0200)]
cgroup cleanup: add missing lxc.monitor cleanup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 6 Apr 2020 07:50:43 +0000 (09:50 +0200)]
command: cleanup unused function
We used a $limiting parameter instead.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 6 Apr 2020 07:50:42 +0000 (09:50 +0200)]
use final names for cgroup isolation
See: https://github.com/lxc/lxc/pull/3353
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Thomas Lamprecht [Sat, 4 Apr 2020 18:04:00 +0000 (20:04 +0200)]
followup: fix some comment typos
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Sat, 4 Apr 2020 17:57:07 +0000 (19:57 +0200)]
d/control: bump versioned dependency for libpve-common-perl
for the newer cpuset/cgroupv2 adaptions and refactoring.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Wolfgang Bumiller [Fri, 3 Apr 2020 14:37:40 +0000 (16:37 +0200)]
cleanup cgroups in pre-start hook
Though I wish perl had an fdopendir equivalent...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 3 Apr 2020 14:37:39 +0000 (16:37 +0200)]
handle cgroup related changes of lxc-4.0
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 3 Apr 2020 14:37:38 +0000 (16:37 +0200)]
pve-container@.service: switch to foreground mode
And use StandardOutput/Error=null, so we can use
`Type=simple`. Because using `Type=forking` has become more
difficult with systemd & upstream lxc's cgroup layout
changes. This seems to be the path of least resistance.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 3 Apr 2020 14:37:37 +0000 (16:37 +0200)]
add upscript (lxcnetaddbr) to container lxc config
This used to be a patch on top of lxc, now we just configure
it explicitly here to reduce the patch load.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 3 Apr 2020 14:37:36 +0000 (16:37 +0200)]
add helper to get the lxc version
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 3 Apr 2020 14:37:35 +0000 (16:37 +0200)]
cleanup unused functions
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 3 Apr 2020 14:37:34 +0000 (16:37 +0200)]
use CGroup::change_cpu_{shares, quota}
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 3 Apr 2020 14:37:33 +0000 (16:37 +0200)]
cgroup: add change_cpu_quota, change_cpu_shares
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 3 Apr 2020 14:37:32 +0000 (16:37 +0200)]
use CGroup::change_memory_limit
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 3 Apr 2020 14:37:31 +0000 (16:37 +0200)]
cgroup: add change_memory_limit
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 3 Apr 2020 14:37:30 +0000 (16:37 +0200)]
use CGroup::get_memory_stat
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 3 Apr 2020 14:37:29 +0000 (16:37 +0200)]
cgroup: add get_memory_stat
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 3 Apr 2020 14:37:28 +0000 (16:37 +0200)]
use CGroup::get_cpu_stat
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 3 Apr 2020 14:37:27 +0000 (16:37 +0200)]
cgroup: add get_cpu_stat
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 3 Apr 2020 14:37:26 +0000 (16:37 +0200)]
use CGroup::get_io_stats
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 3 Apr 2020 14:37:25 +0000 (16:37 +0200)]
cgroup: add get_io_stats and parse_nested_keyed_file
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 3 Apr 2020 14:37:24 +0000 (16:37 +0200)]
update_lxc_config: cgroupv2 support
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 3 Apr 2020 14:37:23 +0000 (16:37 +0200)]
pct: use CGroup submodule and new CpuSet methods
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 3 Apr 2020 14:37:22 +0000 (16:37 +0200)]
add PVE::LXC::{CGroup, Command} submodules
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 3 Apr 2020 14:37:21 +0000 (16:37 +0200)]
add Delegate flag to pve-container@.service
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Fabian Grünbichler [Mon, 30 Mar 2020 07:36:07 +0000 (09:36 +0200)]
bump version to 3.0-12
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Ebner [Thu, 26 Mar 2020 08:09:39 +0000 (09:09 +0100)]
Implement volume-related helpers and use new foreach_volume
Renames mountpoint_names to avoid the need to create a wrapper.
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Fabian Grünbichler [Fri, 27 Mar 2020 08:59:17 +0000 (09:59 +0100)]
VZDump: mark template disks as ro
since immutable .raw base volumes cannot be mounted RW.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Ebner [Mon, 23 Mar 2020 11:18:54 +0000 (12:18 +0100)]
move_volume: if deleting old volume fails, add it as unused
Especially useful when there are linked clones using the volume
that is being moved, but shouldn't hurt otherwise either.
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Fabian Ebner [Mon, 23 Mar 2020 11:18:53 +0000 (12:18 +0100)]
fix #1904: convert to base image when moving a volume of a template
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Fabian Ebner [Mon, 23 Mar 2020 11:18:52 +0000 (12:18 +0100)]
Rely on template_create to check whether creating a template is possible
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Fabian Ebner [Mon, 23 Mar 2020 11:18:51 +0000 (12:18 +0100)]
For clone+copy features, make sure a valid format for the target is supported
using the new option valid_target_formats. This is
necessary, because clone_image can result in a qcow2 image
being created (on directory based storages) which is not
valid for LXC.
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Thomas Lamprecht [Thu, 19 Mar 2020 18:02:54 +0000 (19:02 +0100)]
bump version to 3.0-23
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 18 Mar 2020 09:46:17 +0000 (10:46 +0100)]
lxc_config: mount /sys as mixed for unprivileged by default
CONTAINER_INTERFACE[0] is something systemd people call their API and
we need to adapt to it a bit, even if it means doing stupid
unnecessary things, as else systemd decides to regress and suddenly
break network stack in CT after an upgrade[1].
This mounts the parent /sys as mixed, which is:
> mount /sys as read-only but with /sys/devices/virtual/net writable.
-- man 5 lxc.container.conf
Allow users to overwrite that with a features knob, as surely some
run into other issues else and manually adding a "lxc.mount.auto"
entry in the container .conf is not an nice user experience for most.
Fixes the system regression in up to date Arch installations
introduced by[2].
[0]: https://systemd.io/CONTAINER_INTERFACE/
[1]: https://github.com/systemd/systemd/issues/15101#issuecomment-
598607582
[2]: https://github.com/systemd/systemd/commit/
bf331d87171b7750d1c72ab0b140a240c0cf32c3
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Thomas Lamprecht [Mon, 16 Mar 2020 08:09:49 +0000 (09:09 +0100)]
bump version to 3.0-22
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Fabian Grünbichler [Mon, 16 Mar 2020 07:52:46 +0000 (08:52 +0100)]
allow restoring non-volume backups again
this got broken with PBS integration patches
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Thomas Lamprecht [Thu, 12 Mar 2020 12:40:57 +0000 (13:40 +0100)]
setup: warn on unknown os-release ID
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Thu, 12 Mar 2020 12:15:53 +0000 (13:15 +0100)]
fix #2580: api/delete: drop CT from HA resources if purge is set
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 10 Mar 2020 18:40:16 +0000 (19:40 +0100)]
followup whitespace and style fixes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Alexandre Derumier [Mon, 9 Mar 2020 09:24:30 +0000 (10:24 +0100)]
lxc: add sdn veth_create|plug
Thomas Lamprecht [Tue, 10 Mar 2020 13:31:18 +0000 (14:31 +0100)]
d/control: bump versioned dependency for libpve-guest-common-perl (>= 3.0-4)
For the moved definedness-safe comparison methods
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 10 Mar 2020 13:30:13 +0000 (14:30 +0100)]
followup: do not import unused methods~
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Oguz Bektas [Wed, 19 Feb 2020 16:07:57 +0000 (17:07 +0100)]
use helper functions from GuestHelpers
remove safe_string_ne and safe_num_ne code which is now shared in
GuestHelpers. also change all the calls.
Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
Fabian Ebner [Tue, 18 Feb 2020 11:31:22 +0000 (12:31 +0100)]
Fix mounting ZFS snapshots whose dataset is not mounted below '/'
Trying to back up a container with a ZFS dataset with non-standard mount
would fail, see [0].
This also removes the near-dead code
$name .= "\@$snapname";
when snapname is false-y, but defined and turns
the check for $snapname into one for definedness.
[0]: https://forum.proxmox.com/threads/lxc-backup-fails-unable-to-open-the-dataset-vzdump.64944/
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Thomas Lamprecht [Tue, 3 Mar 2020 11:00:57 +0000 (12:00 +0100)]
bump version to 3.0-21
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Stefan Reiter [Tue, 25 Feb 2020 15:32:02 +0000 (16:32 +0100)]
fix #2611: use correct operation in get_bandwidth_limit
Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>