[pve-devel] [PATCH 6/7] fix some hotpluggable options

Alexandre Derumier aderumier at odiso.com
Fri Jan 2 15:16:03 CET 2015


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/QemuServer.pm |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 4f6bed9..02304d0 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -3509,7 +3509,7 @@ sub vmconfig_hotplug_pending {
 
     my $changes = 0;
     foreach my $opt (keys %{$conf->{pending}}) { # add/change
-	if ($opt eq 'name' || $opt eq 'hotplug' || $opt eq 'onboot' || $opt eq 'shares') {
+	if ($opt eq 'name' || $opt eq 'hotplug' || $opt eq 'onboot' || $opt eq 'shares' || $opt eq 'startup') {
 	    $conf->{$opt} = $conf->{pending}->{$opt};
 	    delete $conf->{pending}->{$opt};
 	    $changes = 1;
@@ -3540,7 +3540,7 @@ sub vmconfig_hotplug_pending {
             } elsif ($opt eq 'balloon') {
 		#enable balloon device is not hotpluggable
 		die "skip\n" if ((defined($conf->{balloon})) && ($conf->{balloon} == 0));
-            } elsif ($opt eq 'shares') {
+            } elsif ($opt eq 'shares' || $opt eq 'startup' || $opt eq 'onboot' || $opt eq 'hotplug') {
 	    } elsif ($opt =~ m/^net(\d+)$/) {
 		die "skip\n" if !$hotplug;
 		vm_deviceunplug($vmid, $conf, $opt);
-- 
1.7.10.4




More information about the pve-devel mailing list