]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/Storage/Plugin.pm
clone image: specify base format option with qemu-img
[pve-storage.git] / PVE / Storage / Plugin.pm
index d7136a1b23b77c3a0d409aeb3433e4789b77f114..4a10a1fef93ceec3e9409a157bd2a9351cf95d53 100644 (file)
@@ -708,7 +708,7 @@ sub clone_image {
        local $CWD = $imagedir;
 
        my $cmd = ['/usr/bin/qemu-img', 'create', '-b', "../$basevmid/$basename",
-                  '-f', 'qcow2', $path];
+                  '-F', $format, '-f', 'qcow2', $path];
 
        run_command($cmd);
     };