Set up AlwaysOn in virtual environment: How to add nodes to domain? On a beefy server, I have a few Virtual Machines (VMs) running. On one of those, I have Domain Controller (DC) with a domain name (ex:SQL.AD.COM) running successfully. Now, I need to add the other VMs into this domain. How do I do that?

For AlwaysOn, all nodes must in a domain. So, for that to happen, all nodes need to be added to the domain created by the DC. When I go to My Computer >> Properties >> Computer Name >> Change Settings >> Computer Name (tab) >> Change >> 



I can change the computer name, but could not add the VM to the domain. What is missing?

This is the error I get:

I have the following network properties for each VM.

Domain Controller has 1 NIC


First: 


Name: AD 
Type: Host-Only Adapter
Static IP Address (of VM): 200.201.202.1



What IP address settings do I need to configure for VM's to be able to join the domain? I have 3 nodes (VMs)

After @Phil comments, I removed the 200.201.xx.xx IP and added 192.168.1.x IP address pattern.

Thanks,
    _UB
Finally after some reading more articles on Windows and AD Networking and speaking with abunch of people, this is what helped.

Settings on DC machine:

IP:                  192.168.1.10
Subnetmask:          255.255.255.0
Gateway: (none)

Preferred DNS: 127.0.0.1
Alternate DNS: (none)

On Each VM:

IP:                  192.168.1.11  (/12/13.../15 - on each node)
Subnetmask:          255.255.255.0
Gateway: (none)

Preferred DNS: 192.168.1.10
Alternate DNS: (none)

Restart the Network Adapter. BOOM !!

Now I can ping the DC and add them to the domain.

Why does it work now (but not before): 

For DC: I made the DNS as loopback IP as preferred DNS (rather than its own IP - 192.168.1.10). This way it knows that the machine itself is the DNS.

For VMs: Gave them valid static IPs, rather than dynamic IP. Set the DNS to the DC (this was set correctly even before).

Glad I learnt something new,
_UB