Not sure if this 100% goes here but I’m relatively new to the self hosting world. Please advise if this needs to be moved elsewhere and I will.

I recently picked up a beelink mini PC and have been running Proxmox for things like jellyfin, home assistant, etc.

I’m looking to set up OpenWRT and found a helper script that sets up the VM but I’m having issues being able to configure wireless. According to the official docs, wireless is off by default if there are eth ports. When I go to edit it, both in the LuCl and in the /etc/config/wireless file, I hit 2 issues:

  1. The web client doesn’t have a wireless option.
  2. There is no wireless file In the config directory.

I tried looking for some solutions online but wasn’t sure what was exactly specific for me. I wasn’t sure if this was a hardware issue or a Proxmox/OpenWRT config issue. Any advice on this?

Side note: My thoughts were I could use the internal wi-fi adapter for wireless but would I need a USB adapter of some sort for this capability?

Edit: I realized later I left some context off. In case i wasn’t clear enough. Sorry. Currently I use a Google nest wifi pro router and was hoping to replace it with OpenWRT for more control/customization.

@umbrella@lemmy.ml
link
fedilink
English
1
edit-2
1d

id use a pci express or better card with AP mode. openwrt is just minimal linux, so any card that works eith linux works with openwrt.

i use a similar setup than what you want and it works well, you just want to make sure you use passthrough for the wireless and wired cards, and use the correct wifi card.

@roofuskit@lemmy.world
link
fedilink
English
52d

If you’re going to dive in to openwrt from google wifi you should probably start with ready made hardware.

https://forum.openwrt.org/t/best-newcomer-routers-2024/189050

Please keep in mind that to duplicate mesh functionality it’s going to take a significant effort and you need to make sure the hardware you buy is compatible with 802.11s. Open WRT forums have hardware compatibility rundowns of known working routers so it’s not too difficult to find them.

This is a much bigger uphill battle rolling your own hardware unless you just plan to buy a separate access point or two for hardware and skip the mesh functionality.

Possibly linux
link
fedilink
English
22d

These days almost all hardware is compatible with 802.11s

@roofuskit@lemmy.world
link
fedilink
English
12d

If you plan to do it on openwrt I would make sure before you buy. Especially if you’re trying to save on the mesh nodes and not buy a fully outfitted router for each node.

@aTun@lemm.ee
link
fedilink
English
22d

If you do the PCI passthrough Wifi adapter to openwrt, look for name of adaptor and search okpg for in kernel driver for that. Maybe you will face with no driver support, try installing openwrt pre-relase for up to date driver support, or driver only support client mode, Intel Wifi. You can get cheap USB Wifi adapter from Aliexpress that openwrt support but mostly have only one radio so your access point will have one 5Mhz or 2.4Mhz not both at the same time. you can try two adaptor to get both. For supported Wifi adapter and more information https://github.com/morrownr/USB-WiFi?tab=readme-ov-file

Possibly linux
link
fedilink
English
4
edit-2
2d

You want a dedicated Firewall and at least one access point. Your USB adapter is not designed to support lots of devices. It almost certainly has one channel.

@ChillPill@lemmy.world
link
fedilink
English
22d

Back in the day I ran a pfsense VM on ESXi before broadcom bought them. I found it easier to just purchase a cheap Unifi AP and spin up a VM for the Unifi controller app (I’m assuming you can still run that on your own hardware, its been a few years). I think I got a UAP 6 lite or something like that. If I recall it was about $130 CAD with the PoE injector.

Techincally its not ideal to run your firewall on the same device as other things, but I never had any issues.

Also, does the mini PC have multiple NICs? You will have a bad time if it does not.

@MangoPenguin@lemmy.blahaj.zone
link
fedilink
English
3
edit-2
2d

It would be fun as an experiment, but often using wifi adapters as an AP generally doesn’t work that well. Most of us are running an external AP such as Unifi hardware.

As far as getting this working, have you done the passthrough setup on the VM for the wifi adapter?

And have you confirmed that OpenWRT supports your wifi adapter?

@JackAttack@lemmy.dbzer0.com
creator
link
fedilink
English
12d

Both great questions. I did not check the hardware and I definitely should have…as far as passthrough I have not. I really only ran the helper script to install the Proxmox VM and configurations. I’ll have to check the settings when I’m back home to see what exactly it did.

Yeah start with pass through, without that no physical hardware will show up inside the VM

@just_another_person@lemmy.world
link
fedilink
English
4
edit-2
2d

There’s a huge list of reasons why this is not going to work, or not work well.

I’ll stick to the biggest issue though, which is that OpenWRT expects exclusive control over the wireless chipset, and you’re trying to run it through a VM on whoknowswhat hypervisor settings. Even if nothing else on the host machine uses the Wi-Fi adapter, OpenWRT has specific builds and kernel patches for specific drivers and specific hardware combinations. If it doesn’t see exactly what it’s expecting, it’s not going to work.

Now…even if you DID manage to get it to seemingly work, it will constantly crash or panic if you engage the wireless chipset on a hypervisor because it’s going to throw some disallowed instruction expecting exclusive control and access to the hardware.

