]> git.proxmox.com Git - pve-container.git/log
pve-container.git
8 years agodebian setup: dhcp, manual and unmanaged network
Wolfgang Bumiller [Fri, 24 Jul 2015 07:14:56 +0000 (09:14 +0200)]
debian setup: dhcp, manual and unmanaged network

8 years agoget_primary_ips: take dhcp/manual settings into account
Wolfgang Bumiller [Fri, 24 Jul 2015 07:14:55 +0000 (09:14 +0200)]
get_primary_ips: take dhcp/manual settings into account

8 years agoLXCSetup::Debian: style fix & removed unused vars
Wolfgang Bumiller [Fri, 24 Jul 2015 07:14:54 +0000 (09:14 +0200)]
LXCSetup::Debian: style fix & removed unused vars

8 years agoLXC::get_primary_ips: fix ip/ip6 mixup
Wolfgang Bumiller [Fri, 24 Jul 2015 07:14:53 +0000 (09:14 +0200)]
LXC::get_primary_ips: fix ip/ip6 mixup

8 years agoparse_lxc_config: cleanup parser
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)

8 years agouse check_lock with start/update/destroy
Dietmar Maurer [Fri, 24 Jul 2015 06:32:58 +0000 (08:32 +0200)]
use check_lock with start/update/destroy

8 years agosnapshot_rollback: directly call lxc-stop
Dietmar Maurer [Fri, 24 Jul 2015 05:29:11 +0000 (07:29 +0200)]
snapshot_rollback: directly call lxc-stop

8 years agoComplete the snapshot API2
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>
8 years agoAdd rollback functionality
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>
8 years agoAdd snapshot rollback to API2
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>
8 years agoAdd delsnap functionality
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>
8 years agoAdd delsnapshot to LXC API2
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>
8 years agoAdd snapshot functionality on zfs to lxc
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>
8 years agoAdd snapshot to LXC API2
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>
8 years agocleanup write_lxc_config
Dietmar Maurer [Thu, 23 Jul 2015 10:12:12 +0000 (12:12 +0200)]
cleanup write_lxc_config

8 years agoExtend lxc config with options for snapshot
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>
8 years agobump version to 0.9-3
Dietmar Maurer [Fri, 3 Jul 2015 04:41:36 +0000 (06:41 +0200)]
bump version to 0.9-3

8 years agoadd test case for debian 6
Dietmar Maurer [Fri, 3 Jul 2015 04:35:46 +0000 (06:35 +0200)]
add test case for debian 6

8 years agofix tty setup for debian6
Dietmar Maurer [Fri, 3 Jul 2015 04:34:10 +0000 (06:34 +0200)]
fix tty setup for debian6

8 years agofix version parser for debian
Dietmar Maurer [Fri, 3 Jul 2015 04:21:15 +0000 (06:21 +0200)]
fix version parser for debian

8 years ago$change_ip_config: only pass one parameter called ipversion
Dietmar Maurer [Thu, 2 Jul 2015 05:49:27 +0000 (07:49 +0200)]
$change_ip_config: only pass one parameter called ipversion

8 years agoLXC: more compact network configuration
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.

8 years agobump version to 0.9-2
Dietmar Maurer [Wed, 1 Jul 2015 09:03:57 +0000 (11:03 +0200)]
bump version to 0.9-2

8 years agocorrectly set password change time
Dietmar Maurer [Wed, 1 Jul 2015 09:02:56 +0000 (11:02 +0200)]
correctly set password change time

8 years agoLXCSetup::Redhat: ipv6 config
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.

8 years agoLXCSetup::Debian: ipv6 + naming consistency
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.

8 years agoadd missing }
Dietmar Maurer [Tue, 30 Jun 2015 08:16:21 +0000 (10:16 +0200)]
add missing }

8 years agoip hotplug: ignore errors for del
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

8 years agowhite space cleanups
Dietmar Maurer [Tue, 30 Jun 2015 06:03:34 +0000 (08:03 +0200)]
white space cleanups

8 years agofind_lxc_pid: cleanup regex, raise exception
Dietmar Maurer [Tue, 30 Jun 2015 04:48:44 +0000 (06:48 +0200)]
find_lxc_pid: cleanup regex, raise exception

8 years agofix hotplug ip configuration V4
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>
8 years agoadd support for Ubuntu 14.04 and 12.04
Dietmar Maurer [Tue, 30 Jun 2015 04:28:38 +0000 (06:28 +0200)]
add support for Ubuntu 14.04 and 12.04

8 years agobump version to 0.9-1
Dietmar Maurer [Mon, 29 Jun 2015 10:40:20 +0000 (12:40 +0200)]
bump version to 0.9-1

8 years agocorrectly untaint crontab filenames
Dietmar Maurer [Mon, 29 Jun 2015 10:35:57 +0000 (12:35 +0200)]
correctly untaint crontab filenames

8 years agonew rewrite_ssh_host_keys hook
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.

