]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/Storage/GlusterfsPlugin.pm
clone image: specify base format option with qemu-img
[pve-storage.git] / PVE / Storage / GlusterfsPlugin.pm
index 2dd414d895696ce773d818aab4f2faeeb8cc0a2e..5ec2f42e8d802a972fb53807b5ec689b98e0f711 100644 (file)
@@ -228,7 +228,7 @@ sub clone_image {
     my $volumepath = "gluster://$server/$glustervolume/images/$vmid/$name";
 
     my $cmd = ['/usr/bin/qemu-img', 'create', '-b', "../$basevmid/$basename",
-              '-f', 'qcow2', $volumepath];
+              '-F', $format, '-f', 'qcow2', $volumepath];
 
     run_command($cmd, errmsg => "unable to create image");