[pve-devel] [PATCH] use scsi-hd by default for lsi controller

Alexandre Derumier aderumier at odiso.com
Fri Sep 7 17:56:42 CEST 2012


lsi can't boot on scsi-block for now.

Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/QemuServer.pm |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 8ee0dac..5d827d3 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -1012,7 +1012,9 @@ sub print_drivedevice_full {
 		 $devicetype = 'generic';
 	      }
 	      else {
-		 $devicetype = 'block' if path_is_scsi($path);
+		 if($conf->{scsihw} && $conf->{scsihw} ne 'lsi'){
+		    $devicetype = 'block' if path_is_scsi($path);
+		 }
 	      }
          }
 
-- 
1.7.2.5



More information about the pve-devel mailing list