8 years agoavoid warning about undefined values
Dietmar Maurer [Mon, 29 Jun 2015 08:42:23 +0000 (10:42 +0200)]
avoid warning about undefined values

8 years agoadd a link to backup my claim
Dietmar Maurer [Sat, 27 Jun 2015 13:57:49 +0000 (15:57 +0200)]
add a link to backup my claim

8 years agoadd hotplug ip configuration
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>
8 years agoadd net hotplug
Alexandre Derumier [Thu, 25 Jun 2015 05:06:41 +0000 (07:06 +0200)]
add net hotplug

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
8 years agoadd net hot-unplug
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>
8 years agoadd support for Ubuntu 15.04
Dietmar Maurer [Wed, 24 Jun 2015 11:34:59 +0000 (13:34 +0200)]
add support for Ubuntu 15.04

8 years agobump version to 0.8-1
Dietmar Maurer [Wed, 24 Jun 2015 04:42:16 +0000 (06:42 +0200)]
bump version to 0.8-1

8 years agoonly use lxc-pve-mount-hook for containers on /etc/pve/lxc
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.

8 years agocode cleanup
Dietmar Maurer [Mon, 22 Jun 2015 09:49:37 +0000 (11:49 +0200)]
code cleanup

8 years agoenable lxc hotplug
Alexandre Derumier [Mon, 22 Jun 2015 09:22:20 +0000 (11:22 +0200)]
enable lxc hotplug

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
8 years agoExtent man description for network settings
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>
8 years agocorrect typo
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>
8 years agolxc : vmstatus : add disk read|write stats
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>
8 years agolxc: add hotplug memory && cpus cgroups value
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>
8 years agoallow lxc.cgroup.devices.deny settings in lxc config
Dietmar Maurer [Wed, 3 Jun 2015 05:56:25 +0000 (07:56 +0200)]
allow lxc.cgroup.devices.deny settings in lxc config

8 years agoRevert "lxc-start does not close all FDs, so we cannot use run_command"
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.

8 years agouse float for cpulimit
Dietmar Maurer [Tue, 2 Jun 2015 13:33:30 +0000 (15:33 +0200)]
use float for cpulimit

8 years agolxc-start does not close all FDs, so we cannot use run_command
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

8 years agobump version to 0.7-2
Dietmar Maurer [Mon, 1 Jun 2015 10:30:27 +0000 (12:30 +0200)]
bump version to 0.7-2

8 years agouse nowait trigger for pve-api-updates
Dietmar Maurer [Mon, 1 Jun 2015 10:29:38 +0000 (12:29 +0200)]
use nowait trigger for pve-api-updates

8 years agorename cpus to cpulimit
Dietmar Maurer [Mon, 1 Jun 2015 05:53:11 +0000 (07:53 +0200)]
rename cpus to cpulimit

8 years agofix bad remote_node_ip usage
Wolfgang Bumiller [Tue, 12 May 2015 14:04:05 +0000 (16:04 +0200)]
fix bad remote_node_ip usage

8 years agopass port family to next_vnc_port
Wolfgang Bumiller [Tue, 12 May 2015 10:15:00 +0000 (12:15 +0200)]
pass port family to next_vnc_port

8 years agoadd README
Dietmar Maurer [Fri, 8 May 2015 07:17:11 +0000 (09:17 +0200)]
add README

8 years agowrite_lxc_config: write include statements first
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.

8 years agobump version to 0.7-1
Dietmar Maurer [Thu, 7 May 2015 07:09:52 +0000 (09:09 +0200)]
bump version to 0.7-1

8 years agotry to randomize crontab entries
Dietmar Maurer [Thu, 7 May 2015 06:59:37 +0000 (08:59 +0200)]
try to randomize crontab entries

8 years agoinstall global lxc config
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.

8 years agodepend on lxc-pve
Dietmar Maurer [Wed, 6 May 2015 08:37:27 +0000 (10:37 +0200)]
depend on lxc-pve

8 years agobump version to 0.6-1
Dietmar Maurer [Wed, 6 May 2015 08:21:34 +0000 (10:21 +0200)]
bump version to 0.6-1

8 years agoadd upstart config power-status-changed.conf for centos6 containers
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

8 years agoallow/use empty network type
Dietmar Maurer [Wed, 6 May 2015 07:50:00 +0000 (09:50 +0200)]
allow/use empty network type

8 years agouse mingetty on centos6
Dietmar Maurer [Wed, 6 May 2015 07:01:16 +0000 (09:01 +0200)]
use mingetty on centos6

8 years agotrigger pve-api-updates event
Dietmar Maurer [Tue, 5 May 2015 12:45:23 +0000 (14:45 +0200)]
trigger pve-api-updates event

8 years agonew LXCSetup hook template_fixup
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

8 years agoadd test case for centos6
Dietmar Maurer [Tue, 5 May 2015 10:39:29 +0000 (12:39 +0200)]
add test case for centos6

