From c1bc34a3379ee532e58bbaa4a1d294b88985f96d Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 28 Dec 2012 14:02:43 +0100 Subject: [PATCH] disable auto-ballon if shares is set to zero --- PVE/AutoBalloon.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PVE/AutoBalloon.pm b/PVE/AutoBalloon.pm index edf7332d..b4617952 100644 --- a/PVE/AutoBalloon.pm +++ b/PVE/AutoBalloon.pm @@ -93,6 +93,8 @@ sub compute_alg1 { my $d = $vmstatus->{$vmid}; next if !$d->{balloon}; # skip if balloon driver not running next if !$d->{balloon_min}; # skip if balloon value not set in config + next if defined($d->{shares}) && + ($d->{shares} == 0); # skip if shares set to zero push @$idlist, $vmid;