]>
git.proxmox.com Git - pve-container.git/log
Dietmar Maurer [Thu, 6 Aug 2015 09:28:49 +0000 (11:28 +0200)]
bump version to 0.9-8
Dietmar Maurer [Thu, 6 Aug 2015 09:12:54 +0000 (11:12 +0200)]
adopt snaptshot implementation for new config format
Dietmar Maurer [Tue, 4 Aug 2015 09:29:00 +0000 (11:29 +0200)]
use our own configuration format for containers
Dietmar Maurer [Fri, 31 Jul 2015 10:20:31 +0000 (12:20 +0200)]
bump version to 0.9-7
Wolfgang Link [Fri, 31 Jul 2015 09:47:40 +0000 (11:47 +0200)]
Fix warning if restore from OpenVZ
Wolfgang Link [Fri, 31 Jul 2015 09:47:39 +0000 (11:47 +0200)]
Fix disksize assign size when recover
Wolfgang Link [Fri, 31 Jul 2015 09:47:38 +0000 (11:47 +0200)]
Fix assign function to correct module
Dietmar Maurer [Fri, 31 Jul 2015 09:10:04 +0000 (11:10 +0200)]
bump version to 0.9-6
Wolfgang Link [Fri, 31 Jul 2015 06:25:43 +0000 (08:25 +0200)]
Remove snapshots from LXC config, when you create LXC Backup
Dietmar Maurer [Fri, 31 Jul 2015 08:25:46 +0000 (10:25 +0200)]
cleanup recover_config
Dietmar Maurer [Fri, 31 Jul 2015 07:29:55 +0000 (09:29 +0200)]
cleanup: move OpenVZ to LXC hint into convert_ovz()
Dietmar Maurer [Fri, 31 Jul 2015 07:16:35 +0000 (09:16 +0200)]
restore: do not overwrite network device names
Dietmar Maurer [Fri, 31 Jul 2015 07:09:48 +0000 (09:09 +0200)]
cleanup: use //= operator
Dietmar Maurer [Fri, 31 Jul 2015 07:01:23 +0000 (09:01 +0200)]
cleanup: remove unused code
Dietmar Maurer [Fri, 31 Jul 2015 07:00:25 +0000 (09:00 +0200)]
cleanup: new helper lxc_config_change_vmid()
Wolfgang Link [Thu, 30 Jul 2015 11:45:09 +0000 (13:45 +0200)]
Insert capability for restore LXC- and OpenVZ- dumpfiles
this patch recovers the config form the tarball.
It will nt recover the nework setting if you recover from OVZ
Wolfgang Bumiller [Thu, 30 Jul 2015 11:06:36 +0000 (13:06 +0200)]
no need to expect an auto method for ipv4
Dietmar Maurer [Thu, 30 Jul 2015 10:20:08 +0000 (12:20 +0200)]
use ./ prefix for all files inside tar archive
Wolfgang Link [Tue, 28 Jul 2015 14:05:07 +0000 (16:05 +0200)]
improve creation of LXC archive
when create a archive the container config will be the fist file in archive.
This is useful if we recover the archive.
Wolfgang Bumiller [Thu, 30 Jul 2015 08:54:01 +0000 (10:54 +0200)]
fix ipv4 replacement of running containers
While the previous strategy was enough for ipv6, ipv4 has
the concept of primary and secondary addresses (and
permanent, deprecated, ...), and so adding additional ip
addresses marked them as 'secondary'. The side effect of
this is that deleting the primary ip deletes all other ip
addresses within the same subnet. To avoid this we need to
temporarily set /proc/sys/net/ipv4/conf/promote_secondaries
to 1 before deleting the old IP address.
Wolfgang Bumiller [Thu, 30 Jul 2015 08:54:00 +0000 (10:54 +0200)]
Debian/RedHat: ipv6 slaac/autoconf support
Wolfgang Bumiller [Thu, 30 Jul 2015 08:53:59 +0000 (10:53 +0200)]
don't try to add 'dhcp' or 'auto' as ip addresses
The live ip address updating of running containers needs to
deal with dhcp and slaac settings by not trying to add these
keywords as ip addresses via the ip command.
(And fixing a typo...)
Wolfgang Bumiller [Wed, 29 Jul 2015 14:33:20 +0000 (16:33 +0200)]
fix memory and swap size calculations
memory.limit_in_bytes limits memory usage, however
memory.memsw.limit_in_bytes limits the *sum* of swap+memory
which means we cannot separately change memory and swap
in update_lxc_config as in order to keep the swap size
unchanged when changing the memory value, the "total" value
has to be recalculated.
Also fixing vmstatus' return value which only returned the
sum in maxmem and left maxswap unset, which strangely
defaults to 512 on the UI side, causing wrong numbers to be
displayed to the user.
Fixes #671
Wolfgang Bumiller [Wed, 29 Jul 2015 14:33:19 +0000 (16:33 +0200)]
Fix leftover OpenVZ call in lxc api
Dietmar Maurer [Mon, 27 Jul 2015 07:39:10 +0000 (09:39 +0200)]
bump version to 0.9-5
Thomas Lamprecht [Tue, 21 Jul 2015 08:06:53 +0000 (10:06 +0200)]
Fixed hardcoded LXC container architecture detection
Execute '/usr/bin/file -b -L /usr/bin/file' in the container to extract
architecture information. Falls back to amd64 on failure and notifies
the user. Assumes that the file command is available and we're on a x86
(32 or 64bit) linux system.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Dietmar Maurer [Fri, 24 Jul 2015 11:12:36 +0000 (13:12 +0200)]
bump version to 0.9-4
Wolfgang Bumiller [Fri, 24 Jul 2015 07:14:58 +0000 (09:14 +0200)]
allow configuring lxc.seccomp
Wolfgang Bumiller [Fri, 24 Jul 2015 07:14:57 +0000 (09:14 +0200)]
redhat setup: dhcp, manual and unmanaged network
Redhat apparently has no single-file config option to use
dhcp for ipv4 while using static ipv6 addresses, if ipv4 and
ipv6 are both configured we add a :0 alias with the second
config. This way all combinations should work.
Wolfgang Bumiller [Fri, 24 Jul 2015 07:14:56 +0000 (09:14 +0200)]
debian setup: dhcp, manual and unmanaged network
Wolfgang Bumiller [Fri, 24 Jul 2015 07:14:55 +0000 (09:14 +0200)]
get_primary_ips: take dhcp/manual settings into account
Wolfgang Bumiller [Fri, 24 Jul 2015 07:14:54 +0000 (09:14 +0200)]
LXCSetup::Debian: style fix & removed unused vars
Wolfgang Bumiller [Fri, 24 Jul 2015 07:14:53 +0000 (09:14 +0200)]
LXC::get_primary_ips: fix ip/ip6 mixup
Dietmar Maurer [Fri, 24 Jul 2015 07:49:08 +0000 (09:49 +0200)]
parse_lxc_config: cleanup parser
snap.pve.snapname starts new isnapshot sections now (instead of empty lines)
Dietmar Maurer [Fri, 24 Jul 2015 06:32:58 +0000 (08:32 +0200)]
use check_lock with start/update/destroy
Dietmar Maurer [Fri, 24 Jul 2015 05:29:11 +0000 (07:29 +0200)]
snapshot_rollback: directly call lxc-stop
Wolfgang Link [Fri, 17 Jul 2015 07:26:51 +0000 (09:26 +0200)]
Complete the snapshot API2
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
Wolfgang Link [Fri, 17 Jul 2015 07:26:50 +0000 (09:26 +0200)]
Add rollback functionality
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
Wolfgang Link [Fri, 17 Jul 2015 07:26:48 +0000 (09:26 +0200)]
Add snapshot rollback to API2
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
Wolfgang Link [Fri, 17 Jul 2015 07:26:47 +0000 (09:26 +0200)]
Add delsnap functionality
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
Wolfgang Link [Fri, 17 Jul 2015 07:26:46 +0000 (09:26 +0200)]
Add delsnapshot to LXC API2
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
Wolfgang Link [Fri, 17 Jul 2015 07:26:45 +0000 (09:26 +0200)]
Add snapshot functionality on zfs to lxc
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
Wolfgang Link [Fri, 17 Jul 2015 07:26:44 +0000 (09:26 +0200)]
Add snapshot to LXC API2
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
Dietmar Maurer [Thu, 23 Jul 2015 10:12:12 +0000 (12:12 +0200)]
cleanup write_lxc_config
Wolfgang Link [Fri, 17 Jul 2015 07:26:43 +0000 (09:26 +0200)]
Extend lxc config with options for snapshot
now it is possible to add sanpshots to the config.
The snapshot include all config information what are set at the snapshot.
So if you make a rolback all settings will restored
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
Dietmar Maurer [Fri, 3 Jul 2015 04:41:36 +0000 (06:41 +0200)]
bump version to 0.9-3
Dietmar Maurer [Fri, 3 Jul 2015 04:35:46 +0000 (06:35 +0200)]
add test case for debian 6
Dietmar Maurer [Fri, 3 Jul 2015 04:34:10 +0000 (06:34 +0200)]
fix tty setup for debian6
Dietmar Maurer [Fri, 3 Jul 2015 04:21:15 +0000 (06:21 +0200)]
fix version parser for debian
Dietmar Maurer [Thu, 2 Jul 2015 05:49:27 +0000 (07:49 +0200)]
$change_ip_config: only pass one parameter called ipversion
Wolfgang Bumiller [Wed, 1 Jul 2015 10:58:17 +0000 (12:58 +0200)]
LXC: more compact network configuration
Deduplicated network setup code.
Using 'ip route replace' to replace or add the route.
This strategy can be rolled back safely:
1) add new ip (no harm done, old ip still exists)
2) replace route
on error:
Delete the new ip, old one is still in place.
If deleting the new ip fails, it was already modified
from within the container, so we only warn about it.
on success do (3):
3) delete old ip
New IP + gateway are in place, old IP can be deleted.
If deletion fails, we only warn like in the error case.
Dietmar Maurer [Wed, 1 Jul 2015 09:03:57 +0000 (11:03 +0200)]
bump version to 0.9-2
Dietmar Maurer [Wed, 1 Jul 2015 09:02:56 +0000 (11:02 +0200)]
correctly set password change time
Wolfgang Bumiller [Tue, 30 Jun 2015 11:47:52 +0000 (13:47 +0200)]
LXCSetup::Redhat: ipv6 config
According to their documentation both of these variables
take an IP[/prefix] notation, the gateway even has an
optional '%iface' suffix. So it should be possible to simply
take over the value content from the configuration directly.
Wolfgang Bumiller [Tue, 30 Jun 2015 11:47:51 +0000 (13:47 +0200)]
LXCSetup::Debian: ipv6 + naming consistency
Implemented the 'implement me' code and changed v4* and v6*
variable names to be consistent to the way they're named in
qemu-server: eg address and address6 vs v4address and
v6address.
Dietmar Maurer [Tue, 30 Jun 2015 08:16:21 +0000 (10:16 +0200)]
add missing }
Dietmar Maurer [Tue, 30 Jun 2015 07:17:34 +0000 (09:17 +0200)]
ip hotplug: ignore errors for del
And remove default route before we change the ip
Dietmar Maurer [Tue, 30 Jun 2015 06:03:34 +0000 (08:03 +0200)]
white space cleanups
Dietmar Maurer [Tue, 30 Jun 2015 04:48:44 +0000 (06:48 +0200)]
find_lxc_pid: cleanup regex, raise exception
Alexandre Derumier [Mon, 29 Jun 2015 16:36:44 +0000 (18:36 +0200)]
fix hotplug ip configuration V4
changelog:
V2: find lxc pid from /proc/
V3: fix parse_lxc_network (name is mandatory, bridge optionnal)
V4: revert find_lxc_pid
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Dietmar Maurer [Tue, 30 Jun 2015 04:28:38 +0000 (06:28 +0200)]
add support for Ubuntu 14.04 and 12.04
Dietmar Maurer [Mon, 29 Jun 2015 10:40:20 +0000 (12:40 +0200)]
bump version to 0.9-1
Dietmar Maurer [Mon, 29 Jun 2015 10:35:57 +0000 (12:35 +0200)]
correctly untaint crontab filenames
Dietmar Maurer [Mon, 29 Jun 2015 08:48:32 +0000 (10:48 +0200)]
new rewrite_ssh_host_keys hook
I want to reuse that in future for clone.
Dietmar Maurer [Mon, 29 Jun 2015 08:42:23 +0000 (10:42 +0200)]
avoid warning about undefined values
Dietmar Maurer [Sat, 27 Jun 2015 13:57:49 +0000 (15:57 +0200)]
add a link to backup my claim
Alexandre Derumier [Thu, 25 Jun 2015 05:06:43 +0000 (07:06 +0200)]
add hotplug ip configuration
fixme:
-ip removal
-ipv6 support
-permanent guest file write config ?
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Thu, 25 Jun 2015 05:06:41 +0000 (07:06 +0200)]
add net hotplug
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Thu, 25 Jun 2015 05:06:39 +0000 (07:06 +0200)]
add net hot-unplug
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Dietmar Maurer [Wed, 24 Jun 2015 11:34:59 +0000 (13:34 +0200)]
add support for Ubuntu 15.04
Dietmar Maurer [Wed, 24 Jun 2015 04:42:16 +0000 (06:42 +0200)]
bump version to 0.8-1
Dietmar Maurer [Wed, 24 Jun 2015 04:38:48 +0000 (06:38 +0200)]
only use lxc-pve-mount-hook for containers on /etc/pve/lxc
That way it is still possible to create arbitrary named container with
low level lxc-create tools.
Dietmar Maurer [Mon, 22 Jun 2015 09:49:37 +0000 (11:49 +0200)]
code cleanup
Alexandre Derumier [Mon, 22 Jun 2015 09:22:20 +0000 (11:22 +0200)]
enable lxc hotplug
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
w.link@proxmox.com [Mon, 22 Jun 2015 08:34:44 +0000 (10:34 +0200)]
Extent man description for network settings
There was no source expect the sourcecode, where the user can see the possible options.
Signed-off-by: w.link@proxmox.com <Wolfgang Link>
w.link@proxmox.com [Mon, 22 Jun 2015 08:34:43 +0000 (10:34 +0200)]
correct typo
Signed-off-by: w.link@proxmox.com <Wolfgang Link>
Alexandre Derumier [Sun, 21 Jun 2015 11:06:27 +0000 (13:06 +0200)]
lxc : vmstatus : add disk read|write stats
using cgroup blkio.throttle.io_service_bytes
They are also another cgroup blkio.io_service_bytes,
but it's only work with cfq io scheduler.
blkio.throttle.io_service_bytes works with any io scheduler
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Sat, 20 Jun 2015 12:13:36 +0000 (14:13 +0200)]
lxc: add hotplug memory && cpus cgroups value
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Dietmar Maurer [Wed, 3 Jun 2015 05:56:25 +0000 (07:56 +0200)]
allow lxc.cgroup.devices.deny settings in lxc config
Dietmar Maurer [Wed, 3 Jun 2015 04:15:17 +0000 (06:15 +0200)]
Revert "lxc-start does not close all FDs, so we cannot use run_command"
This reverts commit
c870574c4ff841b6c1df60a1826c36d08113c6ae .
Because lxc upstream fixed that bug.
Dietmar Maurer [Tue, 2 Jun 2015 13:33:30 +0000 (15:33 +0200)]
use float for cpulimit
Dietmar Maurer [Tue, 2 Jun 2015 05:16:03 +0000 (07:16 +0200)]
lxc-start does not close all FDs, so we cannot use run_command
simply use system() as workaround
Dietmar Maurer [Mon, 1 Jun 2015 10:30:27 +0000 (12:30 +0200)]
bump version to 0.7-2
Dietmar Maurer [Mon, 1 Jun 2015 10:29:38 +0000 (12:29 +0200)]
use nowait trigger for pve-api-updates
Dietmar Maurer [Mon, 1 Jun 2015 05:53:11 +0000 (07:53 +0200)]
rename cpus to cpulimit
Wolfgang Bumiller [Tue, 12 May 2015 14:04:05 +0000 (16:04 +0200)]
fix bad remote_node_ip usage
Wolfgang Bumiller [Tue, 12 May 2015 10:15:00 +0000 (12:15 +0200)]
pass port family to next_vnc_port
Dietmar Maurer [Fri, 8 May 2015 07:17:11 +0000 (09:17 +0200)]
add README
Dietmar Maurer [Fri, 8 May 2015 06:12:09 +0000 (08:12 +0200)]
write_lxc_config: write include statements first
Order in lxc configuration files is important! So we include defaults
first, so that we can overwrite them later.
Dietmar Maurer [Thu, 7 May 2015 07:09:52 +0000 (09:09 +0200)]
bump version to 0.7-1
Dietmar Maurer [Thu, 7 May 2015 06:59:37 +0000 (08:59 +0200)]
try to randomize crontab entries
Dietmar Maurer [Thu, 7 May 2015 05:05:49 +0000 (07:05 +0200)]
install global lxc config
To use lxc-pve-mount-hook for all lxc containers.
Dietmar Maurer [Wed, 6 May 2015 08:37:27 +0000 (10:37 +0200)]
depend on lxc-pve
Dietmar Maurer [Wed, 6 May 2015 08:21:34 +0000 (10:21 +0200)]
bump version to 0.6-1
Dietmar Maurer [Wed, 6 May 2015 07:50:53 +0000 (09:50 +0200)]
add upstart config power-status-changed.conf for centos6 containers
So that we can cleanly shutdown them
Dietmar Maurer [Wed, 6 May 2015 07:50:00 +0000 (09:50 +0200)]
allow/use empty network type
Dietmar Maurer [Wed, 6 May 2015 07:01:16 +0000 (09:01 +0200)]
use mingetty on centos6
Dietmar Maurer [Tue, 5 May 2015 12:45:23 +0000 (14:45 +0200)]
trigger pve-api-updates event
Dietmar Maurer [Tue, 5 May 2015 11:26:16 +0000 (13:26 +0200)]
new LXCSetup hook template_fixup
We use this to update/convert old templates to work with LXC
Dietmar Maurer [Tue, 5 May 2015 10:39:29 +0000 (12:39 +0200)]
add test case for centos6