How can I convince my VMware Fusion VMs not to change IP address?

34

I’m using VMware Fusion for development (I have a Mac but I run Ubuntu in a virtual machine). I’m usually SSHd in to the vm from several terminals.

Every now and then, the IP address of the virtual machine changes – and I have to update various tools that point to it. I can’t quite figure out the circumstances under which this happens – sometimes it’s when I switch from WiFi to Ethernet, but other times it just seems to happen for no reason at all. It’s only every week or so (I usually leave my machine plugged in to Ethernet).

Any idea how I can convince VMware Fusion to just stick with one IP address for my VM?

Set your VM to use a static IP address instead of one assigned by DHCP.

  1. Open the Network Connections configuration window. You can do this by right-clicking on the network connection icon on the top bar, or through different menu options depending on your Ubuntu version.
  2. Choose your connection and hit Edit. Go to the IPv4 Settings tab.
  3. Switch the Method dropdown from “Automatic (DHCP)” to “Manual”. Open up a terminal and use the `ifconfig` and `route` utilities to find your current IP address and default gateway. Choose an IP address on the same subnet (mine look like 192.168.58.3), a 255.255.255.0 netmask, and the default gateway (mine is 192.168.58.2). The DNS server is is the same as the default gateway. Enter these values into the manual connection configuration and hit Save. You may need to disable and re-enable networking for it to start working.

The above assumes you’re running desktop Ubuntu. The process is similar for other operating systems.

After assigning a static IP address, I give the VMs an entry in my host machine’s /etc/hosts file. That becomes a place you can look to find the next unassigned IP.

说点什么

1222 评论 在 "How can I convince my VMware Fusion VMs not to change IP address?"

提醒
排序:   最新 | 最旧 | 得票最多

相当不错,自愧不如!

三天不来手痒痒!

gladiolusой люди не парьтеся!!! ФІЛЬМ САМ ПО-СОБІ ШЛАК, НІХТО НА НЬОГО НЕ ПІДЕ, ні на рос, ні на скÑÀƒÂ°Ã‘—нÑÂÂький дубляжі взагалі треба звикнути що кейдж зараз знімається тільки в “шлаці”

Free knowledge like this doesn’t just help, it promote democracy. Thank you.

Surprising to think of something like that

Stands back from the keyboard in amazement! Thanks!

Unparalleled accuracy, unequivocal clarity, and undeniable importance!

This is both street smart and intelligent.

Baking in the fall is so nice, isn’t it? I bet this bread smelled intoxicating wafting around your kitchen. Love the freshly grated ginger in this too; I’m a big fan of the pronounced taste and chew.

Hey, subtle must be your middle name. Great post!

Quand on sait comment sont obtenus les permis et comment conduisent très mal les marocains, c'est un miracle s'il n' y a que 4000 morts par an!Lamentable de tous les points de vue, hélas…Bonne journée!

If I remember correctly, Cast Lead was brought on by tens of thousands of rockets fired on Israel after they left. You don’t remember correctly. Cast Lead began with Israle breaking a 4 months ceasefire when they used the day of the US presidential elections to attack Gaza and kill 6 Palestinians. They chose the day to ensure minial new coverage.

Great post with lots of important stuff.

Det er selvfølgelig rigtig.. heh. Men mange tak, det var nu lige den her model med pels jeg virkelig er blevet vild med.

Hey! This post couldn’t be written any better! Reading through this post reminds me of my old room mate! He always kept talking about this. I will forward this write-up to him. Fairly certain he will have a good read. Thank you for sharing!

What’s up, I log on to your blog regularly.
Your writing style is awesome, keep it up!

What’s up colleagues, good piece of writing and fastidious urging commented at this place, I am really enjoying by these.

Hey There. I discovered your weblog the use of msn. This is an extremely well written article.
I’ll be sure to bookmark it and return to learn extra of your useful information. Thanks for the post.
I will certainly comeback.

Therefore, it’s crucial to take sufficient time to seek out an experienced, reputable agent.

Zero down is not always a negative alternative, However you will need to be extra diligent in staying
on top of any additional prices that are added to the loan.

The internet site that has altered plenty of things in ecommerce is Soufun This site has real estate tips about 300 towns in China, and is the main web site for real estate ecommerce in China.

FHA enables first time buyers to put down as bit as 3.5 % and also obtain up to 6
% towards closing prices.

Wow, My credit rating was 685 and Quicken loans shot me down fast on a re-finance.

With conventional home loan, your mortgage repayment could not exceed 28 % of your gross
monthly revenue.

A real-estate report that was released recently highlighted the
facts why Bangalore is thought to be the most favored city to purchase properties as well as to stay in the
nation.

The major drawback to FHA home mortgages is the monthly home loan insurance coverage premium (MIP) compared to a Conforming/Conventional mortgage.

Howdy exceptional website! Does running a blog such
as this take a large amount of work? I have absolutely no knowledge of programming however
I had been hoping to start my own blog in the near future.

Anyway, should you have any recommendations or tips for new blog owners please share.
I understand this is off topic however I just needed to ask.
Thanks!

Hello! I’m at work browsing your blog from my new iphone 4!

Just wanted to say I love reading your blog and
look forward to all your posts! Keep up the excellent work!

For most recent information you have to visit web and on the web I found this site as a most excellent site for latest updates.

Hello! This is my first visit to your blog! We are a group of volunteers
and starting a new project in a community in the same niche.
Your blog provided us useful information to work on. You have done
a wonderful job!

I believe that is one of the so much vital info for me.

And i’m glad reading your article. But wanna statement on some basic issues, The website
style is ideal, the articles is truly great :
D. Just right job, cheers

Wow, incredible blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your web site is magnificent, let alone the content!

What’s up, all the time i used to check web site posts here in the early hours in the morning, as i like to learn more and more.

I was curious if you ever considered changing the page layout of your website?

Its very well written; I love what youve got to say. But maybe you could a
little more in the way of content so people could connect with it better.
Youve got an awful lot of text for only having one or 2
images. Maybe you could space it out better?

oT4CRp Thanks for another great article. Where else could anyone get that type of info in such a perfect way of writing? I ave a presentation next week, and I am on the look for such information.

wpDiscuz