VirtualBox Setup For K3S Cluster
Virtualbox setup for a Kubernetes Cluster
Setting up an environment in Virtualbox is pretty easy and simple. We’ll want to start off by downloading the installation file from https://www.virtualbox.org/wiki/Downloads. Once Virtualbox has been installed, we’ll want to create a NAT network, so that our VM’s are all on the same network, and are able to communicate with each other.
So let’s get into it. Once Virtualbox has been installed, and is open, in the top left corner, click on File and then Preferences:
Afterwards, click on Network on the left sidebar, and then Add new Nat Network
I’m not going to go into the specifics on how to install a linux operating system in VirtualBox, there’s a ton of guides just a google search away. I will say, before you power on the VM, and install the operating system, you would need to go in to the VM settings, click on Network, and change the Attached to: to Nat Network, with the name being the newly created Nat Network.
Virtualbox Port Fowarding
To forward any ports for your NAT Network, go to Virtualbox, and click on File -> Preferences -> Network. Double click your Nat Network, and then click on Port Forwarding. From here, you can forward your vm’s ports to your local workstation (127.0.0.x)