Page MenuHomeVyOS Platform

Add support for device mapping in containers
Closed, ResolvedPublicFEATURE REQUEST

Description

Device mapping like podman create --device /dev/net/tun ... is not supported in VyOS now. But it is necessary for container to get access to devices of host, for example, to create a tun interface with access to /dev/net/tun.

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Feature (new functionality)

Event Timeline

You can get access to host netwoks with set container name foo allow-host-networks

You can get access to host netwoks with set container name foo allow-host-networks

Thanks for reply. A container can be created with option --device /dev/* so it can get access to the device of host. But this is not supported in a VyOS way, that is, to create it in conf mode with command set container name foo device /dev/*. It is not about access to host network, but the access to device of host.

Thanks
Is it required point of binding in a container?
For example:

podman run --rm -it --device=/dev/vdb:/dev/xvdc:rwm --net host ubuntu bash
This comment was removed by Viacheslav.
Viacheslav changed the task status from Open to In progress.Feb 19 2022, 5:23 PM
Viacheslav claimed this task.
Viacheslav moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta board.