Re: [pve-devel] pve-manager : expose balloon to gui

2012-12-18 Thread Alexandre DERUMIER
then install the service: (as administrator) blnsrv.exe --install and check that the balloon service is running. that's all - Mail original - De: Dietmar Maurer diet...@proxmox.com À: Alexandre DERUMIER aderum...@odiso.com Cc: pve-devel@pve.proxmox.com Envoyé: Mardi 18 Décembre 2012 14

Re: [pve-devel] pve-manager : expose balloon to gui

2012-12-18 Thread Alexandre DERUMIER
...@proxmox.com À: Alexandre DERUMIER aderum...@odiso.com Cc: pve-devel@pve.proxmox.com Envoyé: Mardi 18 Décembre 2012 15:22:55 Objet: RE: [pve-devel] pve-manager : expose balloon to gui What guest OS (windows version) and what binaries virtio drivers do you use exactly? I have tested

Re: [pve-devel] pve-manager : expose balloon to gui

2012-12-18 Thread Alexandre DERUMIER
) ... it was working fine with qemu 1.3 + 2 firsts balloon stats patchs from qemu mailing. Maybe something have changed ? - Mail original - De: Alexandre DERUMIER aderum...@odiso.com À: Dietmar Maurer diet...@proxmox.com Cc: pve-devel@pve.proxmox.com Envoyé: Mardi 18 Décembre

Re: [pve-devel] pve-manager : expose balloon to gui

2012-12-18 Thread Alexandre DERUMIER
{u'return': 2147483647} (QEMU) qom-get path=/machine/peripheral/balloon0 property=stat-total-memory {u'return': 2147483647} I'll do test with win2008R2 tomorrow - Mail original - De: Alexandre DERUMIER aderum...@odiso.com À: Dietmar Maurer diet...@proxmox.com Cc: pve-devel

Re: [pve-devel] pve-manager : expose balloon to gui

2012-12-18 Thread Alexandre DERUMIER
90 88 45 Bvd du Général Leclerc 59100 Roubaix 12 rue Marivaux 75002 Paris - Mail original - De: Dietmar Maurer diet...@proxmox.com À: Alexandre DERUMIER aderum...@odiso.com Cc: pve-devel@pve.proxmox.com Envoyé: Mardi 18 Décembre 2012 18:01:10 Objet: RE: [pve-devel] pve-manager

[pve-devel] balloon stats on win2008r2 working

2012-12-19 Thread Alexandre DERUMIER
- I have just installed a win2008R2 (X64) install ballon driver -go to hardware devices management, find pci device without driver. - update driver-choose disk then using 0.48 virtio driver, choose the whl directory then install service (I put files in c:\program files\balloon) #cd

Re: [pve-devel] balloon stats on win2008r2 working

2012-12-19 Thread Alexandre DERUMIER
-memory {u'return': 1770397696} ... - Mail original - De: Alexandre DERUMIER aderum...@odiso.com À: pve-devel@pve.proxmox.com Envoyé: Mercredi 19 Décembre 2012 12:05:06 Objet: [pve-devel] balloon stats on win2008r2 working - I have just installed a win2008R2 (X64) install ballon

Re: [pve-devel] balloon stats on win2008r2 working

2012-12-19 Thread Alexandre DERUMIER
been enabled or guest doesn't support 'stat-free-memory'}} - Mail original - De: Dietmar Maurer diet...@proxmox.com À: Alexandre DERUMIER aderum...@odiso.com, pve-devel@pve.proxmox.com Envoyé: Mercredi 19 Décembre 2012 12:45:31 Objet: RE: [pve-devel] balloon stats on win2008r2

Re: [pve-devel] balloon stats on win2008r2 working

2012-12-19 Thread Alexandre DERUMIER
resend qom-set, so we can also check that, if it's not increasing, resend qom-set What Do you think ? - Mail original - De: Alexandre DERUMIER aderum...@odiso.com À: Dietmar Maurer diet...@proxmox.com Cc: pve-devel@pve.proxmox.com Envoyé: Mercredi 19 Décembre 2012 13:09:35 Objet: Re

[pve-devel] [PATCH] balloon : reset pooling if balloon driver doesn't return memory stats

