[pve-devel] PVE 4 - No Display

2015-09-22 Thread Gilberto Nunes
Hi I am running PVE4 beta 2 in a HP Proliant and I cannot start the display... I get the error: "Guest has not initialized the display (yet)." Any help?? -- Gilberto Ferreira +55 (47) 9676-7530 Skype: gilberto.nunes36 ___ pve-devel mailing list

[pve-devel] read|write network interfaces : add support for vlan interfaces

2015-09-22 Thread Alexandre Derumier
Changelog : manage them like alias, childs of a parent interface. Like this, if we delete the parent, we delete the child vlan interface ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

[pve-devel] [PATCH] read|write network interfaces : add support for vlan interfaces

2015-09-22 Thread Alexandre Derumier
Signed-off-by: Alexandre Derumier --- src/PVE/INotify.pm | 22 +++--- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/src/PVE/INotify.pm b/src/PVE/INotify.pm index 22f01d1..1c364ba 100644 --- a/src/PVE/INotify.pm +++ b/src/PVE/INotify.pm @@

[pve-devel] [PATCH] NetworkEdit : add support for vlan interfaces.

2015-09-22 Thread Alexandre Derumier
Edit only for now, create will come soon in another patch Signed-off-by: Alexandre Derumier --- PVE/API2/Network.pm | 2 +- www/manager/Utils.js| 1 + www/manager/node/NetworkEdit.js | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git

Re: [pve-devel] [RFC pve-common 0/4] Typetext generation

2015-09-22 Thread Dietmar Maurer
Applied, thanks. > Should we maybe add general support for hash-refs as `format` for > string types? Yes, I think that is a great idea. ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

[pve-devel] Fwd: [Qemu-devel] [ANNOUNCE] QEMU 2.4.0.1 CVE update released

2015-09-22 Thread Alexandre DERUMIER
Seem that qemu will release CVE fixed releases :) - Mail transféré - De: "mdroth" À: "qemu-devel" Cc: "qemu-stable" Envoyé: Mercredi 23 Septembre 2015 01:36:23 Objet: [Qemu-devel] [ANNOUNCE] QEMU 2.4.0.1 CVE

Re: [pve-devel] [PATCH v2] check_vmid_unused message change

2015-09-22 Thread Dietmar Maurer
applied, but simplified the code: my $vmtypestr = $d->{type} eq 'qemu' ? 'VM' : 'CT'; die "$vmtypestr $vmid already exists on node '$d->{node}'"; On 09/22/2015 04:21 PM, Alen Grizonic wrote: changed message if vmid used on a different cluster node --- data/PVE/Cluster.pm | 14

[pve-devel] PVE 4: How can I remove/destroy entire Cluster??

