View previous topic :: View next topic |
Author |
Message |
lekto Apprentice
Joined: 20 Sep 2014 Posts: 170 Location: Ancient Rome
|
Posted: Thu Apr 13, 2023 1:32 pm Post subject: Router on virtual machine. |
|
|
Hi, I’m planning to clean up my home networking. My idea is to upgrade my NAS, make router as virtual machine on NAS and give it some network cards through VFIO, which should simplify my current NAS, router, two switches and WiFi AP to just one machine and maybe WiFi AP. I tried this several years ago, but if I remember it correctly I came across chicken-and-egg problem: VM service needed working networking, but to get networking I had to run VM.
Is this problem still exist?
Are here people that run setup like this can say something on it?
Host would be systemd Gentoo and router on OpenBSD. |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9678 Location: almost Mile High in the USA
|
Posted: Thu Apr 13, 2023 3:18 pm Post subject: |
|
|
For me, I set up my host with a static IP, that would allow libvirtd to run and thus start up pfSense. This still isn't totally ideal as there's a race condition for additional services like named running in the other VM, but I just let it sleep for a while... perhaps it's time I moved named out of the VM. _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54232 Location: 56N 3W
|
Posted: Thu Apr 13, 2023 5:19 pm Post subject: |
|
|
lekto,
My bare metal hardware, that hosts my router KVM and the system I use for remote control of libvirt on the (remote bare metal) have a static IPv4 setup.
That lets the KVM start and me sort out the mess without going outside to the remote system.
It would be a very bad thing to depend on dhcpd running in a KVM to distribute IPv4 addresses to be able to connect the the KVM host to sort things out when its not working.
IPv6 is static, in the sense the addresses don't change but my ISP forces dynamic prefix delegation, so I don't have working IPv6 until ppp0 is up and my subnets have been delegated. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|