Skip Navigation

Virtualizing my router - any experience to share? Pros/cons?

I'm thinking about moving my router to be a VM on a server in my homelab. Anyone have any experience to share about this? Any downsides I haven't thought of?

Backstory: My current pfSense router box can't keep up with my new fibre speeds because PPPOE is single threaded on FreeBSD, so as a test, I installed OpenWRT in a VM on a server I have and using VLANs, got it to act as a router for my network. I was able to validate it can keep up with the fibre speeds, so all good there. While shopping for a new routerboard, I was thinking about minimizing power and heat, and it made me realize that maybe I should just keep the router virtualized permanently. The physical server is already on a big UPS, so I could keep it running in a power outage.

I only have 1 gbps fibre and a single GbE port on the server, but I could buff the LAN ports if needed.

Any downsides to keeping your router as a VM over having dedicated hardware for it?

38 comments
  • I run OPNsense on a 2 node proxmox server and have for a few years now. I have HA set up and have had it fail over gracefully when I've been away and not even noticed it having failed over for more than a week. If I want to upgrade it, I snapshot it, and if I upgrade the host I live migrate it, and I've done this all remotely more than a few times with no issues.

    It takes some planning and I'd say you'd want a cluster (at least a pair of nodes) where you can do HA. But I wouldn't do it any other way at this point. If you have only one port, you can VLAN it for using on both LAN and WAN.

  • I run opnsense as a VM and have done for maybe 5 years now, moved across 3 different sets of hardware.

    I DO have a hardware router under the ONT for if / when I feck up proxmox.

    Snapshots are great when you start to play with the firewall settings or upgrades

  • I used the same approach at the family business for years without any major problems. Go for it.

38 comments