One server with three nodes Kubernetes

Hey guys,

I am new to Kubernetes.
At the moment, I am researching on how can I setup a Kubernetes cluster from scratch on CentOS 8 with VirtualBox for learning purpose before proceeding to the server setup.

I was wondering if it is even possible to setup the whole 1 master-node and 2 worker-nodes cluster in one virtual-machine/server. If is possible please point me towards the right resources or guides.

I managed to startup the master-node, now how do I startup the worker-node in the same virtual-machine/server as the master-node is already running on and then join the master-node’s cluster?

Kind regards,