[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.

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: https://libvirt.org/formatdomain.html#elementsHostDevCaps Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|

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: https://libvirt.org/formatdomain.html#elementsHostDevCaps b.r. Maxim Kozin
participants (3)
-
Daniel P. Berrangé
-
lejeczek
-
mxs kolo