[pve-devel] [PATCH 01/11] Set max nics=6, max virtio disk=6 and scsi disk to 14 (because we cannot set more than 7 disk by scsi controller)
Derumier Alexandre
aderumier at odiso.com
Wed Sep 7 15:34:36 CEST 2011
Signed-off-by: Derumier Alexandre <aderumier at odiso.com>
---
PVE/QemuServer.pm | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 8613ba3..4ca6e48 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -395,10 +395,10 @@ while (my ($k, $v) = each %$confdesc) {
}
my $MAX_IDE_DISKS = 4;
-my $MAX_SCSI_DISKS = 16;
-my $MAX_VIRTIO_DISKS = 16;
+my $MAX_SCSI_DISKS = 14;
+my $MAX_VIRTIO_DISKS = 6;
my $MAX_USB_DEVICES = 5;
-my $MAX_NETS = 32;
+my $MAX_NETS = 6;
my $MAX_UNUSED_DISKS = 8;
my $nic_model_list = ['rtl8139', 'ne2k_pci', 'e1000', 'pcnet', 'virtio',
@@ -626,7 +626,7 @@ sub disk_devive_info {
if ($bus eq 'ide') {
$maxdev = 2;
} elsif ($bus eq 'scsi') {
- $maxdev = 8;
+ $maxdev = 7;
}
my $controller = int ($index / $maxdev);
--
1.7.2.5
More information about the pve-devel
mailing list