Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My development environment is Ubuntu guest OS inside VMWare Player with Windows 7 as the host OS. I edit the hosts file in windows to point http://dev.mydomain.com to the ip-address of my VM so that I can test browsers in windows. I love this setup, but have to update my hosts file quite often to take advantage of it. Is there a way to either prevent the ip-address from changing so frequently, or to automatically update the hosts file when it changes?

share|improve this question

migrated from serverfault.com Nov 21 '11 at 14:55

This question came from our site for professional system and network administrators.

3  
Is your Virtual networking setup NAT or bridged? Any reason why you can't just set a static IP in Ubuntu? –  growse Jul 10 '11 at 19:20
    
That's exactly what I'm asking how to do! –  Anson Kao Jul 10 '11 at 23:04
add comment

1 Answer

up vote 1 down vote accepted

It may be simpler to set your virtual machines networking to Bridged and set a static IP up in Ubuntu.

share|improve this answer
    
Awesome, can you point me in the right direction on how to do that? I tried changing VMWare player to bridged, after which my hosts don't seem to work anymore –  Anson Kao Jul 11 '11 at 0:39
    
Nevermind, I probably just didn't wait long enough for the settings to kick in. Thanks! –  Anson Kao Jul 11 '11 at 3:22
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.