]>
git.proxmox.com Git - pve-container.git/log
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
Dietmar Maurer [Tue, 5 May 2015 10:34:48 +0000 (12:34 +0200)]
add class for redhat based containers
Alexandre Derumier [Sat, 2 May 2015 15:07:05 +0000 (17:07 +0200)]
create lockdir if not exist.
/run/ is a tmpfs on jessie and don't persist across reboot
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Dietmar Maurer [Fri, 1 May 2015 12:53:02 +0000 (14:53 +0200)]
use new subvolume API for zfspool
Dietmar Maurer [Fri, 1 May 2015 12:27:28 +0000 (14:27 +0200)]
use pve.volid if set
Dietmar Maurer [Thu, 30 Apr 2015 16:46:45 +0000 (18:46 +0200)]
bump version to 0.5-1
Dietmar Maurer [Thu, 30 Apr 2015 16:44:24 +0000 (18:44 +0200)]
merge config at restore
Dietmar Maurer [Wed, 29 Apr 2015 10:11:46 +0000 (12:11 +0200)]
fix restore from STDIN
Dietmar Maurer [Wed, 29 Apr 2015 09:59:10 +0000 (11:59 +0200)]
implement restore command
Dietmar Maurer [Wed, 29 Apr 2015 06:24:09 +0000 (08:24 +0200)]
implement vzdump plugin for LXC
Dietmar Maurer [Mon, 27 Apr 2015 09:03:02 +0000 (11:03 +0200)]
correctly include PVE::Storage
Dietmar Maurer [Mon, 27 Apr 2015 07:26:20 +0000 (09:26 +0200)]
use loop mount instead of qemu-nbd
This is less overhead.
Dietmar Maurer [Mon, 27 Apr 2015 07:24:37 +0000 (09:24 +0200)]
save volid inside config, so that we can cleanly destroy the container
Dietmar Maurer [Sat, 25 Apr 2015 05:40:08 +0000 (07:40 +0200)]
add code to use qemu-nbd with qcow2 images
Dietmar Maurer [Fri, 24 Apr 2015 16:14:39 +0000 (18:14 +0200)]
implement disk size parameter
Dietmar Maurer [Fri, 24 Apr 2015 14:49:29 +0000 (16:49 +0200)]
PVE::LXCCreate, use our own class instead of running extenal lxc-create
This way we can use all PVE::Storage features. This patch
uses a raw image for rootfs, which is loop mounted by lxc.
Dietmar Maurer [Thu, 23 Apr 2015 08:59:10 +0000 (10:59 +0200)]
bump version to 0.4-1
Dietmar Maurer [Thu, 23 Apr 2015 08:56:19 +0000 (10:56 +0200)]
rename test directories
Dietmar Maurer [Thu, 23 Apr 2015 08:49:25 +0000 (10:49 +0200)]
use dynamically created plugin objects for LXSetup
So that we can add additional information like the OS version.
Dietmar Maurer [Thu, 23 Apr 2015 07:49:33 +0000 (09:49 +0200)]
fix dns setup when using host dns configuration
Dietmar Maurer [Thu, 23 Apr 2015 07:28:24 +0000 (09:28 +0200)]
allow to setup root password
Dietmar Maurer [Thu, 23 Apr 2015 06:28:00 +0000 (08:28 +0200)]
improve parameter verification for nameserver and searchdomain
Dietmar Maurer [Wed, 22 Apr 2015 14:47:03 +0000 (16:47 +0200)]
implement dns setup for containers
Dietmar Maurer [Wed, 22 Apr 2015 14:12:24 +0000 (16:12 +0200)]
conside searchdomain when updating /etc/hosts
Dietmar Maurer [Wed, 22 Apr 2015 09:09:20 +0000 (11:09 +0200)]
implement nameserver and searchdomain options
Dietmar Maurer [Wed, 22 Apr 2015 08:48:31 +0000 (10:48 +0200)]
implement startup option
Dietmar Maurer [Wed, 22 Apr 2015 06:45:18 +0000 (08:45 +0200)]
implement onboot flag
Dietmar Maurer [Wed, 22 Apr 2015 06:40:13 +0000 (08:40 +0200)]
implement cpuunits, cleanup code
Dietmar Maurer [Wed, 22 Apr 2015 06:03:47 +0000 (08:03 +0200)]
add firewall and vlan tag network options
Dietmar Maurer [Wed, 22 Apr 2015 05:50:10 +0000 (07:50 +0200)]
bump version to 0.3-1