[pve-devel] [Patch] Proxmox 4.0 CentOS 5 and 6 Containers not starting

2015-10-16 Thread Andreas Brodowski
According to Wolfgangs hint in forum I post my yesterdays message here:     --- Redhat.pm.bak   2015-10-06 09:38:29.0 +0200 +++ Redhat.pm   2015-10-14 20:10:11.151244903 +0200 @@ -18,8 +18,8 @@   my $version;   -    if ($release =~ m/re

[pve-devel] [RFC pve-container 0/4] Deal with gateways outside the subnet

2015-10-16 Thread Wolfgang Bumiller
Unsurprisingly debian was the least convenient distribution to configure. For Redhat/Centos the routes are more easy to add, but since it's a separate file which might be used by the user we need to update rather than replace it. Which is still simple enough. systemd-networkd wins the medal of conv

[pve-devel] [RFC pve-container 3/4] systemd: deal with gateways outside the subnet

2015-10-16 Thread Wolfgang Bumiller
--- src/PVE/LXC/Setup/Base.pm | 14 ++ 1 file changed, 14 insertions(+) diff --git a/src/PVE/LXC/Setup/Base.pm b/src/PVE/LXC/Setup/Base.pm index ba7453d..cbb23a1 100644 --- a/src/PVE/LXC/Setup/Base.pm +++ b/src/PVE/LXC/Setup/Base.pm @@ -11,6 +11,7 @@ use File::Path; use PVE::INotif

[pve-devel] [RFC pve-container 4/4] hotplug: deal with gateways outside the subnet

2015-10-16 Thread Wolfgang Bumiller
--- src/PVE/LXC.pm | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index 79028b3..4b9ace5 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -1499,7 +1499,8 @@ sub update_ipconfig { return if !$change_ip && !$change_gw;

[pve-devel] [RFC pve-container 1/4] debian: deal with gateways in external subnets

2015-10-16 Thread Wolfgang Bumiller
--- src/PVE/LXC/Setup/Debian.pm| 74 +- src/test/test-debian-012/config| 2 + src/test/test-debian-012/etc/debian_version| 1 + src/test/test-debian-012/etc/network/interfaces| 2 + .../test-debian-012/etc/network/inter

[pve-devel] [RFC pve-container 2/4] centos: deal with gateways outside the subnet

2015-10-16 Thread Wolfgang Bumiller
--- src/PVE/LXC/Setup/Redhat.pm | 30 ++ 1 file changed, 30 insertions(+) diff --git a/src/PVE/LXC/Setup/Redhat.pm b/src/PVE/LXC/Setup/Redhat.pm index c15673a..095507a 100644 --- a/src/PVE/LXC/Setup/Redhat.pm +++ b/src/PVE/LXC/Setup/Redhat.pm @@ -4,6 +4,7 @@ use strict

[pve-devel] [PATCH pve-common] network: IP_from_cidr and is_ip_in_cidr helpers

2015-10-16 Thread Wolfgang Bumiller
--- src/PVE/Network.pm | 33 + 1 file changed, 33 insertions(+) diff --git a/src/PVE/Network.pm b/src/PVE/Network.pm index 34a280f..024b9b4 100644 --- a/src/PVE/Network.pm +++ b/src/PVE/Network.pm @@ -9,6 +9,8 @@ use File::Basename; use IO::Socket::IP; use POSIX

[pve-devel] [RFC pve-common] Some network helpers

2015-10-16 Thread Wolfgang Bumiller
With perl's Net::IP being unreasonably petulant it might be useful to have a wrapper around Net::IP->new that doesn't need the address part to be zero for a CIDR notation. It's certainly useful for the helper is_ip_in_cidr(). This patch is part of another series for pve-container to deal with gate

Re: [pve-devel] [PATCH pve-zsync 00/11] fixes, hostnames/ipv6, subvolumes

2015-10-16 Thread Dietmar Maurer
applied, thanks! ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

[pve-devel] bug - création linux-bond with gui

2015-10-16 Thread moula BADJI
Bug Linux -bond . The creation of Linux bond with gui, it never works it should always add : auto bond0 in /etc/networking/interface. After it works very well. Thank's Moula. ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.co

[pve-devel] [PATCH pve-container] setup/debian: remove superfluous parameter

2015-10-16 Thread Wolfgang Bumiller
The $new parameter only guards the output of the 'auto' line which is now being tracked in $done_auto, so it's not needed anymore. --- src/PVE/LXC/Setup/Debian.pm | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/PVE/LXC/Setup/Debian.pm b/src/PVE/LXC/Setup/Debian.pm i

[pve-devel] [PATCH pve-container] allow /32 CIDRs and remove duplicated mask array

2015-10-16 Thread Wolfgang Bumiller
--- src/PVE/LXC.pm | 40 ++-- 1 file changed, 2 insertions(+), 38 deletions(-) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index af0d5d4..79028b3 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -948,49 +948,13 @@ sub find_lxc_pid { return $pid; } -

[pve-devel] [PATCH pve-common] allow /32 ipv4 cidrs

2015-10-16 Thread Wolfgang Bumiller
--- src/PVE/JSONSchema.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm index 817ff4c..de2a0bd 100644 --- a/src/PVE/JSONSchema.pm +++ b/src/PVE/JSONSchema.pm @@ -248,7 +248,7 @@ register_format('CIDRv4', \&pve_verify_cidrv4); sub