]> git.proxmox.com Git - qemu-server.git/blobdiff - PVE/QemuMigrate.pm
fix efidisks on storages with minimum sizes bigger than OVMF_VARS.fd
[qemu-server.git] / PVE / QemuMigrate.pm
index 64b4c0ec5c685b7fb65427c380be0391642b7fc1..80978b946f032df96a92ec7ee41e6222dd019e86 100644 (file)
@@ -508,6 +508,12 @@ sub sync_disks {
            }
        });
 
+       # we want to set the efidisk size in the config to the size of the
+       # real OVMF_VARS.fd image, else we can create a too big image, which does not work
+       if (defined($conf->{efidisk0})) {
+           PVE::QemuServer::update_efidisk_size($conf);
+       }
+
        $self->log('info', "copying local disk images") if scalar(%$local_volumes);
 
        foreach my $volid (keys %$local_volumes) {