I know this, because this is how it works, they say so in their own docs, and you can see people say the same thing over and over again this exact same thing. It’s not going to be a good time.

If you want to just use software portions for network services or whatever, that shouldn’t cause issues, but again, doing it through a VM is like dressing a Yugo up as a Ferrari and expecting the same performance.

@umbrella@lemmy.ml
link
fedilink
English
01d

you can simply use passthrough. openwrt acts like any other minimal linux distro.

Read the post

@umbrella@lemmy.ml
link
fedilink
English
1
edit-2
1d

deleted by creator

@peregus@lemmy.world
link
fedilink
English
62d

I’ve never virtualized OpenWRT, but with hardware passthrough I don’t see why it shouldn’t work.

@JackAttack@lemmy.dbzer0.com

I’m gonna LOL the absolute fucking fuck out of this.

Try it. You have no understanding at a minimum of how it works not only at a hardware level, but at a virtualized level.

I’m absolutely sure you’re going to be the brilliant mind who fixes the problem though. See you next Tuesday!

@MvPts@lemmy.world
link
fedilink
English
17h

Wow this comment is so unnecessarily hostile…

Im speechless.

@JackAttack@lemmy.dbzer0.com
creator
link
fedilink
English
22d

Thanks for the advice. It isn’t an end all if I can’t get it to work in this way. Just thought I’d give it a try since I saw there was a helper script for Proxmox. I wasn’t aware of the limitations that may come with this though. I guess either upgrading routers in the future for something for customizable may be a better option.

@just_another_person@lemmy.world
link
fedilink
English
3
edit-2
2d

GL.Inet for an OpenWRT hardware set. I recommend them all the time.

@JackAttack@lemmy.dbzer0.com
creator
link
fedilink
English
22d

Any specific ones to look into?

Models? The Flint 2 is pretty damn great. Really nice hardware selections, and a form factor most people expect. Out of the box capable of being a gateway for a large network without flinching. Wireguard performance is fantastic.

@JackAttack@lemmy.dbzer0.com
creator
link
fedilink
English
1
edit-2
2d

I will definitely check this out. Sounds really promising from the quick glimpse and most importantly, affordable.

Edit: gesture typing made me type adorable lol.

Adorable? 🤣 How is that?

@ikidd@lemmy.world
link
fedilink
English
12d

For just an AP, I’ve used a number of the GL-AR300 and they’ve been fine as AP and repeaters, but only 2.4 GHz. I have no interference issues where I am so that’s fine for me, but if you’re somewhere populated, YMMV.

They also have the full firewall/router set on them, but I generally don’t use them for that.

I would make sure the adapter you’re using (internal or USB) supports AP mode. Most intel ones don’t: https://www.intel.com/content/www/us/en/support/articles/000030429/wireless.html

Shimitar
link
fedilink
English
22d

What is the point in installing OpenWRT on something that is not a router? I use it, i have it on a few different WiFi access points…

but what would be the reason to install on a regular pc, whether on VM or not?

@vividspecter@lemm.ee
link
fedilink
English
12d

Compared to other embedded devices, ease of installation, less chance of driver quirks and much higher performance (especially relevant if you’re running a VPN on the same device).

Compared to other x86 software based routers, a UI that is familiar, and the Linux kernel which generally means it gets new features quicker than its BSD based counterparts.

A Mouse
link
fedilink
English
22d

It can be used as a VPN router, any VM that needs a VPN can be connected to a network bridge that is forward through the VPN. This could also be done on the primary router and a VLAN.

It’s a handy router OS, why not?

Consumer router hardware generally under performs a lot, so running your router on better hardware solves that.

Possibly linux
link
fedilink
English
12d

Better hardware is not a VM in Proxmox. You want quality gear with each component doing one job.

If thats what your needs are. But proxmox has nothing to do with the hardware being better.

Possibly linux
link
fedilink
English
02d

I does though since there is the added overhead.

You want hardware that is designed for networking. Networking pulls the CPU away from other things. It might be fine if you only ran a router in Proxmox but that’s about it.

Also, good wireless hardware is needed for any decent speeds. You want good antennas connected to hardware that has MU-MIMO. It is also important to pay attention to the Wireless version. (You want at least WiFi 5 if not 6)

@MangoPenguin@lemmy.blahaj.zone
link
fedilink
English
1
edit-2
1d

True, modern hardware can easily route 10gbps or more though so for most of us that won’t be an issue. Often OpenWRT on consumer routers struggles to route even 1gbps.

I agree on the external AP, that is needed.

@JackAttack@lemmy.dbzer0.com
creator
link
fedilink
English
12d

Well currently I have a nest wifi pro router that doesn’t allow a lot of customization. (I used to be a Google fan). And since I had a beelink I figured I would try it. I was also wanting to be able to run a VPN on my router and the nest doesn’t allow clients.

Create a post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

  • 1 user online
  • 117 users / day
  • 513 users / week
  • 1.38K users / month
  • 3.84K users / 6 months
  • 1 subscriber
  • 4.06K Posts
  • 83.8K Comments
  • Modlog