[pve-devel] [PATCH manager 1/2] virtio-scsi-pci as default SCSI for new VMS fix #1106

Emmanuel Kasper e.kasper at proxmox.com
Thu Sep 15 09:34:05 CEST 2016


---
 www/manager6/qemu/HDEdit.js     | 4 ++++
 www/manager6/qemu/OSDefaults.js | 3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/www/manager6/qemu/HDEdit.js b/www/manager6/qemu/HDEdit.js
index c86ab44..312b218 100644
--- a/www/manager6/qemu/HDEdit.js
+++ b/www/manager6/qemu/HDEdit.js
@@ -111,6 +111,10 @@ Ext.define('PVE.qemu.HDInputPanel', {
 		
 	params[confid] = PVE.Parser.printQemuDrive(me.drive);
 	
+	if (me.insideWizard) {
+	    params.scsihw = PVE.qemu.OSDefaults.generic.scsihw;
+	}
+
 	return params;	
     },
 
diff --git a/www/manager6/qemu/OSDefaults.js b/www/manager6/qemu/OSDefaults.js
index 3a834fa..7ebfef0 100644
--- a/www/manager6/qemu/OSDefaults.js
+++ b/www/manager6/qemu/OSDefaults.js
@@ -36,7 +36,8 @@ Ext.define('PVE.qemu.OSDefaults', {
 	// default values
 	me.generic = {
 	    busType: 'ide',
-	    networkCard: 'e1000'
+	    networkCard: 'e1000',
+	    scsihw: 'virtio-scsi-pci'
 	};
 
 	// both of them are in kernel since 2.6.25
-- 
2.1.4





More information about the pve-devel mailing list