I am using my Proxmox server to host multiple servers in my homelab. I would like to keep a secondary environment I could use for testing backup restores, testing changes, etc. without risking my “production” servers. I would like to do this without adding another node if possible. I imagine I can separate things out using VLANs / firewall rules to ensure they can’t contact each other but I do not currently have VLANs implemented yet (OPNSense box in the process of setup.) Could anyone suggest the best path forward for this sort of setup, or am I already on the right track and should just get VLANs working properly first? Is there an easy way to do this that I am not thinking of?
You could just do something like this: Nested Virtualization - Proxmox VE
While it does not seem kosher on the surface, it is essentially what Nutanix does. Albeit not proxmox:proxmox
Why create vlans? Just create a new subnet on a separate network port & isolate based on fw rules. Opnsense can do that. One proxmox server was plenty for my needs. Just have a good installation media, and you’ll be up in no time. Connect to NAS using SMB, NFS, iSCSI, restore VM, done. Configuration wise, there’s not a whole lot you need to do with Proxmox unless you are fooling around with clustering, migration, etc. which requires multiple nodes. I guess the worse you could do with a single Proxmox server is hardware passthrough. Worst thing I did was set my Proxmox network MTU to 9000 and lost all network connectivity when everything was on a single 10Gb network port. Now I keep the VM’s on their own nic and management port on another.
Sorry, had to check but I have everything running from the 10GbE. The backups to the NAS was being throttle by the 1GbE port, so I just streamlined everything from the 10GbE.
VLANs give you a hard boundary that is difficult to accidentally step over. Think systems talking to systems. Misconfigure one firewall rule and now your dev box is talking to the prod database.
You could say the same thing about VLANs but you’d essentially be setting up separate “boxes” for your services so you’d have to be very careless to misconfigure things in a way that results in a system with crossed wires that also functions. Think dead vs cancer.
This is definitely tempting. I don’t have very heavy workloads so I guess the performance taking a hit wouldn’t be too impactful.
This is a pretty good idea and much simpler.
Just a DEV subnet with a firewall in between to allow me to access the devices from my LAN but keep the other DEV subnet from reaching anything on LAN, right? No clustering or anything on my side.
Now I keep the VM’s on their own nic and management port on another.
I will look into this as well - I have 2 port 10Gb cards in my NAS and Proxmox but they both still have an extra port from the motherboard I could use strictly for the management interface.
What’s stopping you from deploying new VMs with different names? Test-fileserver.lab.local, test-dns.lab.local, test-nextcloud.lab.local. You don’t need VLANs or separate networks to do so. It’s not like a test application can spontaneously reconfigure itself to talk to the wrong server.
Well I was worried about addressing collisions. I guess you could restore a backup, not start it after finished, and change the IP of the restored machine (or disable it’s network I guess). I am just looking for a way to test changes in a nearly identical environment without much effort to spin up, test, and nuke.
Sorry, complete brain fart. I went back and read the original ask.
Yes, you can setup separate vlans on the same Proxmox server and not have them see each other at all while binding each group to specific nics if you so choose.
Say prod can be on vlan1/nic1 while dev can be on a separate vlan2/nic2. The proxmox server can retain backups for both prod & dev without any issues.
If you want dev to have access to internet, you can bind the dev vlan to another nic and connect it to another subnet in Opnsense allowing dns resolution without seeing the prod environment.
There’s a lot of ways you can set this up on the same Proxmox server to separate prod and dev, but they can coexist on the same Proxmox server.
This is absolutely a common thing to do. Feel free to do that while still working on the OPNsense configuration. Having the dedicated test network will make cloning and testing VMs a bit more convenient. Just keep in mind that you’ll need to segment that VLAN carefully if you’re duplicating IP addresses.