2015-09-22 Thread Gilberto Nunes
Hi... If I am not wrong, in Pve 2/3 to remove the entire cluster, just need remove /var/lib/pve-cluster/* and /etc/cluster. However, I couldn't found /etc/cluster... Is there any other procure to follow? Thanks -- Gilberto Ferreira +55 (47) 9676-7530 Skype: gilberto.nunes36

[pve-devel] [PATCH pve-container] vzdump: tar: disable warnings about ignored files

2015-09-22 Thread Wolfgang Bumiller
--- src/PVE/VZDump/LXC.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/VZDump/LXC.pm b/src/PVE/VZDump/LXC.pm index 2d4b85a..858db8f 100644 --- a/src/PVE/VZDump/LXC.pm +++ b/src/PVE/VZDump/LXC.pm @@ -280,7 +280,7 @@ sub archive { my $tar = ['tar', 'cpf', '-',

[pve-devel] [PATCH v2] CT protection mode

2015-09-22 Thread Alen Grizonic
[PATCH 2] changes: - added common check_protection subroutine - disk removal or update operation - restore over protected CT prevention - changed man page message --- src/PVE/API2/LXC.pm | 6 -- src/PVE/LXC.pm | 15 --- 2 files changed, 16 insertions(+), 5 deletions(-)

Re: [pve-devel] [RFC pve-common 0/4] Typetext generation

2015-09-22 Thread Dietmar Maurer
> I wonder though if it makes sense to then cache the parsed object somewhere > to avoid parsing the string twice? IMHO this makes code unnecessarily complex. ___ pve-devel mailing list pve-devel@pve.proxmox.com

[pve-devel] [PATCH pve-container] CT protection mode

2015-09-22 Thread Alen Grizonic
changes: - added common check_protection subroutine - disk removal prevention - restore over protected CT prevention --- src/PVE/API2/LXC.pm| 6 -- src/PVE/API2/LXC/Config.pm | 4 src/PVE/LXC.pm | 8 3 files changed, 16 insertions(+), 2 deletions(-) diff

Re: [pve-devel] [RFC pve-common 0/4] Typetext generation

2015-09-22 Thread Wolfgang Bumiller
> On September 22, 2015 at 8:03 AM Dietmar Maurer wrote: > > Should we maybe add general support for hash-refs as `format` for > > string types? > > Yes, I think that is a great idea. I wonder though if it makes sense to then cache the parsed object somewhere to avoid

[pve-devel] [PATCH pve-container] When destroying a container, remove bind mounts and block devices from the list of volumes to delete.

2015-09-22 Thread Emmanuel Kasper
--- src/PVE/LXC.pm | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index 3c77c5b..afff9fe 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -1294,6 +1294,12 @@ sub destroy_lxc_container { foreach_mountpoint($conf, sub { my ($ms,

Re: [pve-devel] [PATCH] extend functionality to (de)activate_volumes with snapshots

2015-09-22 Thread Dietmar Maurer
applied, but changed parameter ordering (use $cache as last parameter). ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

[pve-devel] [PATCH pve-common 6/6] PodParser: use generate_typetext

2015-09-22 Thread Wolfgang Bumiller
--- src/PVE/PodParser.pm | 5 + 1 file changed, 5 insertions(+) diff --git a/src/PVE/PodParser.pm b/src/PVE/PodParser.pm index 7e31e19..3cb3c56 100644 --- a/src/PVE/PodParser.pm +++ b/src/PVE/PodParser.pm @@ -61,6 +61,11 @@ sub schema_get_type_text { } elsif

[pve-devel] [PATCH pve-container 1/2] Use format hashes in schemas

2015-09-22 Thread Wolfgang Bumiller
Use full schemas and generate_typetext for -net* and -mp* properties. --- src/PVE/LXC.pm | 143 - 1 file changed, 112 insertions(+), 31 deletions(-) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index 3c77c5b..f5b3a5b 100644 ---

[pve-devel] [PATCH pve-container 2/2] Replace parsing code for -net* and -mp*

2015-09-22 Thread Wolfgang Bumiller
Use the new JSONSchema provided parser which also verifies the parameters with their schemas. --- src/PVE/LXC.pm | 33 + 1 file changed, 9 insertions(+), 24 deletions(-) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index f5b3a5b..7a6803e 100644 ---

[pve-devel] [PATCH pve-container 0/2] format-hash usage

2015-09-22 Thread Wolfgang Bumiller
These two patches add a format-schema for -rootfs, -mp* and -net* and replace the string parsing code with the new JSONSchema::parse_property_string. The typetext is now autogenerated and doesn't need to be included manually. The long descriptions aren't currently used but could be incorporated

Re: [pve-devel] [PATCH v2] CT protection mode

2015-09-22 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] [PATCH pve-common 5/6] JSONSchema::generate_typetext: default_key support

2015-09-22 Thread Wolfgang Bumiller
--- src/PVE/JSONSchema.pm | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm index 0d68608..3afc37a 100644 --- a/src/PVE/JSONSchema.pm +++ b/src/PVE/JSONSchema.pm @@ -1357,13 +1357,17 @@ sub generate_typetext { my

[pve-devel] [PATCH pve-common 4/6] JSONSchema: verify comma-separated property strings

2015-09-22 Thread Wolfgang Bumiller
--- src/PVE/JSONSchema.pm | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm index d900a69..0d68608 100644 --- a/src/PVE/JSONSchema.pm +++ b/src/PVE/JSONSchema.pm @@ -396,8 +396,9 @@

[pve-devel] [PATCH pve-common 1/6] JSONSchema::generate_typetext: raw typetext support

2015-09-22 Thread Wolfgang Bumiller
Instead of a format_description which ends up in the documentation as 'key=<$desc>', a typetext can now be used for an as-is string. (Eg. for when the key isn't required, like for volumes in mountpoints, typetext can be set to [volume=]volume) --- src/PVE/JSONSchema.pm | 19 ++- 1

[pve-devel] [PATCH pve-common 0/6] typetext updates

2015-09-22 Thread Wolfgang Bumiller
First patch is a re-send - did I miss something or did you forget to apply it? This now adds a parse_property_string function which should be usable as a replacement for where we parse comma-separated lists of key-value pairs. That way we have one generic parser with schema based verification, by

[pve-devel] [PATCH pve-common 3/6] Added JSONSchema::parse_property_string

2015-09-22 Thread Wolfgang Bumiller
--- src/PVE/JSONSchema.pm | 50 ++ 1 file changed, 50 insertions(+) diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm index 45ce5ba..d900a69 100644 --- a/src/PVE/JSONSchema.pm +++ b/src/PVE/JSONSchema.pm @@ -431,6 +431,51 @@ sub

[pve-devel] [PATCH pve-common 2/6] generate_typetext: better handling of only-optional cases

2015-09-22 Thread Wolfgang Bumiller
--- src/PVE/JSONSchema.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm index f36ee42..45ce5ba 100644 --- a/src/PVE/JSONSchema.pm +++ b/src/PVE/JSONSchema.pm @@ -1317,11 +1317,11 @@ sub generate_typetext {

[pve-devel] [PATCH] check_vmid_unused message change

2015-09-22 Thread Alen Grizonic
changed message if vmid used on a different cluster node --- data/PVE/Cluster.pm | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/data/PVE/Cluster.pm b/data/PVE/Cluster.pm index 63780ac..880d91a 100644 --- a/data/PVE/Cluster.pm +++ b/data/PVE/Cluster.pm @@