Displaying 20 results from an estimated 4000 matches similar to: "TUN/TAP device for lxc guest"
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
2013 Jul 08
4
Re: Permission problem with /dev/net/tun
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Daniel,
On 07/08/2013 11:41 AM, Daniel P. Berrange wrote:
>> 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
>>
2014 Apr 14
3
Re: LXC + USB passthrough = Operation not permitted
Dear Fil,
I am not sure if my answer can help you.
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
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 Apr 14
2
Re: LXC + USB passthrough = Operation not permitted
Can you see the USB device in the lxc?
My answering assumes you cannot see the USB device in the container. If you can see it, please ignore my answer.
According to my understanding, “hostdev mode='subsystem' “ is used with KVM only. We use this if we want to passthrough a device to a KVM virtual machine. After doing that, the host machine will lose control of the device. If container is
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
2014 Apr 14
2
Re: LXC + USB passthrough = Operation not permitted
I'd also like to point out that, when setting up a linux container with
_just_ the lxc tools available in ubuntu, all that was needed to be done
was whitelist the appropriate cgroups for the Android devices. The lxc
tools seem to create the appropriate character devices when you
detach/attach the Android device via USB, and the Android `adb` tool
recognized the devices.
So, a tangential
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 Jan 23
1
Re: If it's possible for a third-party PCIe card to be shared by multiple containers
Dear Daniel,
I found that lxc driver doesn't support hostdev with type of 'pci'.
As you mentioned before, I tried to expose the device node (the PCIe card) to the container, my XML is as follow:
<devices>
<hostdev mode='subsystem' type='pci' managed='yes'>
<source>
<address bus='0x01' slot='0x00'
2018 Jan 29
2
How to use /dev/net/tun from libvirt-lxc with user namespacing enabled
I have a container rootfs that I use to keep all work-related stuff. This
container was originally created by lxd (which creates all containers for
use with user namespacing), but now I decided to start using libvirt for
container management since I already use it for virtual machines, which
will spare me from dealing with multiple hypervisor technologies.
I managed to create a working domain xml
2013 Jul 08
0
Re: Permission problem with /dev/net/tun
On Sat, Jul 06, 2013 at 09:59:39PM +0200, Thomas Karcher wrote:
> -----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
2014 Jul 08
2
Re: How to get uuid info inside a lxc container created by libvirt_lxc
于 2014年07月08日 12:06, Eric Blake 写道:
> On 07/07/2014 10:02 PM, Qiang Guan wrote:
>> Hi ,
>>
>> Is there anyway to get uuid info inside a lxc container which is created
>> by libvirt_lxc?
>>
>> For kvm, we can use dmidecode or lshw to get this info inside vm. Is
>> there any tools
>> to do this thing for libvirt lxc?
> Per the docs:
>
2013 Jul 23
2
Is there any document about the feauture and usage of lxc supported by libvirt?
Hi Guys,
Recently, I'm doing some tests on openstack with lxc virtualization supported by libvirt. I need some recently new documents about libvirt lxc.
Anything related is just ok. Thanks!
--------------
Best regards!
GuanQiang
2013-07-23
2014 Jul 08
2
How to get uuid info inside a lxc container created by libvirt_lxc
Hi ,
Is there anyway to get uuid info inside a lxc container which is created
by libvirt_lxc?
For kvm, we can use dmidecode or lshw to get this info inside vm. Is
there any tools
to do this thing for libvirt lxc?
Thanks for any help~
--
------------
Jackie
Best Regards
2017 Feb 03
2
accessing USB as storage device through lxc container.
Hi all,
I am not able to access USB as storage device in the lxc container.
Having tried to pass the usb device with the product and vendor id, not
able to see the device mounted in the lxc file system.
However, they are seen as char devices in the container at the location.
There is no issue of ACL, as the capabilities restrictions have been
dropped.
Has anyone successfully mounted the storage
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
2014 Apr 12
2
LXC + USB passthrough = Operation not permitted
Hi!
First post, kind of a noobie. I've been working with LXC and libvirt for a
few months now. Trying to do some interesting things with containers and
Android devices :D
I'm running ubuntu 13.10 with LXC 1.0.1 and tried both libvirt 1.1.1 and
1.2.2 (backported from ubuntu-trusty), but with either version of libvirt
am getting issues as soon as I try to get access to USB devices inside
2013 Dec 18
2
fuse in libivrt-lxc
Hi,
I created an LXC domain via libvirt (on Fedora 20), but when I'm trying to
mount a FUSE filesystem, like sshfs, I'm getting a following error:
$ sshfs 172.30.15.2:/<mntdir> /<mntpoint>
fuse: device not found, try 'modprobe fuse' first
I see that there's no /dev/fuse device. Is there a way to make it work? Can
I get it working via libvirt domain xml file
2010 Aug 03
2
libvirt and lxc
Is anyone using libvirt for lxc ? I am trying to do so and running
into an issue. The system container starts fine with lxc tools and am
able to connect to it.
Here is the snippet of my xml file (rest is same as in
http://libvirt.org/drvlxc.html)
<devices>
<emulator>/usr/libexec/libvirt_lxc</emulator>
<filesystem type='mount'>
<source
2014 Apr 16
2
Re: LXC + USB passthrough = Operation not permitted
Yeah, AppArmor is enabled, but I put everything (that I could find) into
complain mode:
$ sudo apparmor_status
apparmor module is loaded.
12 profiles are loaded.
3 profiles are in enforce mode.
lxc-container-default
lxc-container-default-with-mounting
lxc-container-default-with-nesting
9 profiles are in complain mode.
/sbin/dhclient
/usr/bin/lxc-start