Hi all,
I’m running rolling, need to compile and install the RTL88x2bu driver (wireless), I should make it in a podman container, right?
I know podman is already installed, I’m already using one container, followed this thread:
https://www.reddit.com/r/vyos/comments/ti9hxr/analyzing_netflow_with_ntopng_on_vyos/
VyOS sees the wireless adapter, just need the driver for it.
root@vyos:~# dmesg
[ 0.000000] Linux version 5.10.108-amd64-vyos (vyos_bld@4e4fcd3d6704) (gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP Wed Mar 23 09:24:20 UTC 2022
[ 2.063771] usb 1-2: new high-speed USB device number 3 using xhci_hcd
[ 2.191605] usb 1-2: New USB device found, idVendor=0bda, idProduct=b812, bcdDevice= 2.10
[ 2.191625] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2.191639] usb 1-2: Product: 802.11ac NIC
[ 2.191650] usb 1-2: Manufacturer: Realtek
[ 2.191660] usb 1-2: SerialNumber: 123456
root@vyos:~# lsusb
Bus 001 Device 002: ID 0bda:b812 Realtek Semiconductor Corp. RTL88x2bu [AC1200 Techkey]
The drivers that came with the adapter are really old and need compiled, so I think I found the latest drivers here:
The installation commands from the last example on this page look good to me:
Out of curiosity, I tried to set a config description for the wlan0 interface, too get the error message:
vyos@vyos# set interfaces wireless wlan0 description "this"
[edit]
vyos@vyos# commit
[ interfaces wireless wlan0 ]
VyOS had an issue completing a command.
Report time: 2022-03-26 08:29:29
Image version: VyOS 1.4-rolling-202203240317
Release train: sagitta
Built by: [email protected]
Built on: Thu 24 Mar 2022 03:17 UTC
Build UUID: f3ea29c4-8937-4760-9628-660b251ccd5c
Build commit ID: 58a0abbc8ba732
Architecture: x86_64
Boot via: installed image
System type: bare metal
Hardware vendor:
Hardware model: J3160-4L
Hardware S/N: Default string
Hardware UUID: 03000200-0400-0500-0006-000700080009
Traceback (most recent call last):
File "/usr/libexec/vyos/conf_mode/interfaces-wireless.py", line 282, in <module>
generate(c)
File "/usr/libexec/vyos/conf_mode/interfaces-wireless.py", line 221, in generate
with open('/sys/class/ieee80211/{physical_device}/addresses'.format(**wifi), 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/sys/class/ieee80211/phy0/addresses'
[[interfaces wireless wlan0]] failed
Commit failed
[edit]
vyos@vyos#
Not yet sure about how to setup a container for compiling the driver, will be working on this today. I already backed up my vyos config files, so if I blow it up, I can always wipe the drive and do a fresh install.
fyi: vyos is running on this pc:
I removed the built-in pcie wireless card, it was only 802.11n (not ac). I tried replacing it with a pcie 802.11ac card, but the motherboard doesn’t like wireless adapters that also have bluetooth.
I bought this external usb wireless adapter, VyOS sees it, but need the driver:
I think I’m on the right path. I’d appreciate any suggestions.
Thanks for reading.