I'm trying to connect a guest running on an headless Ubuntu 20 directly to the router (over bridged networking) so it looks like an own device from the router. I did this several times with a GUI but don't know how to do it with with the command line/vboxmanage. For example if my router's IP adress is 192.168.1.2 and host 192.168.1.3, the VM's guest IP would be 192.168.1.4.
I've found some tutorials on how to create a network bridge but I'm not sure which one does the trick.
In the first one an interface is added to the host by
Code: Select all
brctl addbr vmtestbr1 Code: Select all
VBoxManage modifyvm VM1 --nic1 bridged --bridgeadapter1 eth0So if I understand correctly I would need to change the network settings within the guest OS (after adding the brideadapter) for latter method but would have an IP as 192.168.1.4 afterwards. Is there any way to achieve this without changing the network settings from within the guest's OS?
My main goal is to make the guest reachable from the LAN or outside the host.
Thanks
Alex