general/other Passing host device /dev/cuaU0 to Podman linux container?

On FreeBSD 14.2, installed and running some #hamradio software inside a podman fedora container (https://github.com/la5nta/pat). I need the linux container for ax25 for one of my radios on 2m packet.

Pat is installed and runs inside the container using telnet, but I can't figure out how to provide radio serial communications via host /dev/cuaU0 to Pat inside the container. Tried:
Code:
$ sudo podman run --os=linux --net=host --device=/dev/cuaU0:/dev/ttyUSB0:rw -ti --rm localhost/pat-freebsd-fedora41:001 bash
    Error: container device must be the same as host device on FreeBSD
$ sudo podman run --os=linux --net=host --device=/dev/cuaU0:/dev/cuaU0:rw -ti --rm localhost/pat-freebsd-fedora41:001 bash
    Error: devfs not found in generator
$ man podman-run ([URL]https://man.freebsd.org/cgi/man.cgi?query=podman-run&sektion=1&apropos=0&manpath=FreeBSD+13.2-RELEASE+and+Ports[/URL]) makes no mention of these issues and shows differing device names between the host and container in the example
Solutions or ideas how to solve this?

Thanks,
Peter
 
Chose devfs rules number or add from command prompt:

Thread 64924

Also take a look at /etc/defaults/devfs.rules. This is a prototype file so do not edit. Settings go in rc.conf

Code:
# Devices usually found in a jail.
#
[devfsrules_jail=4]
add include $devfsrules_hide_all
add include $devfsrules_unhide_basic
add include $devfsrules_unhide_login
add path fuse unhide
add path zfs unhide

[devfsrules_jail_vnet=5]
add include $devfsrules_hide_all
add include $devfsrules_unhide_basic
add include $devfsrules_unhide_login
add include $devfsrules_jail
add path pf unhide

 
Back
Top