Configure Virtualbox guest with static IP, SSH and internet access from host
        Posted  
        
            by 
                koskoz
            
        on Super User
        
        See other posts from Super User
        
            or by koskoz
        
        
        
        Published on 2012-06-08T10:31:09Z
        Indexed on 
            2012/06/08
            10:42 UTC
        
        
        Read the original article
        Hit count: 272
        
virtualbox
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.
© Super User or respective owner