[pve-devel] [PATCH] Use format raw if a disk is passthrough to VM.

Wolfgang Link w.link at proxmox.com
Mon Jan 25 15:13:36 CET 2016


To prevent error at VM starting, when we passthrough a harddrive from host to vm.
---
 PVE/QemuServer.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index d72ed6d..70a03e0 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -1285,6 +1285,7 @@ sub print_drive_full {
 	    $format = qemu_img_format($scfg, $volname);
 	} else {
 	    $path = $volid;
+	    $format = "raw";
 	}
    }
 
-- 
2.1.4





More information about the pve-devel mailing list