VMware Cloud Community
WillGreen
Contributor
Contributor
Jump to solution

VMware ESXi HA and DNS

I am currently evaluating VMware on a set of blades with ESXi. I have configured a pair of NICs to form the management network and enabled VMotion on them. VMotion works fine between all the hosts both manually and with DRS.

However I'm not sure how I should set up HA, attempting to turn on HA on my test cluster fails because the hostname and IP don't match. The dedicated management network doesn't have a DNS server as it's just the blade servers and the blade chassis switches. I have manually assigned each blades management IP via the ESXi set up screen on each physical host.

  • Is there any reason HA can't use IP addresses?

  • If I have to use names for resolution, can these be configured in /etc/hosts when using ESXi?

I have attached a screenshot showing the network configuration of one of my hosts (VMotion is enabled on the 'Management Network').

If you have any experience with a similar set up it would be much appreciated.

Thanks,

Will

Reply
0 Kudos
1 Solution

Accepted Solutions
djciaro
Expert
Expert
Jump to solution

you need to place the FQDM and IP address of all ESX servers in the cluster in the host file on each ESX:

  1. Do not remove the following line, or various programs

  2. that require network functionality will fail.

127.0.0.1 localhost.localdomain localhost

SERVER IP ADDRESS SERVER NAME

SERVER IP ADDRESS FQDN SERVER

e.g.

192.168.1.12 myserver.mycompany.com

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!

View solution in original post

Reply
0 Kudos
12 Replies
djciaro
Expert
Expert
Jump to solution

you need to place the FQDM and IP address of all ESX servers in the cluster in the host file on each ESX:

  1. Do not remove the following line, or various programs

  2. that require network functionality will fail.

127.0.0.1 localhost.localdomain localhost

SERVER IP ADDRESS SERVER NAME

SERVER IP ADDRESS FQDN SERVER

e.g.

192.168.1.12 myserver.mycompany.com

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!
Reply
0 Kudos
benma
Hot Shot
Hot Shot
Jump to solution

Hi,

yep its possible to run HA without DNS.

Edit your hosts files on ESX and the vCenter Server like the following:

10.1.1.1 esx1.domain.local esx1

10.1.1.2 esx2.domain.local esx2

10.1.1.3 vc1.domain.local vc1

Reply
0 Kudos
djciaro
Expert
Expert
Jump to solution

p.s.

In order to be able to modify the hosts file you will need to enable access via SSH

http://www.vm-help.com/esx/esx3i/ESXi_enable_SSH.php

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!
WillGreen
Contributor
Contributor
Jump to solution

I'll give enabling ssh a go.

Thanks

Reply
0 Kudos
benma
Hot Shot
Hot Shot
Jump to solution

You can change the file by altering the file from the outside like winscp

or access the local console...

Press Alt+F1

type 'unsupported' and hit enter

now you can login with root

benma
Hot Shot
Hot Shot
Jump to solution

djciaro why are you typing so fast?

Reply
0 Kudos
djciaro
Expert
Expert
Jump to solution

and I thought I typed slowly Smiley Wink

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!
Reply
0 Kudos
WillGreen
Contributor
Contributor
Jump to solution

Is there any supported way to update /etc/hosts on esxi? Seems like something VMware should allow.

Reply
0 Kudos
benma
Hot Shot
Hot Shot
Jump to solution

Without ssh enabled or the console I don't see any possibility of editing the Hosts file

Reply
0 Kudos
Dave_Mishchenko
Immortal
Immortal
Jump to solution

You can do this with vifs from the RCLI - http://www.vm-help.com/esx/esx3i/esx_3i_rcli/vifs.php.

Reply
0 Kudos
WillGreen
Contributor
Contributor
Jump to solution

Thanks. This worked.

Reply
0 Kudos
WillGreen
Contributor
Contributor
Jump to solution

Follow up to this. Using /etc/hosts didn't work well. I switched to using DNS and everything worked much more reliably. Based on my experience I wouldn't recommend using HA without DNS.

Reply
0 Kudos