You are not logged in.

#1 2023-07-05 20:11:29

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,591
Website

Virtualization strategy: Arch Linux + OpenWRT running at the same time

Goal: Have two distros running simultaneously on the same hardware (OpenWRT serving as router/firewall + Arch Linux which will depend on the OpenWRT installation for network).

What is the best strategy to achieve this?  OpenWRT would need access to the NICs obviously.  I am thinking of a non-trivial use of lxc but that would require a 3rd distro (a primary one running lxc) with OW and Arch containerized.  Is there another strategy to achieve this?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2023-07-05 23:02:42

herOldMan
Member
Registered: 2013-10-11
Posts: 151

Re: Virtualization strategy: Arch Linux + OpenWRT running at the same time

We do it with VBox. The router has 2 NIC's. The WAN side is a bridged or NAT NIC. The LAN side is an "Internal Network" NIC. OSs use a subnet provided by the internal network, which is configured by the router.

We use PfSense as the router/gateway/firewall. We have also used a home-spun Arch-based router as the virtual router.

Last edited by herOldMan (2023-07-05 23:06:07)

Offline

#3 2023-07-06 18:16:57

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,591
Website

Re: Virtualization strategy: Arch Linux + OpenWRT running at the same time

So it is a three OS setup...


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2023-07-07 00:09:04

herOldMan
Member
Registered: 2013-10-11
Posts: 151

Re: Virtualization strategy: Arch Linux + OpenWRT running at the same time

No, the router/firewall/gateway we use is a PfSense VM. (In other cases in the past we used an Arch-based router VM instead.)

One or many other VMs can use the router.

For us, this virtual workplace is a model that mimics our production chemistry laboratory. On the router's LAN are multiple NAS devices, a SQL server, and various workstations. I avoid the walk of shame by testing process changes in this virtual network.

As you can imagine, the native host for this test environment is built to the hilt.

Offline

Board footer

Powered by FluxBB