I'm experimenting multi-VM setup in Azure. Saying it shortly, I'm deploying a single coud service (my.cloudapp.net) which is backed by multiple VMs, each offering a subset of specific services (e.g. HTTP/s service is backed by VM1, SMTP is backed by VM2...).

I'm hosting MySQL on a different machine than the web host. The very simple question is: how can I connect to VMb from VMa?

Option 1 is to use public DNS (my.cloudapp.net) but this implies setting a firewall forwarding rule, which is what I don't actually want for some services like DB and LMTP.

I have successfully addressed the VMs by their internal address. Ifconfig output

eth0      Link encap:Ethernet  HWaddr 00:03:FF:41:4A:70  
          inet addr:  Bcast:  Mask:
          RX packets:208209 errors:0 dropped:0 overruns:0 frame:0
          TX packets:315173 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:29385493 (28.0 Mb)  TX bytes:321811574 (306.9 Mb)

Does the internal IP remain same or does it change at VM reboot?


Yes, it will remain the same.

The caveat is that if you shut down the VM with StoppedDeallocated option, that will release the internal IP. To overcome this, use the Static Internal IP feature.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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