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?

link|improve this question
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! – SampleJACK Jul 10 '11 at 23:04
feedback

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

This question came from our site for system administrators and desktop support professionals.

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.

link|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 – SampleJACK Jul 11 '11 at 0:39
Nevermind, I probably just didn't wait long enough for the settings to kick in. Thanks! – SampleJACK Jul 11 '11 at 3:22
feedback

Your Answer

 
or
required, but never shown

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