Configure Virtualbox guest with static IP, SSH and internet access from host
- by koskoz
I have an Ubuntu Server 12 virtualbox guest running on a Windows 7 host which has a dynamic IP (and I don't wanna change this considering it's a laptop and I'm changing network frenquently).
I want to have a static IP for my VM and a SSH access from my host but I still want to have the internet access on my VM.
I tried added a second host only adapter and configured /etc/network/interface to set eth1 to a static ip, but I can't connect via SSH to it.
Setting only adapter1 to host only works for SSH and static IP but I lose the internet access.