[pve-devel] [PATCH 04/11] add lsi scsi controllers

Derumier Alexandre aderumier at odiso.com
Wed Sep 7 15:34:39 CEST 2011


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

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 29bbf86..814e9d4 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -2024,6 +2024,13 @@ sub config_to_command {
     #push @$cmd, '-soundhw', 'es1370';
     #push @$cmd, '-soundhw', $soundhw if $soundhw;
 
+    # add scsi controllers
+    my $maxdev = 7;
+    my $nbscsicontroller = int ($MAX_SCSI_DISKS / $maxdev);
+    for (my $i = 0; $i < $nbscsicontroller; $i++) {
+	    push @$cmd, '-device', "lsi,id=scsi$i";
+    }
+
     my $vollist = [];
 
     foreach_drive($conf, sub {
-- 
1.7.2.5



More information about the pve-devel mailing list