8 years agoadd class for redhat based containers
Dietmar Maurer [Tue, 5 May 2015 10:34:48 +0000 (12:34 +0200)]
add class for redhat based containers

8 years agocreate lockdir if not exist.
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>
8 years agouse new subvolume API for zfspool
Dietmar Maurer [Fri, 1 May 2015 12:53:02 +0000 (14:53 +0200)]
use new subvolume API for zfspool

8 years agouse pve.volid if set
Dietmar Maurer [Fri, 1 May 2015 12:27:28 +0000 (14:27 +0200)]
use pve.volid if set

8 years agobump version to 0.5-1
Dietmar Maurer [Thu, 30 Apr 2015 16:46:45 +0000 (18:46 +0200)]
bump version to 0.5-1

8 years agomerge config at restore
Dietmar Maurer [Thu, 30 Apr 2015 16:44:24 +0000 (18:44 +0200)]
merge config at restore

8 years agofix restore from STDIN
Dietmar Maurer [Wed, 29 Apr 2015 10:11:46 +0000 (12:11 +0200)]
fix restore from STDIN

8 years agoimplement restore command
Dietmar Maurer [Wed, 29 Apr 2015 09:59:10 +0000 (11:59 +0200)]
implement restore command

8 years agoimplement vzdump plugin for LXC
Dietmar Maurer [Wed, 29 Apr 2015 06:24:09 +0000 (08:24 +0200)]
implement vzdump plugin for LXC

9 years agocorrectly include PVE::Storage
Dietmar Maurer [Mon, 27 Apr 2015 09:03:02 +0000 (11:03 +0200)]
correctly include PVE::Storage

9 years agouse loop mount instead of qemu-nbd
Dietmar Maurer [Mon, 27 Apr 2015 07:26:20 +0000 (09:26 +0200)]
use loop mount instead of qemu-nbd

This is less overhead.

9 years agosave volid inside config, so that we can cleanly destroy the container
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

9 years agoadd code to use qemu-nbd with qcow2 images
Dietmar Maurer [Sat, 25 Apr 2015 05:40:08 +0000 (07:40 +0200)]
add code to use qemu-nbd with qcow2 images

9 years agoimplement disk size parameter
Dietmar Maurer [Fri, 24 Apr 2015 16:14:39 +0000 (18:14 +0200)]
implement disk size parameter

9 years agoPVE::LXCCreate, use our own class instead of running extenal lxc-create
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.

9 years agobump version to 0.4-1
Dietmar Maurer [Thu, 23 Apr 2015 08:59:10 +0000 (10:59 +0200)]
bump version to 0.4-1

9 years agorename test directories
Dietmar Maurer [Thu, 23 Apr 2015 08:56:19 +0000 (10:56 +0200)]
rename test directories

9 years agouse dynamically created plugin objects for LXSetup
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.

9 years agofix dns setup when using host dns configuration
Dietmar Maurer [Thu, 23 Apr 2015 07:49:33 +0000 (09:49 +0200)]
fix dns setup when using host dns configuration

9 years agoallow to setup root password
Dietmar Maurer [Thu, 23 Apr 2015 07:28:24 +0000 (09:28 +0200)]
allow to setup root password

9 years agoimprove parameter verification for nameserver and searchdomain
Dietmar Maurer [Thu, 23 Apr 2015 06:28:00 +0000 (08:28 +0200)]
improve parameter verification for nameserver and searchdomain

9 years agoimplement dns setup for containers
Dietmar Maurer [Wed, 22 Apr 2015 14:47:03 +0000 (16:47 +0200)]
implement dns setup for containers

9 years agoconside searchdomain when updating /etc/hosts
Dietmar Maurer [Wed, 22 Apr 2015 14:12:24 +0000 (16:12 +0200)]
conside searchdomain when updating /etc/hosts

9 years agoimplement nameserver and searchdomain options
Dietmar Maurer [Wed, 22 Apr 2015 09:09:20 +0000 (11:09 +0200)]
implement nameserver and searchdomain options

9 years agoimplement startup option
Dietmar Maurer [Wed, 22 Apr 2015 08:48:31 +0000 (10:48 +0200)]
implement startup option

9 years agoimplement onboot flag
Dietmar Maurer [Wed, 22 Apr 2015 06:45:18 +0000 (08:45 +0200)]
implement onboot flag

9 years agoimplement cpuunits, cleanup code
Dietmar Maurer [Wed, 22 Apr 2015 06:40:13 +0000 (08:40 +0200)]
implement cpuunits, cleanup code

9 years agoadd firewall and vlan tag network options
Dietmar Maurer [Wed, 22 Apr 2015 06:03:47 +0000 (08:03 +0200)]
add firewall and vlan tag network options

9 years agobump version to 0.3-1
Dietmar Maurer [Wed, 22 Apr 2015 05:50:10 +0000 (07:50 +0200)]
bump version to 0.3-1