search for: elementshostdevcaps

Displaying 17 results from an estimated 17 matches for "elementshostdevcaps".

2014 Apr 14
3
Re: LXC + USB passthrough = Operation not permitted
...d ever asked a similar question to Daniel and I was using a thirty-party card. As a container uses a shared kernel with the host, so hostdev mode='subsystem' doesn't make sense. Maybe you can try to use hostdev mode='capabilities'. Please see http://libvirt.org/formatdomain.html#elementsHostDevCaps Hope this helps Cheng Wang
2019 Jan 22
2
LXC guest to have/make a device node (FUSE)
hi guys With lxc container under libvirt control - how can guest create device nodes? I'm specifically looking for FUSE device. Is it possible somehow to get it to the guest(passthrough?) or allow the guest to create dev node? many thanks, L.
2014 Jan 23
1
Re: If it's possible for a third-party PCIe card to be shared by multiple containers
...his process via socket. Ok, so from the LXC driver POV I guess this card is accessed via some special device node with ioctls or something ? If so then you can just expose the device node to as many containers as you like at the same time without restrictions. http://libvirt.org/formatdomain.html#elementsHostDevCaps Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://l...
2014 Jan 16
3
Re: If it's possible for a third-party PCIe card to be shared by multiple containers
Dear Daniel, The thirty-party PCIe card is based on the Xilinx’ FPGA which is off the shelf, the main features are as follows: 1) x8 Gen3, 8Gb/s per lane/direction 2) MSI and legacy interrupt support 3) Scatter-gather packet DMA engine provide by Northwest Logic We hope multiple Linux Containers to access the PCIe card in time division mode, for example, during slot 1, lxc1 read/write the PCIe
2014 Apr 14
2
Re: LXC + USB passthrough = Operation not permitted
...ou. I had ever asked a similar question to Daniel and I was using a thirty-party card. As a container uses a shared kernel with the host, so hostdev mode='subsystem' doesn’t make sense. Maybe you can try to use hostdev mode='capabilities’. Please see http://libvirt.org/formatdomain.html#elementsHostDevCaps Hope this helps Cheng Wang
2013 Jul 06
2
Permission problem with /dev/net/tun
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi lxc folks, the symptom my libvirt LXC container suffers from is: root@depot:/dev/net# ls -la total 0 drwxr-xr-x 2 root root 40 Jun 29 16:26 . drwxr-xr-x 5 root root 480 Jun 29 16:26 .. root@depot:/dev/net# mknod tun c 10 200 mknod: `tun': Operation not permitted The host is an up-to-date AMD64 Ubuntu raring on 3.8.0-25-generic that was
2014 Jan 16
0
Re: If it's possible for a third-party PCIe card to be shared by multiple containers
...his process via socket. Ok, so from the LXC driver POV I guess this card is accessed via some special device node with ioctls or something ? If so then you can just expose the device node to as many containers as you like at the same time without restrictions. http://libvirt.org/formatdomain.html#elementsHostDevCaps Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://l...
2014 Mar 28
1
TUN/TAP device for lxc guest
I want to run a VPN software inside an lxc guest, but the required TUN/TAP device (/dev/net/tun) is missing in the container. Anyone knows how to enable this device ? Here is the definition XML: <domain type="lxc"> <name>centos</name> <memory unit="MiB">1024</memory> <os> <type>exe</type>
2014 Apr 14
0
Re: LXC + USB passthrough = Operation not permitted
...ar question to Daniel and I was using a > thirty-party card. As a container uses a shared kernel with the host, so > hostdev mode='subsystem' doesn't make sense. Maybe you can try to use > hostdev mode='capabilities'. Please see > http://libvirt.org/formatdomain.html#elementsHostDevCaps > > Hope this helps > > Cheng Wang > > >
2014 May 07
1
Can I assign a dedicated NIC to a container?
Dear all, There are two containers hosted by my host machine. And the host machine has two same 1G NICs. I want to assign a dedicated NIC to one container. The host and the other container share the second NIC. How can I achieve this? Any comments will be highly appreciated. Cheng
2014 Jun 20
0
Access permissions of passed through character devices
Dear all, I am using libvirt in conjunction with LXC. In accordance with http://libvirt.org/formatdomain.html#elementsHostDevCaps I pass an InfiniBand adapter through to the guest container. However, within the container the access permissions are not the same. Within the host they are like this: crw-rw-rw- 1 root root 10, 56 20. Jun 09:40 rdma_cm crw-rw-rw- 1 root root 231, 224 20. Jun 09:41 ucm0 crw-rw-rw- 1 root root 23...
2017 Sep 21
1
How automatically set group.devices.allow for libvirt-lxc container after start ?
Hi. I need to use /dev/ppp inside the lxc container, for very ancient software. Problem solved this way: 1) virsh edit container name and add section: <features> <capabilities policy='default'> <mknod state='on'/> </capabilities> </features> 2) start container 3) attach or ssh container, be root: #mknod /dev/ppp c 108 0 4) inside
2013 Jul 08
0
Re: Permission problem with /dev/net/tun
...MKNOD capability. http://libvirt.org/drvlxc.html#devnodes Any device that the container is authorized to access per the XML configuration, will be pre-created in the container's /dev. To explicitly allow /dev/net/tun you need to tell libvirt about it. http://libvirt.org/formatdomain.html#elementsHostDevCaps Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://...
2013 Jul 08
4
Re: Permission problem with /dev/net/tun
....org/drvlxc.html#devnodes Good to know. > Any device that the container is authorized to access per the XML > configuration, will be pre-created in the container's /dev. To > explicitly allow /dev/net/tun you need to tell libvirt about it. > http://libvirt.org/formatdomain.html#elementsHostDevCaps Thanks! I extended the 'devices' section as follows: <hostdev mode='capabilities' type='misc'> <source> <char>/dev/net/tun</char> </source> </hostdev> ... because even though /dev/net/tun is used for network...
2014 Apr 14
2
Re: LXC + USB passthrough = Operation not permitted
...ion to Daniel and I was using a >> thirty-party card. As a container uses a shared kernel with the host, so >> hostdev mode='subsystem' doesn’t make sense. Maybe you can try to use >> hostdev mode='capabilities’. Please see >> http://libvirt.org/formatdomain.html#elementsHostDevCaps >> >> Hope this helps >> >> Cheng Wang >> >> >> > >
2014 Apr 14
0
Re: LXC + USB passthrough = Operation not permitted
...a similar question to Daniel and I was using a > thirty-party card. As a container uses a shared kernel with the host, so > hostdev mode='subsystem' doesn’t make sense. Maybe you can try to use > hostdev mode='capabilities’. Please see > http://libvirt.org/formatdomain.html#elementsHostDevCaps > > Hope this helps > > Cheng Wang > > >
2014 Jan 30
3
Re: Notes on building libguestfs in a systemd-nspawn container
On Thu, Jan 30, 2014 at 11:50:35AM +0530, Kashyap Chamarthy wrote: > > - Single `make` job timing to compile everything: > > > > real 31m9.792s > > user 17m18.359s > > sys 13m17.868s > > For comparison, on the _host_, the same single `make` job timing: > > real 13m41.440s > user 13m5.816s > sys 1m9.911s