[pve-devel] scsihw / hotplug integration into GUI

Stefan Priebe - Profihost AG s.priebe at profihost.ag
Mon Aug 13 11:43:00 CEST 2012


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
>
>
>



More information about the pve-devel mailing list