none
Joining domain inside Hyper-V - Server 2012 R2

    Question

  • Here is the situation:

    I have created two virtual machines in Hyper-V. Both are connected to the same Hyper-V virtual switch, both have access to the Internet, both have their own IP adresses in my physical network:

    My physical machine has IP 192.168.0.7

    Virtual machine A has IP 192.168.0.20

    Virtual machine B has IP 192.168.0.21

    I can "ping" them any way around - it works.

    Both virtual machine are running Windows Server 2012 R2, just installed.

    On machine A I want to create a domain and I want machine B to join it. So I added Active Directory Domain Services role to machine A, created a domain called CrmDomain.local. I used all the default settings by the way.

    I log in to machine B as Administrator, go to settings, type in CrmDomain to join. A new window pops up for credentials (so I guess it can find the domain), I type in Administrator password, hit Enter... It tries to connect for a couple of seconds, then this pops up:

    http://image.prntscr.com/image/5307c865f4be4f5699ffb65c5b63070e.png

    I don't know what am I doing wrong. I don't care about security - it's just for testing purposes.

    Here is ipconfig/all from domain controller (machine A):

    http://image.prntscr.com/image/7bc0eb7869fe4adc9bebe3f95a2cabf0.png

    And here is machine B:

    http://image.prntscr.com/image/6cfcd27341fc4f669d075c5a8b425cf1.png

    I haven't touched any settings, it's my first time with server system :P

    If I can give you any more informations, please let me know.

    Saturday, January 14, 2017 1:25 PM

Answers

  • Check that the firewall is turned off on the domain controller and the server you want to join to the domain. After that close the properties and open it again to join your server to the domain.

    Also make sure you've provided the DNS IP address in TCP/IP Configuration.

    Saturday, January 14, 2017 3:04 PM

All replies

  • Hi Adam,

    Unlike the legacy versions of windows server before windows server 2012 r2, you can't just join a domain with using only the netbios name.

    You've to write  CrmDomain.local instead of CrmDomain when you join it to the domain.

    Saturday, January 14, 2017 2:54 PM
  • Hi,

    this is the result I get:

    http://image.prntscr.com/image/3b8139882c77466291eec6034d5f0b20.png

    I don't even get prompted for any credentials :(

    Edit: this hides under "details" button:

    Note: This information is intended for a network administrator.  If you are not your network's administrator, notify the administrator that you received this information, which has been recorded in the file C:\Windows\debug\dcdiag.txt.

    The following error occurred when DNS was queried for the service location (SRV) resource record used to locate an Active Directory Domain Controller (AD DC) for domain "CrmDomain.local":

    The error was: "DNS name does not exist."
    (error code 0x0000232B RCODE_NAME_ERROR)

    The query was for the SRV record for _ldap._tcp.dc._msdcs.CrmDomain.local

    Common causes of this error include the following:

    - The DNS SRV records required to locate a AD DC for the domain are not registered in DNS. These records are registered with a DNS server automatically when a AD DC is added to a domain. They are updated by the AD DC at set intervals. This computer is configured to use DNS servers with the following IP addresses:

    192.168.0.2
    192.168.0.1

    - One or more of the following zones do not include delegation to its child zone:

    CrmDomain.local
    local
    . (the root zone)


    Saturday, January 14, 2017 3:02 PM
  • Check that the firewall is turned off on the domain controller and the server you want to join to the domain. After that close the properties and open it again to join your server to the domain.

    Also make sure you've provided the DNS IP address in TCP/IP Configuration.

    Saturday, January 14, 2017 3:04 PM
  • I have turned off firewalls on both machines. I set the DNS adress on machine B (the one I want to join to the domain) to 192.168.0.20 (domain controller IP). After restart, the error is the same:

    http://image.prntscr.com/image/4714005b6d5343d1a3794674225a4db6.png

    However, the DNS seems to be working. When I set the adress to 192.168.0.20, I have Internet connection. If I set it to random 192.168.0.30, I loose it.

    Edit: Nevermind. I restarted my PC and it started to work, haha! Thank you very much for your help!



    Saturday, January 14, 2017 4:08 PM