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

Alexandre DERUMIER aderumier at odiso.com
Thu Sep 8 09:46:16 CEST 2011


sounds good to me. 
I'll check if scsi disk exists  before add scsi controllers.


----- Mail original ----- 

De: "Dietmar Maurer" <dietmar at proxmox.com> 
À: "Derumier Alexandre" <aderumier at odiso.com>, pve-devel at pve.proxmox.com 
Envoyé: Jeudi 8 Septembre 2011 09:20:30 
Objet: RE: [pve-devel] [PATCH 04/11] add lsi scsi controllers 

I am not sure if we want to always add 2 scsi controllers. It is OK to reserve the pci addr, 
but I only want to add necessary hardware. 

So only add scsi controller if the vm has scsi devices configured. 

- Dietmar 


> -----Original Message----- 
> From: pve-devel-bounces at pve.proxmox.com [mailto:pve-devel- 
> bounces at pve.proxmox.com] On Behalf Of Derumier Alexandre 
> Sent: Mittwoch, 07. September 2011 15:35 
> To: pve-devel at pve.proxmox.com 
> Subject: [pve-devel] [PATCH 04/11] add lsi scsi controllers 
> 
> 
> 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 
> 
> _______________________________________________ 
> pve-devel mailing list 
> pve-devel at pve.proxmox.com 
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 





-- 

-- 




	
	Alexandre Derumier 
Ingénieur système 
e-mail : aderumier at odiso.com 
Tél : +33 (0)3 20 68 88 90 
Fax : +33 (0)3 20 68 90 81 
45 Bvd du Général Leclerc 
59100 ROUBAIX - FRANCE 













-------------- next part --------------
A non-text attachment was scrubbed...
Name: aderumier.vcf
Type: text/x-vcard
Size: 183 bytes
Desc: not available
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20110908/90dcbff1/attachment.vcf>


More information about the pve-devel mailing list