]> git.proxmox.com Git - qemu-server.git/commitdiff
Use format raw if a disk is passthrough to VM.
authorWolfgang Link <w.link@proxmox.com>
Mon, 25 Jan 2016 14:13:36 +0000 (15:13 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 25 Jan 2016 16:32:21 +0000 (17:32 +0100)
To prevent error at VM starting, when we passthrough a harddrive from host to vm.

PVE/QemuServer.pm

index d72ed6d02793b170fcd658cfe8f8ce3a6815959a..70a03e045d79f39ce4d4d0f9f5cc17d378833456 100644 (file)
@@ -1285,6 +1285,7 @@ sub print_drive_full {
            $format = qemu_img_format($scfg, $volname);
        } else {
            $path = $volid;
+           $format = "raw";
        }
    }