How to make a guest VirtualBox VM be on the same network as the host

When setting up a virtual machine using VirtualBox I find myself either just playing with some vm, such as Windows 10/11 or wanting to build a virtual machine I need to interact with such as a linux machine that I want to ssh into.

Here are the two networks you will most likely us for 99% of your needs.

Virtual apps have two basic methods of allowing guests to have access to the Internet and to connect with other machines.

  1. NAT: Default where the Guest is on a different network but can still connect to other machines.
  2. Bridged: Not usually default but puts the Guest machine on the same network as the Host Router and Host machine.

Hope this helps!