Re: [pve-devel] removed ISO files block migration

2015-08-20 Thread Wolfgang Link
DERUMIER: I think we should eject it automatically instead of do not start the machine! +1 for this. Simply do an eject before migration, if the iso is local - Mail original - De: Wolfgang Link w.l...@proxmox.com À: Stefan Priebe s.pri...@profihost.ag, pve-devel pve-devel@pve.proxmox.com

Re: [pve-devel] removed ISO files block migration

2015-08-20 Thread Wolfgang Link
I think we should eject it automatically instead of do not start the machine! This could be done easily if we check this on start. On 08/20/2015 09:39 AM, Stefan Priebe - Profihost AG wrote: Hi, i've no real idea how to solve this. Currently the following happens pretty easily. You insert

[pve-devel] [PATCH] Bugfix 688: prevent copy unused disks in the config.

2015-08-20 Thread Wolfgang Link
--- PVE/API2/Qemu.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index c4516de..669cfc2 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -2171,7 +2171,8 @@ __PACKAGE__-register_method({ # do not copy snapshot

[pve-devel] KRDB

2015-08-20 Thread Wolfgang Link
I'm wondering if it is really necessary to use krdb when lxc is on ceph? or there are any other possibility? There are any pitfalls with krdb? ___ pve-devel mailing list pve-devel@pve.proxmox.com

Re: [pve-devel] [PATCH] Bugfix 860: fix the upload from a VM when it is restricted.

2015-08-17 Thread Wolfgang Link
Yes sure we need this clean up. On 08/17/2015 09:13 AM, Dietmar Maurer wrote: - system(/sbin/tc filter del dev $iface parent : protocol ip prio 50 estimator 1sec 8sec /dev/null 21); +system(/sbin/tc filter del dev $iface parent : protocol all pref 50 u32 /dev/null 21);

[pve-devel] [PATCH=Stable-3] Bugfix 682: change at the Gui the used disk size.

2015-08-17 Thread Wolfgang Link
in the pvesm and pvesh we are giving the correct size of the used space from a disk. this change make the output of Gui and CLI consistent. --- bin/pvestatd |5 + www/manager/storage/StatusView.js |7 +-- 2 files changed, 2 insertions(+), 10 deletions(-)

[pve-devel] [PATCH] Bugfix 682: change at the Gui the used disk size.

2015-08-17 Thread Wolfgang Link
in the pvesm and pvesh we are giving the correct size of the used space from a disk. this change make the output of Gui and CLI consistent. --- bin/pvestatd |5 + www/manager/storage/StatusView.js |7 +-- 2 files changed, 2 insertions(+), 10 deletions(-)

[pve-devel] [PATCH 3/7] fix bug #691: implement zfs vzdump backup

2015-08-24 Thread Wolfgang Link
--- src/PVE/VZDump/LXC.pm | 48 1 file changed, 32 insertions(+), 16 deletions(-) diff --git a/src/PVE/VZDump/LXC.pm b/src/PVE/VZDump/LXC.pm index 32a85db..cd43f98 100644 --- a/src/PVE/VZDump/LXC.pm +++ b/src/PVE/VZDump/LXC.pm @@ -105,6 +105,13 @@

[pve-devel] [PATCH 5/7] clean up: make independent mountpoints for different VM

2015-08-24 Thread Wolfgang Link
--- src/PVE/VZDump/LXC.pm | 31 +-- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/src/PVE/VZDump/LXC.pm b/src/PVE/VZDump/LXC.pm index 359b5c0..d415444 100644 --- a/src/PVE/VZDump/LXC.pm +++ b/src/PVE/VZDump/LXC.pm @@ -13,6 +13,8 @@ use PVE::Tools;

[pve-devel] [PATCH 1/7] refactoring code to reuse it

2015-08-24 Thread Wolfgang Link
we can use this also, if we mount snapshots --- src/PVE/VZDump/LXC.pm | 28 +--- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/src/PVE/VZDump/LXC.pm b/src/PVE/VZDump/LXC.pm index 112bc84..24f81ef 100644 --- a/src/PVE/VZDump/LXC.pm +++

[pve-devel] [PATCH 2/7] improve saving config for vzdump

2015-08-24 Thread Wolfgang Link
this is necessary because we use snapshots and some (zfs) are read only. --- src/PVE/VZDump/LXC.pm | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/PVE/VZDump/LXC.pm b/src/PVE/VZDump/LXC.pm index 24f81ef..32a85db 100644 --- a/src/PVE/VZDump/LXC.pm +++

[pve-devel] [PATCH 6/7] fix bug #691: vzdump backup fixed on zfs

2015-08-24 Thread Wolfgang Link
--- src/PVE/VZDump/LXC.pm | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/PVE/VZDump/LXC.pm b/src/PVE/VZDump/LXC.pm index d415444..42c5e44 100644 --- a/src/PVE/VZDump/LXC.pm +++ b/src/PVE/VZDump/LXC.pm @@ -132,6 +132,10 @@ sub prepare { # fixme:

[pve-devel] [PATCH 4/7] remove mountpoint dir from vzdump backup

2015-08-24 Thread Wolfgang Link
--- src/PVE/VZDump/LXC.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PVE/VZDump/LXC.pm b/src/PVE/VZDump/LXC.pm index cd43f98..359b5c0 100644 --- a/src/PVE/VZDump/LXC.pm +++ b/src/PVE/VZDump/LXC.pm @@ -307,6 +307,7 @@ sub cleanup { # We use -d to automatically free used loop

[pve-devel] [PATCH 7/7] prevent cleanup from unmount zfs subvols

2015-08-24 Thread Wolfgang Link
--- src/PVE/VZDump/LXC.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PVE/VZDump/LXC.pm b/src/PVE/VZDump/LXC.pm index 42c5e44..03f056c 100644 --- a/src/PVE/VZDump/LXC.pm +++ b/src/PVE/VZDump/LXC.pm @@ -175,6 +175,7 @@ sub prepare { if ($scfg-{type} eq

[pve-devel] Implement backup for subvol and improve backup

2015-08-24 Thread Wolfgang Link
This Patch implement the subvol backup for snapshot and stoped mode. Also refactoring code for reuse. And change the way tar include the pct.conf as first file in tar archive. ___ pve-devel mailing list pve-devel@pve.proxmox.com

[pve-devel] [PATCH] complete optional packet list for pveversion

2015-08-24 Thread Wolfgang Link
--- PVE/API2/APT.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PVE/API2/APT.pm b/PVE/API2/APT.pm index 1a46cf1..c6e2bda 100644 --- a/PVE/API2/APT.pm +++ b/PVE/API2/APT.pm @@ -537,7 +537,8 @@ __PACKAGE__-register_method({ # comment out old packages uses before

[pve-devel] [PATCH] improve creation of LXC archive

2015-07-28 Thread Wolfgang Link
when create a archive the container config will be the fist file in archive. This is useful if we recover the archive. --- 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 ceff324..21fb3c1 100644 ---

[pve-devel] [PATCH_V2] Insert capability for restore LXC- and OpenVZ- dumpfiles

2015-07-28 Thread Wolfgang Link
this patch recovers the config form the tarball. It will nt recover the nework setting if you recover from OVZ --- src/PVE/API2/LXC.pm | 30 +++- src/PVE/LXCCreate.pm | 125 ++--- src/PVE/VZDump/ConvertOVZ.pm | 319 +++

[pve-devel] [PATCH] improve creation of OpenVZ archive

2015-07-28 Thread Wolfgang Link
when create a archive the container config will be the fist file in archive. This is useful if we recover the archive. --- PVE/VZDump/OpenVZ.pm |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/VZDump/OpenVZ.pm b/PVE/VZDump/OpenVZ.pm index 779c3a1..9fa37c7 100644 ---

[pve-devel] [PATCH_V2] Remove snapshots from LXC config, when you create LXC Backup

2015-07-30 Thread Wolfgang Link
--- src/PVE/VZDump/LXC.pm | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/PVE/VZDump/LXC.pm b/src/PVE/VZDump/LXC.pm index 21fb3c1..6fad10f 100644 --- a/src/PVE/VZDump/LXC.pm +++ b/src/PVE/VZDump/LXC.pm @@ -9,6 +9,7 @@ use PVE::Cluster qw(cfs_read_file);

[pve-devel] [PATCH_V5] Insert capability for restore LXC- and OpenVZ- dumpfiles

2015-07-30 Thread Wolfgang Link
this patch recovers the config form the tarball. It will nt recover the nework setting if you recover from OVZ --- src/PVE/API2/LXC.pm | 30 +++- src/PVE/LXCCreate.pm | 105 +++--- src/PVE/VZDump/ConvertOVZ.pm | 319 +++

[pve-devel] [PATCH_V3] Remove snapshots from LXC config, when you create LXC Backup

2015-07-31 Thread Wolfgang Link
--- src/PVE/VZDump/LXC.pm | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/PVE/VZDump/LXC.pm b/src/PVE/VZDump/LXC.pm index 21fb3c1..c984abb 100644 --- a/src/PVE/VZDump/LXC.pm +++ b/src/PVE/VZDump/LXC.pm @@ -9,6 +9,7 @@ use PVE::Cluster qw(cfs_read_file); use

[pve-devel] [PATCH_V3] Insert capability for restore LXC- and OpenVZ- dumpfiles

2015-07-29 Thread Wolfgang Link
this patch recovers the config form the tarball. It will nt recover the nework setting if you recover from OVZ --- src/PVE/API2/LXC.pm | 30 +++- src/PVE/LXCCreate.pm | 136 +++--- src/PVE/VZDump/ConvertOVZ.pm | 319 +++

[pve-devel] [PATCH_V4] Insert capability for restore LXC- and OpenVZ- dumpfiles

2015-07-29 Thread Wolfgang Link
this patch recovers the config form the tarball. It will nt recover the nework setting if you recover from OVZ --- src/PVE/API2/LXC.pm | 30 +++- src/PVE/LXCCreate.pm | 105 +++--- src/PVE/VZDump/ConvertOVZ.pm | 319 +++

[pve-devel] [PATCH] Remove snapshots from LXC config, when you create LXC Backup

2015-07-29 Thread Wolfgang Link
--- src/PVE/VZDump/LXC.pm | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/PVE/VZDump/LXC.pm b/src/PVE/VZDump/LXC.pm index 21fb3c1..fc74007 100644 --- a/src/PVE/VZDump/LXC.pm +++ b/src/PVE/VZDump/LXC.pm @@ -221,14 +221,20 @@ sub resume_vm { sub assemble {

[pve-devel] [PATCH] Fix Extent ZFSPool Content with rootdir

2015-07-27 Thread Wolfgang Link
--- www/manager/storage/ZFSPoolEdit.js | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/www/manager/storage/ZFSPoolEdit.js b/www/manager/storage/ZFSPoolEdit.js index dfefa0b..9ad1284 100644 --- a/www/manager/storage/ZFSPoolEdit.js +++

[pve-devel] [PATCH 2/3] Fix disksize assign size when recover

2015-07-31 Thread Wolfgang Link
--- src/PVE/API2/LXC.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm index 4dfb582..3e4e862 100644 --- a/src/PVE/API2/LXC.pm +++ b/src/PVE/API2/LXC.pm @@ -278,6 +278,8 @@ __PACKAGE__-register_method({

[pve-devel] [PATCH 3/3] Fix warning if restore from OpenVZ

2015-07-31 Thread Wolfgang Link
--- src/PVE/API2/LXC.pm | 12 +--- src/PVE/LXCCreate.pm | 5 +++-- src/PVE/VZDump/ConvertOVZ.pm | 5 - 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm index 3e4e862..3bde6c1 100644 --- a/src/PVE/API2/LXC.pm

[pve-devel] [PATCH 1/3] Fix assign function to correct module

2015-07-31 Thread Wolfgang Link
--- src/PVE/LXCCreate.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/LXCCreate.pm b/src/PVE/LXCCreate.pm index bfb6060..ad5fcbc 100644 --- a/src/PVE/LXCCreate.pm +++ b/src/PVE/LXCCreate.pm @@ -304,7 +304,7 @@ sub create_rootfs { foreach my $opt (qw(disk

[pve-devel] [PATCH_V2] Fix the zfs parse volume

2015-08-06 Thread Wolfgang Link
there where an changing in the internal name so it is necessary to adapt the parser regex. --- PVE/Storage/ZFSPoolPlugin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/Storage/ZFSPoolPlugin.pm b/PVE/Storage/ZFSPoolPlugin.pm index d7204b2..dbaa5ca 100644 ---

[pve-devel] [PATCH 1/2] fix LXC backup after changing lxc to pct conf

2015-08-07 Thread Wolfgang Link
--- src/PVE/API2/LXC.pm | 2 +- src/PVE/LXCCreate.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm index 17cb0a6..93ab537 100644 --- a/src/PVE/API2/LXC.pm +++ b/src/PVE/API2/LXC.pm @@ -309,7 +309,7 @@

[pve-devel] [PATCH 2/2] Fix in PVE::LXC parse_ct_mountpoint

2015-08-07 Thread Wolfgang Link
there was the allocation missed --- src/PVE/LXC.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index 21f03a4..bf084ba 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -643,6 +643,7 @@ sub parse_ct_mountpoint { if ($p =~

[pve-devel] [PATCH] Add extra optional list to pveversion

2015-08-07 Thread Wolfgang Link
if the packet on the opt list is not installed, it will not shown. --- PVE/API2/APT.pm | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/PVE/API2/APT.pm b/PVE/API2/APT.pm index 2eac330..b665a5b 100644 --- a/PVE/API2/APT.pm +++ b/PVE/API2/APT.pm @@ -536,9 +536,12 @@

[pve-devel] [PATCH] Fix mem ans swap size when converted from OpenVz.

2015-08-07 Thread Wolfgang Link
--- src/PVE/VZDump/ConvertOVZ.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PVE/VZDump/ConvertOVZ.pm b/src/PVE/VZDump/ConvertOVZ.pm index 72f1c0d..dedd640 100644 --- a/src/PVE/VZDump/ConvertOVZ.pm +++ b/src/PVE/VZDump/ConvertOVZ.pm @@ -304,9 +304,9 @@ sub

[pve-devel] [PATCH] extend ZFSPoolPlugin::zfs_get_zvol_size with quota

2015-08-07 Thread Wolfgang Link
This is necessary if we use Container because they use subvol. subvol has no size but a quota. if return is 0 there is no quota set. --- PVE/Storage/ZFSPoolPlugin.pm | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/PVE/Storage/ZFSPoolPlugin.pm

[pve-devel] [PATCH] Fix: If a Ct are created and a pool are given add the Ct to pool.

2015-08-07 Thread Wolfgang Link
--- src/PVE/API2/LXC.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm index 93ab537..8823ae4 100644 --- a/src/PVE/API2/LXC.pm +++ b/src/PVE/API2/LXC.pm @@ -301,7 +301,7 @@ __PACKAGE__-register_method({ my $code = sub {

[pve-devel] [PATCH] Extent ZFSPool Content with rootdir

2015-07-24 Thread Wolfgang Link
--- www/manager/storage/ZFSPoolEdit.js | 9 + 1 file changed, 9 insertions(+) diff --git a/www/manager/storage/ZFSPoolEdit.js b/www/manager/storage/ZFSPoolEdit.js index b0a17b2..dfefa0b 100644 --- a/www/manager/storage/ZFSPoolEdit.js +++ b/www/manager/storage/ZFSPoolEdit.js @@ -91,6

[pve-devel] [PATCH] Insert capability for restore LXC- and OpenVZ- dumpfiles

2015-07-22 Thread Wolfgang Link
this patch recovers the config form the tarball. It will nt recover the nework setting if you recover from OVZ --- src/PVE/API2/LXC.pm | 30 +++- src/PVE/LXCCreate.pm | 102 +++--- src/PVE/VZDump/ConvertOVZ.pm | 319 +++

[pve-devel] [PATCH] Change Ct restore rest call

2015-07-22 Thread Wolfgang Link
this change will provide that it will be possibel to restore LXC and OVZ dumpfiles over the gui. --- www/manager/storage/ContentView.js | 4 ++-- www/manager/window/Restore.js | 8 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/www/manager/storage/ContentView.js

[pve-devel] [PATCH] Fix Bug_664

2015-07-23 Thread Wolfgang Link
Catch the error, if the dataset doesn't exists. If it will not catched, you can't remove a VM. --- PVE/Storage/ZFSPoolPlugin.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PVE/Storage/ZFSPoolPlugin.pm b/PVE/Storage/ZFSPoolPlugin.pm index 6b095f1..d3bb0fd 100644 ---

[pve-devel] [PATCH_V2] Extent ZFSPool Content with rootdir

2015-07-24 Thread Wolfgang Link
--- www/manager/storage/ZFSPoolEdit.js | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/www/manager/storage/ZFSPoolEdit.js b/www/manager/storage/ZFSPoolEdit.js index b0a17b2..9ad1284 100644 --- a/www/manager/storage/ZFSPoolEdit.js +++

[pve-devel] [PATCH] Add zfs to pveversion

2015-07-17 Thread Wolfgang Link
Signed-off-by: Wolfgang Link w.l...@proxmox.com --- PVE/API2/APT.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/API2/APT.pm b/PVE/API2/APT.pm index 2eac330..4adb2ec 100644 --- a/PVE/API2/APT.pm +++ b/PVE/API2/APT.pm @@ -537,7 +537,7 @@ __PACKAGE__-register_method

[pve-devel] [PATCH] fix regex: necessary by reason of changing input

2015-07-16 Thread Wolfgang Link
Signed-off-by: Wolfgang Link w.l...@proxmox.com --- PVE/Storage/ZFSPoolPlugin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/Storage/ZFSPoolPlugin.pm b/PVE/Storage/ZFSPoolPlugin.pm index 6b095f1..b99e7e5 100644 --- a/PVE/Storage/ZFSPoolPlugin.pm +++ b/PVE/Storage

[pve-devel] [PATCH 2/9] Add snapshot to LXC API2

2015-07-17 Thread Wolfgang Link
Signed-off-by: Wolfgang Link w.l...@proxmox.com --- src/PVE/API2/LXC.pm | 60 + src/PVE/LXC.pm | 8 +++ src/pct | 2 ++ 3 files changed, 70 insertions(+) diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm index

[pve-devel] [PATCH] Add Snapshot to LXC

2015-07-17 Thread Wolfgang Link
Signed-off-by: Wolfgang Link w.l...@proxmox.com --- www/manager/Makefile| 2 + www/manager/Utils.js| 3 + www/manager/lxc/Config.js | 9 +- www/manager/lxc/Snapshot.js | 198 ++ www/manager/lxc/SnapshotTree.js | 304

[pve-devel] [PATCH 7/9] Move LXC start and stop from API2 to LXC.pm for reuse.

2015-07-17 Thread Wolfgang Link
Signed-off-by: Wolfgang Link w.l...@proxmox.com --- src/PVE/API2/LXC.pm | 98 ++--- src/PVE/LXC.pm | 104 +++- 2 files changed, 107 insertions(+), 95 deletions(-) diff --git a/src/PVE/API2/LXC.pm b

[pve-devel] LXC Snapshot

2015-07-17 Thread Wolfgang Link
This patch series add the capability to make snapshots with LXC on storages who support sanpshots. ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

[pve-devel] [PATCH 5/9] Add delsnap functionality

2015-07-17 Thread Wolfgang Link
Signed-off-by: Wolfgang Link w.l...@proxmox.com --- src/PVE/LXC.pm | 56 ++-- 1 file changed, 54 insertions(+), 2 deletions(-) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index d52b743..ff4eef9 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm

[pve-devel] [PATCH 1/9] Extend lxc config with options for snapshot

2015-07-17 Thread Wolfgang Link
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.l...@proxmox.com --- src/PVE/LXC.pm | 323

[pve-devel] [PATCH 3/9] Add snapshot functionality on zfs to lxc

2015-07-17 Thread Wolfgang Link
Signed-off-by: Wolfgang Link w.l...@proxmox.com --- src/PVE/LXC.pm | 126 +++-- 1 file changed, 123 insertions(+), 3 deletions(-) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index 3bb69ca..dc351c6 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE

[pve-devel] [PATCH 9/9] Complete the snapshot API2

2015-07-17 Thread Wolfgang Link
Signed-off-by: Wolfgang Link w.l...@proxmox.com --- src/PVE/API2/LXC.pm | 253 1 file changed, 253 insertions(+) diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm index 4e50b78..8d79021 100644 --- a/src/PVE/API2/LXC.pm +++ b/src/PVE/API2

[pve-devel] [PATCH 6/9] Add snapshot rollback to API2

2015-07-17 Thread Wolfgang Link
Signed-off-by: Wolfgang Link w.l...@proxmox.com --- src/PVE/API2/LXC.pm | 43 +++ src/PVE/LXC.pm | 5 + src/pct | 2 ++ 3 files changed, 50 insertions(+) diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm index 1c4d788..daf68ca

[pve-devel] [PATCH 8/9] Add rollback functionality

2015-07-17 Thread Wolfgang Link
Signed-off-by: Wolfgang Link w.l...@proxmox.com --- src/PVE/LXC.pm | 56 +++- 1 file changed, 55 insertions(+), 1 deletion(-) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index f04db22..3ebb2e0 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm

[pve-devel] [PATCH 4/9] Add delsnapshot to LXC API2

2015-07-17 Thread Wolfgang Link
Signed-off-by: Wolfgang Link w.l...@proxmox.com --- src/PVE/API2/LXC.pm | 48 src/PVE/LXC.pm | 6 ++ src/pct | 2 ++ 3 files changed, 56 insertions(+) diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm index e63b73b

[pve-devel] [PATCH] Add Snapshot to LXC

2015-07-17 Thread Wolfgang Link
Signed-off-by: Wolfgang Link w.l...@proxmox.com --- www/manager/Makefile| 2 + www/manager/Utils.js| 3 + www/manager/lxc/Config.js | 9 +- www/manager/lxc/Snapshot.js | 198 ++ www/manager/lxc/SnapshotTree.js | 304

[pve-devel] LXC Snapshot

2015-07-17 Thread Wolfgang Link
This patch series add the capability to make snapshots with LXC on storages who support sanpshots. ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

[pve-devel] [PATCH] fix bug #781: separate CPU and memory in editor

2015-10-23 Thread Wolfgang Link
This is necessary because CPU are not hot-plug-able and memory are hot-plug-able. also this will be useful for the new resource window. --- www/manager/Makefile| 1 + www/manager/lxc/ResourceEdit.js | 79 +++ www/manager/lxc/Resources.js| 92

[pve-devel] [PATCH] fix create CT: this fix the create CT what happend in previous refactoring.

2015-10-23 Thread Wolfgang Link
--- www/manager/lxc/CreateWizard.js | 15 +++-- www/manager/lxc/ResourceEdit.js | 49 - 2 files changed, 56 insertions(+), 8 deletions(-) diff --git a/www/manager/lxc/CreateWizard.js b/www/manager/lxc/CreateWizard.js index c0a30a3..c862d44 100644

[pve-devel] [PATCH] Change die to warn if a nohotplug feature will be change on a running CT.

2015-10-23 Thread Wolfgang Link
this is logical because we change all hotplug feature and the the changes are updated in the config. --- src/PVE/LXC.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index 4b9ace5..3195fbd 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@

[pve-devel] [PATCH_V2 pve-container] fix bug #770: CPU usage stats for containers

2015-10-29 Thread Wolfgang Link
--- src/PVE/LXC.pm | 57 + 1 file changed, 57 insertions(+) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index 093d4f4..d3315f4 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -18,11 +18,14 @@ use PVE::Tools qw($IPV6RE $IPV4RE

[pve-devel] [PATCH_V2 pve-container] fix bug #770: CPU usage stats for containers

2015-10-29 Thread Wolfgang Link
--- src/PVE/LXC.pm | 57 + 1 file changed, 57 insertions(+) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index 0fd2ec8..e3160e4 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -18,11 +18,14 @@ use PVE::Tools qw($IPV6RE $IPV4RE

[pve-devel] [PATCH pve-container 1/2] move resize to have it available in the pveshell and at the rest api

2015-10-28 Thread Wolfgang Link
--- src/PVE/API2/LXC.pm| 147 + src/PVE/API2/LXC/Config.pm | 146 src/PVE/CLI/pct.pm | 2 +- 3 files changed, 148 insertions(+), 147 deletions(-) diff --git a/src/PVE/API2/LXC.pm

[pve-devel] [PATCH pve-container 2/2] Start a worker in lxc resize.

2015-10-28 Thread Wolfgang Link
It is necessary because if we resize a disk it can take longer. so to prevent long waiting time fork a worker process. --- src/PVE/API2/LXC.pm | 72 - 1 file changed, 38 insertions(+), 34 deletions(-) diff --git a/src/PVE/API2/LXC.pm

[pve-devel] [PATCH pve-manager 5/5] add mouint point to GUI

2015-10-28 Thread Wolfgang Link
--- www/manager/lxc/Resources.js | 9 + 1 file changed, 9 insertions(+) diff --git a/www/manager/lxc/Resources.js b/www/manager/lxc/Resources.js index f99d62b..7149ff0 100644 --- a/www/manager/lxc/Resources.js +++ b/www/manager/lxc/Resources.js @@ -81,6 +81,15 @@

[pve-devel] [PATCH pve-manager 3/5] move Root Disk form Options to Resources and add icon for it

2015-10-28 Thread Wolfgang Link
--- www/manager/lxc/Options.js | 4 www/manager/lxc/Resources.js | 5 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/www/manager/lxc/Options.js b/www/manager/lxc/Options.js index 8461514..fffd8e7 100644 --- a/www/manager/lxc/Options.js +++ b/www/manager/lxc/Options.js

[pve-devel] [PATCH pve-manager 1/5] add swap icon for LXC resources

2015-10-28 Thread Wolfgang Link
--- www/css/ext-pve.css | 15 +++ www/images/Makefile | 4 +++- www/images/swap.png | Bin 0 -> 926 bytes 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 www/images/swap.png diff --git a/www/css/ext-pve.css b/www/css/ext-pve.css index 39c5e50..d9461d2 100644

[pve-devel] [PATCH pve-manager 4/5] add resize LXC Mountpoint at the GUI

2015-10-28 Thread Wolfgang Link
--- www/manager/Makefile | 1 + www/manager/lxc/MPResize.js | 104 +++ www/manager/lxc/Resources.js | 51 - 3 files changed, 154 insertions(+), 2 deletions(-) create mode 100644 www/manager/lxc/MPResize.js diff --git

[pve-devel] [PATCH] add bios report to pvereport

2015-10-28 Thread Wolfgang Link
--- bin/pvereport | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bin/pvereport b/bin/pvereport index 0fe3482..514cc9a 100755 --- a/bin/pvereport +++ b/bin/pvereport @@ -20,6 +20,8 @@ my @net = ('ifconfig', 'cat /etc/network/interfaces', 'grep . /etc/pve/firewall/

[pve-devel] [PATCH] .

2015-10-29 Thread Wolfgang Link
--- src/PVE/LXC.pm | 71 ++ 1 file changed, 71 insertions(+) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index 4b9ace5..4d8446c 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -18,11 +18,14 @@ use PVE::Tools qw($IPV6RE $IPV4RE

[pve-devel] [PATCH 2/2] fix bug #770: Network stats for containers

2015-10-29 Thread Wolfgang Link
--- src/PVE/LXC.pm | 14 ++ 1 file changed, 14 insertions(+) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index 3ba0e58..d1f9ad5 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -893,6 +893,20 @@ sub vmstatus { } } +my $netdev =

[pve-devel] [PATCH 1/2] fix bug #770: CPU usage stats for containers

2015-10-29 Thread Wolfgang Link
--- src/PVE/LXC.pm | 57 + 1 file changed, 57 insertions(+) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index 093d4f4..3ba0e58 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -18,11 +18,14 @@ use PVE::Tools qw($IPV6RE $IPV4RE

[pve-devel] [PATCH pve-stotage] insert the format type at volume_resize

2015-10-28 Thread Wolfgang Link
qemu-img needs now the format to resize image. --- PVE/Storage/Plugin.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PVE/Storage/Plugin.pm b/PVE/Storage/Plugin.pm index d65bd11..ccec759 100644 --- a/PVE/Storage/Plugin.pm +++ b/PVE/Storage/Plugin.pm @@ -655,7 +655,9 @@

[pve-devel] [PATCH lvm] Insert a scannfilter that zfs zvols will not be scanned.

2015-11-13 Thread Wolfgang Link
This can make probelems with zvol that have lvm pools on it. --- patchdir/filter_zvols_in_lvm.conf.patch | 15 +++ patchdir/series | 1 + 2 files changed, 16 insertions(+) create mode 100644 patchdir/filter_zvols_in_lvm.conf.patch diff --git

[pve-devel] [PATCH] fix bug #813: allow mountpoints or VMdisk which are not on zfs, if they are not include in backup.

2015-11-10 Thread Wolfgang Link
LXC: MP are in the default setting exclude from backup, so we do not sync mp at default. if they have the flag backup=1 we sync them. QEMU: VMDisk will be synced always except they have a flag backup=no. --- pve-zsync | 21 + 1 file changed, 17 insertions(+), 4 deletions(-)

[pve-devel] [PATCH] Change output format for list and status

2015-11-10 Thread Wolfgang Link
--- pve-zsync | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pve-zsync b/pve-zsync index 5edf4aa..38dc317 100644 --- a/pve-zsync +++ b/pve-zsync @@ -415,16 +415,16 @@ sub list { my $cfg = read_cron(); -my $list =

[pve-devel] [PATCH qemu-server] improve complete_storage, only show storages which have the capability to run qemu images.

2015-11-09 Thread Wolfgang Link
--- PVE/QemuServer.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index a109ea9..aa4ba2b 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -5433,6 +5433,7 @@ sub restore_vma_archive { print "restore vma archive: $cmd\n";

[pve-devel] [PATCH pve-zsync] fix to many slashes in recv path

2015-11-03 Thread Wolfgang Link
this corrupt zfs recv --- pve-zsync | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pve-zsync b/pve-zsync index 4941456..005795f 100644 --- a/pve-zsync +++ b/pve-zsync @@ -43,7 +43,7 @@ my $HOSTv4RE0 = "(?:[\\w\\.\\-_]+|$IPV4RE)"; # hostname or ipv4 address my

[pve-devel] [PATCH_V2 pve-container] fix to many slashes in recv pat

2015-11-03 Thread Wolfgang Link
--- pve-zsync | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pve-zsync b/pve-zsync index 4941456..1029b30 100644 --- a/pve-zsync +++ b/pve-zsync @@ -825,10 +825,13 @@ sub send_image { my $bwl = $param->{limit}*1024; push @$cmd, \'|', 'cstream', '-t', $bwl;

[pve-devel] [PATCH pve-zsync 4/5] add disk parser for LXC

2015-11-05 Thread Wolfgang Link
--- pve-zsync | 35 --- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/pve-zsync b/pve-zsync index 3af504b..caf0712 100644 --- a/pve-zsync +++ b/pve-zsync @@ -699,11 +699,18 @@ sub get_disks { my $cmd = []; push @$cmd, 'ssh',

[pve-devel] [PATCH pve-zsync 1/5] improve vm_exist: now it check both lxc and qemu and return the type of the VM

2015-11-05 Thread Wolfgang Link
--- pve-zsync | 29 + 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/pve-zsync b/pve-zsync index d16b60a..1211ff1 100644 --- a/pve-zsync +++ b/pve-zsync @@ -17,7 +17,9 @@ my $CONFIG_PATH = "/var/lib/${PROGNAME}/"; my $STATE =

[pve-devel] [PATCH pve-zsync 5/5] extend send_config with method local

2015-11-05 Thread Wolfgang Link
what can be used to make local backups --- pve-zsync | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pve-zsync b/pve-zsync index caf0712..705d311 100644 --- a/pve-zsync +++ b/pve-zsync @@ -576,8 +576,10 @@ sub sync { $source->{last_part} =

[pve-devel] [PATCH pve-zsync 3/5] extend send_config: now it support's container too.

2015-11-05 Thread Wolfgang Link
--- pve-zsync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pve-zsync b/pve-zsync index 302c33e..3af504b 100644 --- a/pve-zsync +++ b/pve-zsync @@ -864,7 +864,7 @@ sub send_image { sub send_config{ my ($source, $dest, $method) = @_; -my $source_target

[pve-devel] [PATCH pve-zsync] save the config in an extra dir.

2015-11-05 Thread Wolfgang Link
The name of the dir, where the conf will be saved. Is the same name like the last subvol from the dest path. --- pve-zsync | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/pve-zsync b/pve-zsync index 705d311..0f31c46 100644 --- a/pve-zsync +++ b/pve-zsync @@

[pve-devel] [PATCH pve-zsync] improve reliability and recover chnged snapshots on source

2015-11-04 Thread Wolfgang Link
--- pve-zsync | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pve-zsync b/pve-zsync index 1029b30..d16b60a 100644 --- a/pve-zsync +++ b/pve-zsync @@ -830,8 +830,8 @@ sub send_image { push @$cmd, \'|'; push @$cmd, 'ssh', "root\@$dest->{ip}", '--' if $dest->{ip};

[pve-devel] [PATCH pve-container] fix bug #799: resize running CT with no loopdev.

2015-11-02 Thread Wolfgang Link
now it is handeled if the mountpoint is not mounted by loopdev. --- src/PVE/API2/LXC.pm | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm index 3f6bafe..552f6f9 100644 --- a/src/PVE/API2/LXC.pm +++ b/src/PVE/API2/LXC.pm @@

[pve-devel] [PATCH 1/2] decode in config name the type of config.

2015-11-05 Thread Wolfgang Link
The backuped config will now include in the name of the config file the type of vm. .conf..rep__ --- pve-zsync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pve-zsync b/pve-zsync index 0f31c46..0add81a 100644 --- a/pve-zsync +++ b/pve-zsync @@ -888,7 +888,7 @@ sub

Re: [pve-devel] option to set image format?

2015-11-06 Thread Wolfgang Link
Your on the latest version? On 11/06/2015 07:54 AM, Martin Waschbüsch wrote: Hi all, I just noticed that on my (upgraded to version 4) cluster, a qmrestore will result with this warning: WARNING: Image format was not specified for

[pve-devel] [PATCH 2/2] cleanup

2015-11-05 Thread Wolfgang Link
--- pve-zsync | 614 +++--- 1 file changed, 307 insertions(+), 307 deletions(-) diff --git a/pve-zsync b/pve-zsync index 0add81a..0d8088f 100644 --- a/pve-zsync +++ b/pve-zsync @@ -31,15 +31,15 @@ my $IPV6H16 = "(?:[0-9a-fA-F]{1,4})"; my

[pve-devel] [PATCH] repair cleanup formating for man and remove for better handling the slashes at the end of pathes.

2015-11-06 Thread Wolfgang Link
--- pve-zsync | 172 +++--- 1 file changed, 86 insertions(+), 86 deletions(-) diff --git a/pve-zsync b/pve-zsync index 0d8088f..c7e6e81 100644 --- a/pve-zsync +++ b/pve-zsync @@ -13,15 +13,15 @@ use IO::File; use String::ShellQuote

[pve-devel] [PATCH pve-storage] fix bug #809: inheritance from ZFSPoolPlugin is not possible because we have to handle there subvols too.

2015-11-05 Thread Wolfgang Link
--- PVE/Storage/ZFSPlugin.pm | 6 ++ 1 file changed, 6 insertions(+) diff --git a/PVE/Storage/ZFSPlugin.pm b/PVE/Storage/ZFSPlugin.pm index df4c6d7..00f727e 100644 --- a/PVE/Storage/ZFSPlugin.pm +++ b/PVE/Storage/ZFSPlugin.pm @@ -312,6 +312,12 @@ sub volume_resize { return $new_size; }

[pve-devel] [PATCH 2/2] improve error msg

2015-11-06 Thread Wolfgang Link
--- pve-zsync | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pve-zsync b/pve-zsync index c54441d..283b55c 100644 --- a/pve-zsync +++ b/pve-zsync @@ -761,6 +761,8 @@ sub parse_disks { push @$cmd, 'pvesm', 'path', "$stor$disk"; my $path = run_cmd($cmd); + die "Get no

[pve-devel] [PATCH 1/2] fix disk parser

2015-11-06 Thread Wolfgang Link
--- pve-zsync | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pve-zsync b/pve-zsync index c7e6e81..c54441d 100644 --- a/pve-zsync +++ b/pve-zsync @@ -774,13 +774,13 @@ sub parse_disks { $disks->{$num}->{all} .= "\/$disk"; $num++; - } elsif

[pve-devel] [PATCH 1/2] change function pase_size to PVE::JSONSchema::parse_size

2015-10-15 Thread Wolfgang Link
--- src/PVE/LXC.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index 8efc0c6..69bc502 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -887,7 +887,7 @@ sub parse_ct_mountpoint { return undef if !defined($res->{volume}); if

[pve-devel] [PATCH 2/2] remove unused functions

2015-10-15 Thread Wolfgang Link
--- src/PVE/LXC.pm | 34 -- 1 file changed, 34 deletions(-) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index 69bc502..a9a67c1 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -838,40 +838,6 @@ sub vmstatus { return $list; } -my $parse_size = sub { -

[pve-devel] [PATCH pve-container] fix bug #752: correct size from mount point

2015-10-12 Thread Wolfgang Link
--- src/PVE/API2/LXC/Config.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/API2/LXC/Config.pm b/src/PVE/API2/LXC/Config.pm index cd1a9cd..d43489f 100644 --- a/src/PVE/API2/LXC/Config.pm +++ b/src/PVE/API2/LXC/Config.pm @@ -261,7 +261,7 @@

[pve-devel] [PATCH pve-libspice-server] add debian fixes for DSA-3371-1

2015-10-12 Thread Wolfgang Link
--- Makefile | 2 +- .../0001-worker-validate-correctly-surfaces.patch | 117 + ...d-double-free-or-double-create-of-surface.patch | 41 ...efine-a-constant-to-limit-data-from-guest.patch | 42

[pve-devel] [PATCH pve-storage 2/2] refactor volunme_resize to differentiate subvol and zvol

2015-10-07 Thread Wolfgang Link
--- PVE/Storage/ZFSPoolPlugin.pm | 19 +++ 1 file changed, 19 insertions(+) diff --git a/PVE/Storage/ZFSPoolPlugin.pm b/PVE/Storage/ZFSPoolPlugin.pm index 72dfd0f..b8bd509 100644 --- a/PVE/Storage/ZFSPoolPlugin.pm +++ b/PVE/Storage/ZFSPoolPlugin.pm @@ -577,11 +577,30 @@ sub

[pve-devel] [PATCH pve-storage 1/2] add zfs_get_subvol_size: on container we are useing subvol.

2015-10-07 Thread Wolfgang Link
--- PVE/Storage/ZFSPoolPlugin.pm | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/PVE/Storage/ZFSPoolPlugin.pm b/PVE/Storage/ZFSPoolPlugin.pm index 8002dda..72dfd0f 100644 --- a/PVE/Storage/ZFSPoolPlugin.pm +++ b/PVE/Storage/ZFSPoolPlugin.pm @@ -308,6

[pve-devel] [PATCH] fix bug #750: deactivate volumes to be sure there are no volumes active on the source node

2015-10-09 Thread Wolfgang Link
--- src/PVE/LXC/Migrate.pm | 4 1 file changed, 4 insertions(+) diff --git a/src/PVE/LXC/Migrate.pm b/src/PVE/LXC/Migrate.pm index 1a51829..58e4ea2 100644 --- a/src/PVE/LXC/Migrate.pm +++ b/src/PVE/LXC/Migrate.pm @@ -113,6 +113,10 @@ sub phase1 { PVE::LXC::umount_all($vmid,

Re: [pve-devel] [PATCH pve-container] fix bug LXC Backup snapshot mode on zfspool

2015-11-18 Thread Wolfgang Link
Not really. It makes an shnapshot but can't mount the snapshot, but we get no error. Try to mount a snapshot with this code. > Dietmar Maurer hat am 18. November 2015 um 17:38 > geschrieben: > > > > now it is possible to make a snapshot and mount it to backup it. > > This

<    1   2   3   4   5   6   7   8   9   10   >