[pve-devel] virtual scsi disk passed with scsi-block with lvm host storage (wrong)

Dietmar Maurer dietmar at proxmox.com
Thu Feb 25 07:48:41 CET 2016


I just found package  liblinux-prctl-perl, which can do

Linux::Prctl::capbset_drop(CAP_SYS_RAWIO);

That way we could do it inside perl before the SCSI INQUIRY syscall.
Would that solve the problem?

But we would need to fork before calling capbset_drop ...

> On February 25, 2016 at 6:54 AM Dietmar Maurer <dietmar at proxmox.com> wrote:
> 
> 
> > #capsh --drop=cap_sys_rawio -- -c 'sg_inq /dev/pve/vm-115-disk-2'
> > Both SCSI INQUIRY and fetching ATA information failed on
> > /dev/pve/vm-115-disk-2
> 
> Why --drop=cap_sys_rawio ? Does kvm drop this when starting?




More information about the pve-devel mailing list