[pve-devel] [PATCH qemu-server] activate disks before hotplugging them

Wolfgang Bumiller w.bumiller at proxmox.com
Fri Nov 27 12:46:40 CET 2015


Fixes #828
---
 PVE/QemuServer.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 5549856..bfd29f7 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -4574,6 +4574,7 @@ sub vmconfig_update_disk {
 
     die "skip\n" if !$hotplug || $opt =~ m/(ide|sata)(\d+)/;
     # hotplug new disks
+    PVE::Storage::activate_volumes($storecfg, [$drive->{file}]);
     vm_deviceplug($storecfg, $conf, $vmid, $opt, $drive);
 }
 
-- 
2.1.4





More information about the pve-devel mailing list