This creates a dedicated network between the host and guest, allowing you to SSH and use other network services without the need of an external router.
- In VirtualBox, edit VM settings and add a second host-only network adapter
- Log into the guest VM
- Run
ifconfig
, note the new adapter's interface name (likeenp0s8
) - Run
nmtui
Edit a connection
>Add
>Ethernet
- Profile name:
Host-only Adapter