SubPointSolutions / uplift-vagrant

A vagrant plugin for simplified configuration of DC, SQL, SharePoint and Visual Studio.
3 stars 1 forks source link

Computer 'crm' failed to join domain 'uplift' #12

Open shurick81 opened 5 years ago

shurick81 commented 5 years ago

I stumbled into this issue now when I try uplift on a laptop that I have never used uplift on before: https://gist.github.com/shurick81/435f6559509536b3fb5d2426691a867c.

On the host:

vagrant -v
Vagrant 2.2.3

vagrant plugin list
vagrant-reload (0.0.1, global)
vagrant-uplift (0.2.1902.49, global)

Running from this vagrant directory: https://github.com/SubPointSolutions/uplift-contrib/tree/130a98e581ca4db1530b7e355cc43b37cd86e331/uplift-vagrant/crm-dev.

On the dc VM:

PS C:\Windows\system32> ipconfig /all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : dc
   Primary Dns Suffix  . . . . . . . : uplift.local
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : uplift.local

Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Desktop Adapter
   Physical Address. . . . . . . . . : 08-00-27-76-EC-46
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::7d4c:9489:fe64:3316%7(Preferred)
   IPv4 Address. . . . . . . . . . . : 10.0.2.15(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Monday, April 15, 2019 7:48:22 AM
   Lease Expires . . . . . . . . . . : Tuesday, April 16, 2019 7:48:22 PM
   Default Gateway . . . . . . . . . : 10.0.2.2
   DHCP Server . . . . . . . . . . . : 10.0.2.2
   DHCPv6 IAID . . . . . . . . . . . : 34078759
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-24-45-DC-F6-08-00-27-76-EC-46
   DNS Servers . . . . . . . . . . . : ::1
                                       127.0.0.1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter Ethernet 2:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Desktop Adapter #2
   Physical Address. . . . . . . . . : 08-00-27-D5-96-15
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::78a9:fed6:15ce:df3e%5(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.16.5(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :
   DHCPv6 IAID . . . . . . . . . . . : 151519271
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-24-45-DC-F6-08-00-27-76-EC-46
   DNS Servers . . . . . . . . . . . : ::1
                                       127.0.0.1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Tunnel adapter isatap.{EDD20D65-88C1-45FB-A6DA-944252BB3B06}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{8037E91E-450B-425B-9AD1-CBC8D6621024}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
PS C:\Windows\system32> nslookup
Default Server:  localhost
Address:  ::1

> uplift.local
Server:  localhost
Address:  ::1

Name:    uplift.local
Addresses:  10.0.2.15
          192.168.16.5

On the crm VM:

PS C:\Users\Administrator> ipconfig /all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : crm
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Desktop Adapter
   Physical Address. . . . . . . . . : 08-00-27-CD-52-77
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::1482:cb28:313b:5ca2%7(Preferred)
   IPv4 Address. . . . . . . . . . . : 10.0.2.15(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Monday, April 15, 2019 6:32:30 PM
   Lease Expires . . . . . . . . . . : Tuesday, April 16, 2019 6:32:31 PM
   Default Gateway . . . . . . . . . : 10.0.2.2
   DHCP Server . . . . . . . . . . . : 10.0.2.2
   DHCPv6 IAID . . . . . . . . . . . : 34078759
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-24-45-F9-17-08-00-27-CD-52-77
   DNS Servers . . . . . . . . . . . : 10.0.2.3
   NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter Ethernet 2:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Desktop Adapter #2
   Physical Address. . . . . . . . . : 08-00-27-C3-61-B6
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::10bd:74fa:d59d:b50c%3(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.16.6(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.16.1
   DHCPv6 IAID . . . . . . . . . . . : 151519271
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-24-45-F9-17-08-00-27-CD-52-77
   DNS Servers . . . . . . . . . . . : 192.168.16.5
   NetBIOS over Tcpip. . . . . . . . : Enabled

Tunnel adapter isatap.{EDD20D65-88C1-45FB-A6DA-944252BB3B06}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{30302CD1-E28B-4B99-B214-EA45320A3EE1}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
PS C:\Users\Administrator> nslookup
Default Server:  UnKnown
Address:  10.0.2.3

> uplift.local
Server:  UnKnown
Address:  10.0.2.3

*** UnKnown can't find uplift.local: Non-existent domain
> server 192.168.16.5
Default Server:  [192.168.16.5]
Address:  192.168.16.5

> uplift.local
Server:  [192.168.16.5]
Address:  192.168.16.5

DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
*** Request to [192.168.16.5] timed-out

Is it normal that the default DNS server on the crm machine is 10.0.2.3? is it any known issue that you could notice in CI @avishnyakov?

shurick81 commented 5 years ago

I run vagrant destroy --force; vagrant up a few times with the same result on this host. Then I also tried another stack on contrib: https://github.com/SubPointSolutions/uplift-contrib/blob/c6c4304aa1678c73e6386ae255e19ee2f4bdde03/uplift-vagrant/dc16-client/Vagrantfile and it also ended up with the same error.

On my other host it worked just fine. The difference I noticed is that on the host where it works properly, DNS server is available via 192.168.16.5:

PS C:\Windows\system32> nslookup
Default Server:  UnKnown
Address:  10.0.2.3

> server 192.168.16.5
Default Server:  [192.168.16.5]
Address:  192.168.16.5

> uplift.local
Server:  [192.168.16.5]
Address:  192.168.16.5

Name:    uplift.local
Addresses:  192.168.16.5
          10.0.2.15

But as you can see in initial post, the same DNS lookups fails. It might be kind of faulty host configuration, firewall or something but I have other dc-client stacks (not uplift) working on it, so I need to dig deeper to figure out the issue.