lejeczek
2019-Jan-22 15:25 UTC
[libvirt-users] 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.
Daniel P. Berrangé
2019-Jan-22 15:36 UTC
Re: [libvirt-users] LXC guest to have/make a device node (FUSE)
On Tue, Jan 22, 2019 at 03:25:10PM +0000, lejeczek wrote:> 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?You can tell libvirt to create it using host device "passthrough" for arbitrary block or character devices: libvirt.org/formatdomain.html#elementsHostDevCaps Regards, Daniel -- |: berrange.com -o- flickr.com/photos/dberrange :| |: libvirt.org -o- fstop138.berrange.com :| |: entangle-photo.org -o- instagram.com/dberrange :|
mxs kolo
2019-Jan-22 17:28 UTC
Re: [libvirt-users] LXC guest to have/make a device node (FUSE)
Hello Device must be present on hardware node. For pass Character Device inside lxc container: <device> <hostdev mode='capabilities' type='misc'> <source> <char>/dev/CHAR_DEV_NAME</char> </source> </hostdev> ..... </device> for Block Device: <hostdev mode='capabilities' type='storage'> <source> <block>/dev/BLOCK_DEV_NAME</block> </source> </hostdev> After LXC container start, corresponding device would be created inside container's /dev/ Details here: libvirt.org/formatdomain.html#elementsHostDevCaps b.r. Maxim Kozin
Seemingly Similar Threads
- Re: LXC + USB passthrough = Operation not permitted
- Re: LXC + USB passthrough = Operation not permitted
- How automatically set group.devices.allow for libvirt-lxc container after start ?
- Permission problem with /dev/net/tun
- Re: LXC + USB passthrough = Operation not permitted