[pve-devel] scsihw / hotplug integration into GUI
    Alexandre DERUMIER 
    aderumier at odiso.com
       
    Mon Aug 13 11:49:52 CEST 2012
    
    
  
>>thanks for the block but how should autodetection for scsi-generic 
>>working? In this case we need to know if the guest supports it at all 
>>before starting the guest.
not possible.
(or we need to know which guest/kernel use the guest, like ostype config option)
----- Mail original ----- 
De: "Stefan Priebe - Profihost AG" <s.priebe at profihost.ag> 
À: "Alexandre DERUMIER" <aderumier at odiso.com> 
Cc: pve-devel at pve.proxmox.com, "Dietmar Maurer" <dietmar at proxmox.com> 
Envoyé: Lundi 13 Août 2012 11:43:00 
Objet: Re: [pve-devel] scsihw / hotplug integration into GUI 
Am 13.08.2012 11:40, schrieb Alexandre DERUMIER: 
> qemuserver.pm 
> 
> print_drivedevice_full 
> 
> 
> my $devicetype = 'hd'; 
> my $path = ''; 
> 
> if (drive_is_cdrom($drive)) { 
> $devicetype = 'cd'; 
> } else { 
> if ($drive->{file} =~ m|^/|) { 
> $path = $drive->{file}; 
> } else { 
> $path = PVE::Storage::path($storecfg, $drive->{file}); 
> } 
> $devicetype = 'block' if path_is_scsi($path); 
> } 
thanks for the block but how should autodetection for scsi-generic 
working? In this case we need to know if the guest supports it at all 
before starting the guest. 
Stefan 
> ----- Mail original ----- 
> 
> De: "Stefan Priebe - Profihost AG" <s.priebe at profihost.ag> 
> À: "Dietmar Maurer" <dietmar at proxmox.com> 
> Cc: "Alexandre DERUMIER" <aderumier at odiso.com>, pve-devel at pve.proxmox.com 
> Envoyé: Lundi 13 Août 2012 11:15:45 
> Objet: Re: [pve-devel] scsihw / hotplug integration into GUI 
> 
> 
> Am 13.08.2012 11:10, schrieb Dietmar Maurer: 
>>>> OK, I guess your suggestion is reasonable. 
>>> 
>>> thanks, so a patch which will extent the syntax for scsihw to 
>>> scsihw: virtio-scsi-pci,scsi-generic 
>>> 
>>> is fine? 
>> 
>> We currently autodetect 'scsi-block'. Can't we do the same with scsi-generic? 
>> Or should we disable that auto-detection? 
> 
> Can have a look at that. Where does this autodetection happen? 
> 
> Stefan 
> 
> 
> 
-- 
-- 
	
Alexandre D e rumier 
Ingénieur Systèmes et Réseaux 
Fixe : 03 20 68 88 85 
Fax : 03 20 68 90 88 
45 Bvd du Général Leclerc 59100 Roubaix 
12 rue Marivaux 75002 Paris 
    
    
More information about the pve-devel
mailing list