Displaying 3 results from an estimated 3 matches for "ir800".
2017 Feb 03
2
accessing USB as storage device through lxc container.
...CL, as the capabilities restrictions have been
dropped.
Has anyone successfully mounted the storage device in the libvirt. Having
gone through the libvirt documentation, couldnt find further information of
enabling the usb as storage device. Any pointers towards that would be
useful.
Host OS:
IR800-GOS-1:~# lsusb
Bus 001 Device 003: ID 8644:800b
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0001
IR800-GOS-1:~#
Lxc app container:
root@ir800-lxc:/mnt/usb# ls -la /dev/bus/usb/001/003
*crwx-*----- 1 root root 189, 2 Feb 3 01:44
/dev/bus/usb/001/003
----------li...
2017 Feb 07
1
Re: accessing USB as storage device through lxc container.
Thanks Martin for the info.
I have tried the below snippet in the libvirt xml.
<hostdev mode='capabilities' type='storage'>
<source>
<block>/dev/sdc1</block>
</source>
</hostdev>
------------
root@ir800-lxc:~# mount /dev/sdc1 /mnt/usbdr/
mount: permission denied (are you root?)
----------
It works if the usernamespace is not enabled.
The reason being, we have enabled the username and hence its unprivileged
container.
As per this patch:
https://www.redhat.com/archives/libvir-list/2012-Novemb...
2017 Feb 03
0
Re: accessing USB as storage device through lxc container.
...en
>dropped.
>
>Has anyone successfully mounted the storage device in the libvirt. Having
>gone through the libvirt documentation, couldnt find further information of
>enabling the usb as storage device. Any pointers towards that would be
>useful.
>
>
>Host OS:
>
>IR800-GOS-1:~# lsusb
>Bus 001 Device 003: ID 8644:800b
>Bus 001 Device 001: ID 1d6b:0002
>Bus 002 Device 001: ID 1d6b:0001
>IR800-GOS-1:~#
>
>Lxc app container:
>
>root@ir800-lxc:/mnt/usb# ls -la /dev/bus/usb/001/003
>*crwx-*----- 1 root root 189, 2 Feb 3 01:44...