2012-12-19 Thread Alexandre Derumier
fix windows stats (tested on win2003 win2008R2) Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/QemuServer.pm | 13 + 1 file changed, 13 insertions(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 81a9351..7569d55 100644 --- a/PVE/QemuServer.pm +++ b/PVE

Re: [pve-devel] RFC : pve-manager : screenshot of template-cloning feature

2012-12-19 Thread Alexandre DERUMIER
Thanks for the feedback. I'll try to have some designer ressource at work for icons ;) Don't know, But maybe ,is is exist some opensource icons library for this ? - Mail original - De: Dietmar Maurer diet...@proxmox.com À: Alexandre DERUMIER aderum...@odiso.com, pve-devel

Re: [pve-devel] [PATCH] balloon : reset pooling if balloon driver doesn't return memory stats

2012-12-20 Thread Alexandre DERUMIER
I uploaded a fixed version - please test. Works perfectly ! (win2003 win2008R2) Thanks ! - Mail original - De: Dietmar Maurer diet...@proxmox.com À: Alexandre Derumier aderum...@odiso.com, pve-devel@pve.proxmox.com Envoyé: Jeudi 20 Décembre 2012 09:23:35 Objet: RE: [pve-devel

Re: [pve-devel] migration problems since qemu 1.3

2012-12-20 Thread Alexandre DERUMIER
Do you mean migration between qemu-kvm 1.2 - qemu 1.3 ? (because it's not supported) or migration between qemu 1.3 - qemu 1.3 ? also,I don't know if it's related, but in the changelog: http://wiki.qemu.org/ChangeLog/1.3 Live Migration, Save/Restore The stop and cont commands have new

[pve-devel] live migration doesn't start with balloon enabled

2012-12-20 Thread Alexandre DERUMIER
Hi dietmar, with balloon, migration doesn't start, because of qmp command send at start: if (!defined($conf-{balloon}) || $conf-{balloon}) { vm_mon_cmd($vmid, balloon, value = $conf-{balloon}*1024*1024) if $conf-{balloon}; vm_mon_cmd($vmid, 'qom-set',

Re: [pve-devel] live migration doesn't start with balloon enabled

2012-12-20 Thread Alexandre DERUMIER
or maybe in sub check_running { die unable to find configuration file for VM $vmid - no such machine\n if !$nocheck ! -f $filename; do we really to check if $filename exist ? - Mail original - De: Alexandre DERUMIER aderum...@odiso.com À: pve-devel@pve.proxmox.com

Re: [pve-devel] migration problems since qemu 1.3

2012-12-20 Thread Alexandre DERUMIER
, value = 2); } (vm_mon_cmd_nocheck) - Mail original - De: Stefan Priebe - Profihost AG s.pri...@profihost.ag À: Alexandre DERUMIER aderum...@odiso.com Cc: pve-devel@pve.proxmox.com Envoyé: Jeudi 20 Décembre 2012 11:48:06 Objet: Re: [pve-devel] migration

[pve-devel] [PATCH] usr vm_mon_cmd_nocheck for balloon qmp command at vm_start

2012-12-20 Thread Alexandre Derumier
fix live migration, as we don't have the vm config file Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/QemuServer.pm |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 81a9351..9c64757 100644 --- a/PVE

Re: [pve-devel] [PATCH] auto balloning with mom algorithm implementation

2012-12-20 Thread Alexandre DERUMIER
Ok,thanks, I'll try that this afternoon ! - Mail original - De: Dietmar Maurer diet...@proxmox.com À: Alexandre Derumier aderum...@odiso.com, pve-devel@pve.proxmox.com Envoyé: Jeudi 20 Décembre 2012 14:02:38 Objet: RE: [pve-devel] [PATCH] auto balloning with mom algorithm

[pve-devel] qemu-server : allow manual ballooning if shares is not defined

2012-12-20 Thread Alexandre Derumier
Allow manual ballooning (qm set --balloon XXX), if shares is not defined or = 0. if balloon = 0, we set balloon to max_memory ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

[pve-devel] [PATCH] allow manual ballooning if shares is not enabled

2012-12-20 Thread Alexandre Derumier
Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/API2/Qemu.pm |8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index 09ab1e7..9bdbc0a 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -897,9 +897,15

Re: [pve-devel] migration problems since qemu 1.3

2012-12-20 Thread Alexandre DERUMIER
running ? (is ssh working?) - Mail original - De: Stefan Priebe - Profihost AG s.pri...@profihost.ag À: Alexandre DERUMIER aderum...@odiso.com Cc: pve-devel@pve.proxmox.com Envoyé: Jeudi 20 Décembre 2012 15:27:53 Objet: Re: [pve-devel] migration problems since qemu 1.3 Hi, i

Re: [pve-devel] migration problems since qemu 1.3

2012-12-20 Thread Alexandre DERUMIER
Just an idea (not sure it's the problem),can you try to commment $qmpclient-queue_cmd($vmid, $ballooncb, 'query-balloon'); in QemuServer.pm, line 2081. and restart pvedaemon pvestatd ? - Mail original - De: Stefan Priebe - Profihost AG s.pri...@profihost.ag À: Alexandre DERUMIER

Re: [pve-devel] migration problems since qemu 1.3

2012-12-20 Thread Alexandre DERUMIER
Hi Stefan, any news ? I'm trying to reproduce your problem, but it's works fine for me, no crash... - Mail original - De: Stefan Priebe - Profihost AG s.pri...@profihost.ag À: Alexandre DERUMIER aderum...@odiso.com Cc: pve-devel@pve.proxmox.com Envoyé: Jeudi 20 Décembre 2012 16:09

Re: [pve-devel] [PATCH] auto balloning with mom algorithm implementation

2012-12-21 Thread Alexandre DERUMIER
I have done some tests yesterday, with around 10vm, overcommiting the host memory a lot, (mixing windows/linux vm) and it's seem to works fine. I'll try to do more extensive test next week. - Mail original - De: Dietmar Maurer diet...@proxmox.com À: Alexandre Derumier aderum

Re: [pve-devel] [PATCH] auto balloning with mom algorithm implementation

2012-12-21 Thread Alexandre DERUMIER
The current algorithm has some bug - I will try to improve more. Not sure about it, But I have seen some vm more ballonning than other. (with same shares value). - Mail original - De: Dietmar Maurer diet...@proxmox.com À: Alexandre DERUMIER aderum...@odiso.com Cc: pve-devel

Re: [pve-devel] pve-storage: new netapp pnfs cluster-mode plugin

2012-12-21 Thread Alexandre DERUMIER
Hi Dietmar, Can you give me a feedback about this plugin ? I really would like to push it upstream. Regards, Alexandre - Mail original - De: Alexandre Derumier aderum...@odiso.com À: pve-devel@pve.proxmox.com Envoyé: Jeudi 20 Décembre 2012 09:09:41 Objet: [pve-devel] pve-storage

Re: [pve-devel] migration problems since qemu 1.3

2012-12-21 Thread Alexandre DERUMIER
Hi Stefan, I'll try to reproduce it, maybe qemu-devel can help too ? I'll be offline until 26/12 (christmas). Mery Xmas to all. Alexandre - Mail original - De: Stefan Priebe - Profihost AG s.pri...@profihost.ag À: Alexandre DERUMIER aderum...@odiso.com Cc: pve-devel

Re: [pve-devel] migration problems since qemu 1.3

2012-12-23 Thread Alexandre DERUMIER
=7ec81e56edc2b2007ce0ae3982aa5c18af9546ab - Mail original - De: Stefan Priebe - Profihost AG s.pri...@profihost.ag À: Dietmar Maurer diet...@proxmox.com Cc: Alexandre DERUMIER aderum...@odiso.com, pve-devel@pve.proxmox.com Envoyé: Samedi 22 Décembre 2012 20:19:37 Objet: Re: [pve-devel

Re: [pve-devel] migration problems since qemu 1.3

2012-12-23 Thread Alexandre DERUMIER
- De: Stefan Priebe s.pri...@profihost.ag À: Alexandre DERUMIER aderum...@odiso.com Cc: pve-devel@pve.proxmox.com, Dietmar Maurer diet...@proxmox.com Envoyé: Dimanche 23 Décembre 2012 14:21:07 Objet: Re: [pve-devel] migration problems since qemu 1.3 Hi, Am 23.12.2012 14:18, schrieb Alexandre

Re: [pve-devel] Baloon Device is the problem! Re: migration problems since qemu 1.3

2012-12-25 Thread Alexandre DERUMIER
? just to be sure, can you try to do info balloon from human monitor console ? (I would like to see if the balloon driver is correctly working) - Mail original - De: Stefan Priebe s.pri...@profihost.ag À: Alexandre DERUMIER aderum...@odiso.com Cc: pve-devel@pve.proxmox.com Envoyé: Mardi

Re: [pve-devel] Baloon Device is the problem! Re: migration problems since qemu 1.3

2012-12-26 Thread Alexandre DERUMIER
)) { eval { vm_mon_cmd_nocheck($vmid, migrate_set_downtime, value = $migrate_downtime); }; } ... - Mail original - De: Stefan Priebe s.pri...@profihost.ag À: Alexandre DERUMIER aderum...@odiso.com Cc: pve-devel@pve.proxmox.com Envoyé: Mercredi 26 Décembre 2012 13:18:33 Objet: Re

Re: [pve-devel] Baloon Device is the problem! Re: migration problems since qemu 1.3

2012-12-26 Thread Alexandre DERUMIER
. - Mail original - De: Stefan Priebe s.pri...@profihost.ag À: Alexandre DERUMIER aderum...@odiso.com Cc: pve-devel@pve.proxmox.com Envoyé: Mercredi 26 Décembre 2012 13:18:33 Objet: Re: [pve-devel] Baloon Device is the problem! Re: migration problems since qemu 1.3 Hi

Re: [pve-devel] Baloon Device is the problem! Re: migration problems since qemu 1.3

2012-12-26 Thread Alexandre DERUMIER
in ms for downtime that was calculated on the last bitmap round (json-int) - Mail original - De: Stefan Priebe s.pri...@profihost.ag À: Alexandre DERUMIER aderum...@odiso.com Cc: pve-devel@pve.proxmox.com Envoyé: Mercredi 26 Décembre 2012 20:52:56 Objet: Re: [pve-devel

Re: [pve-devel] [PATCH V2] - fix setting migration parameters

2012-12-26 Thread Alexandre DERUMIER
somes comments: - default = 1, + default = 0, Not sure about lower default migration downtime value to 0, because 0 downtime is nearly impossible to target. Default qemu value is 0.030, so maybe can we simply remove - default = 0, and don't send any qmp command by default. +

[pve-devel] [PATCH] - fix setting migration parameters

2012-12-26 Thread Alexandre Derumier
From: Stefan Priebe s.pri...@profihost.ag - move migration speed/downtime from QemuServer vm_start to QemuMigrate phase2 - lower default migration downtime value to 0 changelog by aderumier - remove default value of 1s for migrate_downtime - add logs downtime and expected downtime

Re: [pve-devel] [PATCH V2] - fix setting migration parameters

2012-12-26 Thread Alexandre DERUMIER
Cleaner code. Nobody expects that those values were set at vm start. We set that since version 1.0 - so 'everybody' expect that this value is set at startup. I agree with stefan, this value should be set before migration. currently, we can't change the migrate_downtime without restart the

Re: [pve-devel] [PATCH] - fix setting migration parameters

2012-12-26 Thread Alexandre DERUMIER
. great, but can we have an extra commit for that? Those changes seems to be unrelated. sure no problem - Mail original - De: Dietmar Maurer diet...@proxmox.com À: Alexandre Derumier aderum...@odiso.com, pve-devel@pve.proxmox.com Envoyé: Jeudi 27 Décembre 2012 07:21:38 Objet: RE: [pve

[pve-devel] [PATCH 3/3] add downtime expected_downtime query-migrate info

2012-12-27 Thread Alexandre Derumier
Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/QemuMigrate.pm |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm index 282cbc5..38f1d05 100644 --- a/PVE/QemuMigrate.pm +++ b/PVE/QemuMigrate.pm @@ -402,7 +402,8

[pve-devel] [PATCH 1/3] move qmp migrate_set_down migrate_set_speed to qemumigrate

2012-12-27 Thread Alexandre Derumier
so we can set the values when the vm is running also use int() to get json working Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/QemuMigrate.pm | 24 PVE/QemuServer.pm | 15 --- 2 files changed, 24 insertions(+), 15 deletions(-) diff

Re: [pve-devel] fix setting migration parameters V3

2012-12-27 Thread Alexandre DERUMIER
...@profihost.ag À: Alexandre Derumier aderum...@odiso.com Cc: pve-devel@pve.proxmox.com Envoyé: Jeudi 27 Décembre 2012 08:52:42 Objet: Re: [pve-devel] fix setting migration parameters V3 Hi, could you please resend your patch? i can't find it. I wanted to look what the extended new values show during

[pve-devel] test: increase migrate_set_downtime only if expected_downtime have more than 30 iterations 0

2012-12-27 Thread Alexandre Derumier
This is a test attempt. (apply on top on 3 others patchs). The idea is to use default 30ms qemu downtime value for migration. If the expected_downtime is more than 30 iterations 0 (could be polished, maybe some average stats can be better), then it's like a never ending migration, so we set

[pve-devel] [PATCH] increase migrate_set_downtime only if expected downtime is more than 30 iterations 0

2012-12-27 Thread Alexandre Derumier
Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/QemuMigrate.pm | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm index dbbeb69..aeb6deb 100644 --- a/PVE/QemuMigrate.pm +++ b/PVE/QemuMigrate.pm

Re: [pve-devel] [PATCH 3/3] add downtime expected_downtime query-migrate info

2012-12-27 Thread Alexandre DERUMIER
Sure you mean just the output in the web GUI? yes - Mail original - De: Stefan Priebe - Profihost AG s.pri...@profihost.ag À: Alexandre DERUMIER aderum...@odiso.com Cc: pve-devel@pve.proxmox.com Envoyé: Jeudi 27 Décembre 2012 11:11:56 Objet: Re: [pve-devel] [PATCH 3/3] add

Re: [pve-devel] [PATCH 3/3] add downtime expected_downtime query-migrate info

2012-12-27 Thread Alexandre DERUMIER
somewhere is qemu - Mail original - De: Stefan Priebe s.pri...@profihost.ag À: Alexandre DERUMIER aderum...@odiso.com Cc: pve-devel@pve.proxmox.com, Dietmar Maurer diet...@proxmox.com Envoyé: Jeudi 27 Décembre 2012 13:00:47 Objet: Re: [pve-devel] [PATCH 3/3] add downtime

Re: [pve-devel] [PATCH 3/3] add downtime expected_downtime query-migrate info

2012-12-27 Thread Alexandre DERUMIER
-by-default.patch should be enough to connect with vnc and test migration I'll keep in touch - Mail original - De: Stefan Priebe s.pri...@profihost.ag À: Alexandre DERUMIER aderum...@odiso.com Cc: pve-devel@pve.proxmox.com, Dietmar Maurer diet...@proxmox.com Envoyé: Jeudi 27 Décembre

[pve-devel] [PATCH 2/2] api2: vm_feature

2012-12-27 Thread Alexandre Derumier
return true/false if vm has feature Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/API2/Qemu.pm | 56 ++ 1 file changed, 56 insertions(+) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index 09ab1e7..a6047e5 100644 --- a/PVE

[pve-devel] [PATCH 1/2] add sub has_feature

2012-12-27 Thread Alexandre Derumier
loop over each disk of the vm config file to find if feature is available. If one of the disk doesn't have the feature, we return undef, else return 1 Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/QemuServer.pm | 37 +++-- 1 file changed, 15

[pve-devel] [PATCH 1/8] storage : has_feature

2012-12-27 Thread Alexandre Derumier
Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/Storage.pm | 15 +++ 1 file changed, 15 insertions(+) diff --git a/PVE/Storage.pm b/PVE/Storage.pm index 17a2377..6a274c6 100755 --- a/PVE/Storage.pm +++ b/PVE/Storage.pm @@ -183,6 +183,21 @@ sub volume_snapshot_delete

[pve-devel] [PATCH 2/8] plugin : has_feature

2012-12-27 Thread Alexandre Derumier
Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/Storage/Plugin.pm | 18 ++ 1 file changed, 18 insertions(+) diff --git a/PVE/Storage/Plugin.pm b/PVE/Storage/Plugin.pm index 886117b..25e012c 100644 --- a/PVE/Storage/Plugin.pm +++ b/PVE/Storage/Plugin.pm @@ -558,6

[pve-devel] [PATCH 3/8] rbd : has_feature

2012-12-27 Thread Alexandre Derumier
Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/Storage/RBDPlugin.pm | 14 ++ 1 file changed, 14 insertions(+) diff --git a/PVE/Storage/RBDPlugin.pm b/PVE/Storage/RBDPlugin.pm index 60bd4e8..bbfae7c 100644 --- a/PVE/Storage/RBDPlugin.pm +++ b/PVE/Storage/RBDPlugin.pm

[pve-devel] [PATCH 5/8] nexenta: has_feature

2012-12-27 Thread Alexandre Derumier
Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/Storage/NexentaPlugin.pm | 14 ++ 1 file changed, 14 insertions(+) diff --git a/PVE/Storage/NexentaPlugin.pm b/PVE/Storage/NexentaPlugin.pm index 386656f..9622548 100644 --- a/PVE/Storage/NexentaPlugin.pm +++ b/PVE

[pve-devel] [PATCH 8/8] iscsidirect : has_feature

2012-12-27 Thread Alexandre Derumier
Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/Storage/ISCSIDirectPlugin.pm |6 ++ 1 file changed, 6 insertions(+) diff --git a/PVE/Storage/ISCSIDirectPlugin.pm b/PVE/Storage/ISCSIDirectPlugin.pm index e2490e8..b648fd5 100644 --- a/PVE/Storage/ISCSIDirectPlugin.pm +++ b

[pve-devel] [PATCH 7/8] iscsi : has_feature

2012-12-27 Thread Alexandre Derumier
Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/Storage/ISCSIPlugin.pm |6 ++ 1 file changed, 6 insertions(+) diff --git a/PVE/Storage/ISCSIPlugin.pm b/PVE/Storage/ISCSIPlugin.pm index 173ca1d..ac8384b 100644 --- a/PVE/Storage/ISCSIPlugin.pm +++ b/PVE/Storage

[pve-devel] [PATCH] enable snapshot button only if vm has snapshot feature

2012-12-27 Thread Alexandre Derumier
Signed-off-by: Alexandre Derumier aderum...@odiso.com --- www/manager/qemu/SnapshotTree.js | 17 + 1 file changed, 17 insertions(+) diff --git a/www/manager/qemu/SnapshotTree.js b/www/manager/qemu/SnapshotTree.js index 0fd1b82..f98c849 100644 --- a/www/manager/qemu

Re: [pve-devel] qemu-server : add has_feature sub to detect storage features

2012-12-27 Thread Alexandre DERUMIER
Thanks ! - Mail original - De: Dietmar Maurer diet...@proxmox.com À: Alexandre Derumier aderum...@odiso.com, pve-devel@pve.proxmox.com Envoyé: Vendredi 28 Décembre 2012 07:56:22 Objet: RE: [pve-devel] qemu-server : add has_feature sub to detect storage features applied

Re: [pve-devel] [PATCH 3/3] add downtime expected_downtime query-migrate info

2012-12-27 Thread Alexandre DERUMIER
DERUMIER aderum...@odiso.com Cc: pve-devel@pve.proxmox.com, Dietmar Maurer diet...@proxmox.com Envoyé: Jeudi 27 Décembre 2012 19:38:49 Objet: Re: [pve-devel] [PATCH 3/3] add downtime expected_downtime query-migrate info Hi, Am 27.12.2012 16:21, schrieb Alexandre DERUMIER: But if it's work fine

Re: [pve-devel] [PATCH 3/3] add downtime expected_downtime query-migrate info

2012-12-28 Thread Alexandre DERUMIER
- ms */ return expected_downtime = migrate_max_downtime(); } return 0; - Mail original - De: Dietmar Maurer diet...@proxmox.com À: Stefan Priebe - Profihost AG s.pri...@profihost.ag Cc: Alexandre DERUMIER aderum...@odiso.com, pve-devel@pve.proxmox.com Envoyé

[pve-devel] pve-storage : dynamic plugin loading ?

2012-12-28 Thread Alexandre DERUMIER
Hi Dietmar, Do you think it's possible to add dynamic plugin loading in pve-storage ? instead: use PVE::Storage::Plugin; use PVE::Storage::DirPlugin; use PVE::Storage::LVMPlugin; use PVE::Storage::NFSPlugin; use PVE::Storage::ISCSIPlugin; use PVE::Storage::RBDPlugin; use

Re: [pve-devel] pve-storage : dynamic plugin loading ?

2012-12-28 Thread Alexandre DERUMIER
) - Mail original - De: Dietmar Maurer diet...@proxmox.com À: Alexandre DERUMIER aderum...@odiso.com Cc: pve-devel@pve.proxmox.com Envoyé: Vendredi 28 Décembre 2012 09:44:23 Objet: RE: [pve-devel] pve-storage : dynamic plugin loading ? No, I do not want that. Instead, I want

Re: [pve-devel] [PATCH] qemu-server: add support for unsecure migration (setting in datacenter.cfg)

2012-12-28 Thread Alexandre DERUMIER
That looks strange - AES-ni should be much faster? Are you sure that squeeze support aes-ni with ssh ? because libssl is quite old - Mail original - De: Dietmar Maurer diet...@proxmox.com À: Stefan Priebe - Profihost AG s.pri...@profihost.ag Cc: pve-devel@pve.proxmox.com Envoyé:

Re: [pve-devel] [PATCH] qemu-server: add support for unsecure migration (setting in datacenter.cfg)

2012-12-28 Thread Alexandre DERUMIER
Are you sure that squeeze support aes-ni with ssh ? because libssl is quite old See here: Add support for AES-NI (Package: libssl1.0.0) http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=644743 - Mail original - De: Alexandre DERUMIER aderum...@odiso.com À: Dietmar Maurer diet

Re: [pve-devel] [PATCH] qemu-server: add support for unsecure migration (setting in datacenter.cfg)

2012-12-28 Thread Alexandre DERUMIER
if we can get 700MB/s there must be a bug somewhere? Maybe you can ask on the ssh mailing lists? Do you have the aes ni intel module loaded ? (#modprobe aesni-intel ) - Mail original - De: Dietmar Maurer diet...@proxmox.com À: Stefan Priebe s.pri...@profihost.ag Cc:

Re: [pve-devel] [PATCH 3/3] add downtime expected_downtime query-migrate info

2012-12-29 Thread Alexandre DERUMIER
oh, ok. I'll tests the patchs mondays. Does migration works fine for you with them ? - Mail original - De: Stefan Priebe s.pri...@profihost.ag À: Alexandre DERUMIER aderum...@odiso.com Cc: pve-devel@pve.proxmox.com, Dietmar Maurer diet...@proxmox.com Envoyé: Samedi 29 Décembre

Re: [pve-devel] [PATCH 3/3] add downtime expected_downtime query-migrate info

2012-12-29 Thread Alexandre DERUMIER
monday. Thanks for the patches ! - Mail original - De: Stefan Priebe s.pri...@profihost.ag À: Alexandre DERUMIER aderum...@odiso.com Cc: pve-devel@pve.proxmox.com, Dietmar Maurer diet...@proxmox.com Envoyé: Samedi 29 Décembre 2012 15:07:30 Objet: Re: [pve-devel] [PATCH 3/3] add

Re: [pve-devel] [PATCH] increase migrate_set_downtime only if expected downtime is more than 30 iterations 0

2012-12-30 Thread Alexandre DERUMIER
== 15){ set_migrate_downtime = migratedowntime + 0.X sec counter = 0; } - Mail original - De: Stefan Priebe - Profihost AG s.pri...@profihost.ag À: Dietmar Maurer diet...@proxmox.com Cc: Alexandre Derumier aderum...@odiso.com, pve-devel@pve.proxmox.com Envoyé: Dimanche 30

Re: [pve-devel] [PATCH] increase migrate_set_downtime only if expected downtime is more than 30 iterations 0

2012-12-30 Thread Alexandre DERUMIER
: Alexandre DERUMIER aderum...@odiso.com Cc: pve-devel@pve.proxmox.com, Dietmar Maurer diet...@proxmox.com Envoyé: Dimanche 30 Décembre 2012 13:25:40 Objet: Re: [pve-devel] [PATCH] increase migrate_set_downtime only if expected downtime is more than 30 iterations 0 Hi, attached a patch

[pve-devel] [PATCH 2/2] add set migrate_downtime default value to 0.1 add number type

2012-12-30 Thread Alexandre Derumier
can be integer or float ex: 1 1.0 0.3 Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/QemuServer.pm |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 10865ad..5c39728 100644 --- a/PVE/QemuServer.pm +++ b/PVE

[pve-devel] [PATCH] fix Bug #293: CDROM size not reset when set to use no media

2012-12-31 Thread Alexandre Derumier
Signed-off-by: Alexandre Derumier aderum...@odiso.com --- 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 ec0424a..db39c62 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -72,7 +72,8 @@ my $create_disks

[pve-devel] ceph 0.56 is coming. do we need to keep compatibility with 0.48 ?

2013-01-02 Thread Alexandre DERUMIER
Hi all (and happy new year ;), Ceph 0.56 stable is coming soon (testing for now, but should go in stable branch in coming days). Do you need to keep compatibility with 0.48 clusters with the storage plugin ? (as rbd is not officially supported) I see 2 new things: -image format V2. required

Re: [pve-devel] ceph 0.56 is coming. do we need to keep compatibility with 0.48 ?

2013-01-02 Thread Alexandre DERUMIER
No, I guess we do not need to be compatible. Ok thanks, I'll send a patch for rbd ls -r - Mail original - De: Dietmar Maurer diet...@proxmox.com À: Alexandre DERUMIER aderum...@odiso.com, pve-devel@pve.proxmox.com Envoyé: Mercredi 2 Janvier 2013 14:49:46 Objet: RE: [pve-devel

[pve-devel] [PATCH 2/2] create rbd volume with format v2

2013-01-03 Thread Alexandre Derumier
Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/Storage/RBDPlugin.pm |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/Storage/RBDPlugin.pm b/PVE/Storage/RBDPlugin.pm index 1a2e91c..948be0d 100644 --- a/PVE/Storage/RBDPlugin.pm +++ b/PVE/Storage

[pve-devel] [PATCH 1/2] rbd: use rbd ls -l

2013-01-03 Thread Alexandre Derumier
avoid to call rbd info for each volume Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/Storage/RBDPlugin.pm |9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/PVE/Storage/RBDPlugin.pm b/PVE/Storage/RBDPlugin.pm index bbfae7c..1a2e91c 100644 --- a/PVE

[pve-devel] [PATCH] balloon: don't set balloon polling interval at start when livemigrate

2013-01-04 Thread Alexandre Derumier
We don't need to set balloon value and polling interval when a vm is coming from a livemigrate. (Values are keep in guest memory) So with autoballooning, this avoid to set the ballon size at ballon_min value when the vm is migrated Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE

[pve-devel] [PATCH] skip ballooning during migration

2013-01-04 Thread Alexandre Derumier
avoid to add memory load overhead on the migration with balloon inflate/deflate Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/AutoBalloon.pm |1 + 1 file changed, 1 insertion(+) diff --git a/PVE/AutoBalloon.pm b/PVE/AutoBalloon.pm index b461795..62844de 100644 --- a/PVE

Re: [pve-devel] Storage migration: 1.0rc1

2013-01-06 Thread Alexandre DERUMIER
when I integrate the copy/clone patches from Alexandre. I'll resend patches this week (after wednesday, I'm a bit busy at work),rebased on last git, they are more or less finished now. Regards, Alexandre - Mail original - De: Dietmar Maurer diet...@proxmox.com À: Michael

Re: [pve-devel] Storage migration: 1.0rc1

2013-01-07 Thread Alexandre DERUMIER
How do you initiate qmp from perl? (It uses a REST api, does it not?) PVE::QemuServer::vm_mon_cmd(vmid, qmpcommand, arguments); exemple: PVE::QemuServer::vm_mon_cmd($vmid, block_resize, device = $deviceid, size = int($size)); live migration code is in: PVE/QemuMigrate.pm you can find qmp

Re: [pve-devel] [PATCH] qemu-server: add support for unsecure migration (setting in datacenter.cfg)

2013-01-07 Thread Alexandre DERUMIER
Again, you can run more than one ssh connection if you want to migrate dozens of machines. Hi, Maybe it'll be cpu limited with a lot a parallel migration ? - Mail original - De: Dietmar Maurer diet...@proxmox.com À: Eric Blevins e...@netwalk.com, pve-devel@pve.proxmox.com Envoyé:

[pve-devel] bump rbd to stable bobtail (0.56.1)

2013-01-07 Thread Alexandre Derumier
require to update proxmox repository with new ceph packages: http://ceph.com/debian-bobtail/pool/main/c/ceph/librbd-dev_0.56.1-1~bpo60+1_amd64.deb http://ceph.com/debian-bobtail/pool/main/c/ceph/librbd1_0.56.1-1~bpo60+1_amd64.deb

[pve-devel] [PATCH 02/13] add is_template sub

2013-01-08 Thread Alexandre Derumier
return 1 if current is template return 2 if a snapshot is a template Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/QemuServer.pm | 16 1 file changed, 16 insertions(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 1e70c3a..21e4827 100644 --- a/PVE

[pve-devel] [PATCH 04/13] forbid vm_destroy if templates exists

2013-01-08 Thread Alexandre Derumier
Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/QemuServer.pm |2 ++ 1 file changed, 2 insertions(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 8955b7c..59effb6 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -3266,6 +3266,8 @@ sub vm_destroy

[pve-devel] [PATCH 01/13] add template_create and template_delete feature

2013-01-08 Thread Alexandre Derumier
the template - We unlock the storage - we remove template:1 from the config (current of snapshot) Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/API2/Qemu.pm | 78 + PVE/QemuServer.pm | 78

[pve-devel] [PATCH 03/13] forbid snapshot delete if it's a template

2013-01-08 Thread Alexandre Derumier
Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/QemuServer.pm |4 1 file changed, 4 insertions(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 21e4827..8955b7c 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -2908,6 +2908,10 @@ sub

[pve-devel] qemu-server : template clone final V1

2013-01-08 Thread Alexandre Derumier
Hi All, This is the final v1 of my template clone patches series. I have done extensive tests, with differents storage (raw,qcow2,rbd,sheepdog,...) All seem to works fine without bug Please test and review ! ___ pve-devel mailing list

[pve-devel] [PATCH 06/13] forbid vm_start if current config is a template.

2013-01-08 Thread Alexandre Derumier
if files (raw,qcow2) are a template, we forbid vm_start. note : the readonly protection do already the job, but we need a clear message for users Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/QemuServer.pm |2 ++ 1 file changed, 2 insertions(+) diff --git a/PVE

[pve-devel] [PATCH 05/13] forbid rollback if current config is a template.

2013-01-08 Thread Alexandre Derumier
if a qcow2 current is a template, we can't rollback to a previous snapshot. (note that file readonly protection do already the job, but we need a clear error message for user) Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/QemuServer.pm |2 ++ 1 file changed, 2 insertions

[pve-devel] [PATCH 07/13] forbid offline migration of a non shared volume if it's a clone

2013-01-08 Thread Alexandre Derumier
Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/QemuMigrate.pm |6 ++ 1 file changed, 6 insertions(+) diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm index de2ee57..2b79025 100644 --- a/PVE/QemuMigrate.pm +++ b/PVE/QemuMigrate.pm @@ -245,6 +245,12 @@ sub sync_disks

[pve-devel] [PATCH 09/13] forbid snapshot create if current it's a template

2013-01-08 Thread Alexandre Derumier
Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/QemuServer.pm |4 1 file changed, 4 insertions(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 8d6979a..5e1f319 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -2895,6 +2895,10 @@ sub qemu_block_resize

[pve-devel] [PATCH 10/13] add clone_disks

2013-01-08 Thread Alexandre Derumier
--clonefrom vmidsrc [--snapname snap] [--clonemode clone] --memory 2048 --name newvmname Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/API2/Qemu.pm | 164 +++--- 1 file changed, 156 insertions(+), 8 deletions(-) diff --git a/PVE/API2

[pve-devel] [PATCH 08/13] forbid configuration update of a template

2013-01-08 Thread Alexandre Derumier
Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/API2/Qemu.pm |2 ++ 1 file changed, 2 insertions(+) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index 91cf569..63dbd33 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -873,6 +873,8 @@ __PACKAGE__-register_method

[pve-devel] [PATCH 12/13] vmstatus : return template if vm is a template

2013-01-08 Thread Alexandre Derumier
Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/QemuServer.pm |2 ++ 1 file changed, 2 insertions(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 5e1f319..1adff54 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -1987,6 +1987,8 @@ sub vmstatus { $d

[pve-devel] [PATCH 13/13] add qemu_img_convert

2013-01-08 Thread Alexandre Derumier
also work with snapshot as source for qcow2,rbd,sheepdog. Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/QemuServer.pm | 51 +++ 1 file changed, 51 insertions(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 1adff54

[pve-devel] [PATCH 11/13] api2: snapshot_list : return template flag

2013-01-08 Thread Alexandre Derumier
Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/API2/Qemu.pm |2 ++ 1 file changed, 2 insertions(+) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index c8cb9f3..f5a48ce 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -2153,12 +2153,14 @@ __PACKAGE__-register_method

[pve-devel] [PATCH 01/31] storage: add volume_protect

2013-01-08 Thread Alexandre Derumier
Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/Storage.pm | 15 +++ 1 file changed, 15 insertions(+) diff --git a/PVE/Storage.pm b/PVE/Storage.pm index 6a274c6..f8cf5ad 100755 --- a/PVE/Storage.pm +++ b/PVE/Storage.pm @@ -198,6 +198,21 @@ sub volume_has_feature

[pve-devel] [PATCH 05/31] nexenta : add volume_protect

2013-01-08 Thread Alexandre Derumier
return undef, as nexenta have a implicit protection system when creatin clones Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/Storage/NexentaPlugin.pm |6 ++ 1 file changed, 6 insertions(+) diff --git a/PVE/Storage/NexentaPlugin.pm b/PVE/Storage/NexentaPlugin.pm index

[pve-devel] [PATCH 03/31] rbd: add volume_protect

2013-01-08 Thread Alexandre Derumier
We use the rbd protect command to protect a snapshot. This is mandatory for clone a snapshot. The rbd volume need to be at format V2 Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/Storage/RBDPlugin.pm | 42 +- 1 file changed, 37

[pve-devel] [PATCH 07/31] iscsidirect : add volume_protect

2013-01-08 Thread Alexandre Derumier
we can't protect an iscsi volume Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/Storage/ISCSIDirectPlugin.pm |5 + 1 file changed, 5 insertions(+) diff --git a/PVE/Storage/ISCSIDirectPlugin.pm b/PVE/Storage/ISCSIDirectPlugin.pm index b648fd5..95faa8a 100644 --- a/PVE

[pve-devel] [PATCH 02/31] Plugin : add volume_protect

2013-01-08 Thread Alexandre Derumier
(and also fix backing file regex parsing) for files, we protect the volume file with chattr. So we can only read it, but can't delete or move it. Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/Storage/Plugin.pm | 20 +--- 1 file changed, 17 insertions(+), 3

[pve-devel] [PATCH 09/31] plugin : add find_free_volname

2013-01-08 Thread Alexandre Derumier
Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/Storage/Plugin.pm | 45 - 1 file changed, 28 insertions(+), 17 deletions(-) diff --git a/PVE/Storage/Plugin.pm b/PVE/Storage/Plugin.pm index 6f1cac9..9bdcf0d 100644 --- a/PVE/Storage

[pve-devel] [PATCH 10/31] rbd : add find_free_volname

2013-01-08 Thread Alexandre Derumier
Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/Storage/RBDPlugin.pm | 31 +++ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/PVE/Storage/RBDPlugin.pm b/PVE/Storage/RBDPlugin.pm index b08fe54..003585a 100644 --- a/PVE/Storage

[pve-devel] [PATCH 11/31] sheepdog : add find_free_volname

2013-01-08 Thread Alexandre Derumier
Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/Storage/SheepdogPlugin.pm | 34 +- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/PVE/Storage/SheepdogPlugin.pm b/PVE/Storage/SheepdogPlugin.pm index be1549d..132b72c 100644 --- a/PVE

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