VMware

This Question is Answered

1 "helpful" answer available (6 pts)
14 Replies Last post: Oct 22, 2007 11:49 AM by asatoran  

WIndows server VM and XP VM cant connect XPVM to domain posted: Oct 20, 2007 11:03 AM

Click to view kili's profile Novice 13 posts since
Sep 29, 2006
Hi Guys

I'm using VMware Workstation 6.01. I have setup host only networking (to create a virtual LAN) and have a windows server 2003 VM and a windows XP VM. Both are on the same address range and subnet mask and I can ping both from each other but I cant join the XP VM to the domain on the windows 2003 VM.

I'm also puzzled as using the host only networking uses a virtual DHCP server created by VMware hence my domain controller has a dhcp assigned address not something that you would do with a primary active directory controller a static IP address is usual .The same with XP machine it has a DHCP assigned address (This is normal) but I cant join the domain.

I'm still reading through the manuals but any suggestions as to what's preventing my joining XP VMachines to the windows 2003 server VM domain would be greatly appreciated.


Cheers

Andy

Click to view asatoran's profile Virtuoso 2,926 posts since
Jun 23, 2006

As I recently posted to someone on DCPROMO issues, I always recommend the DCs have static IP. Strange hard to troubleshoot problems sometimes appear with non-static IPs on your servers.

Then on the workstation, set the DNS to point to the DC. Temporarily remove any other DNS entries so that the only entry is the DC.

These two things fix many of my domain joining problems.

Click to view Peter_vm's profile Guru 9,058 posts since
Feb 1, 2006

Please post "IPCONFIG /ALL" from both guests.

Also, I don't think using DHCP for AD DC server is right, if you have seen it recommended differently, please post a link to that documentation.

Use DCDIAG and NETDIAG for troubleshooting. Pay attention to DNS settings, they must have your DC IP address.

Click to view Peter_vm's profile Guru 9,058 posts since
Feb 1, 2006
VMware sets DHCP server on VMnet1 and VMnet8 networks. But it is UP TO YOU to decide if it is appropriate to use DHCP in guests, or use static IPs.
Even before you use DCDIAG, NETDIAG, perform basic ping and nslookup tests. Make sure that DNS resolves name of your DC and name used for AD.
Click to view asatoran's profile Virtuoso 2,926 posts since
Jun 23, 2006
kili wrote:

...The XP VM has acquired an IP address from the DHCP server setup within windows 2003 VM but it still wont connect to the domain when trying to join the domain . ...

Like I said, temporarily set the DNS on the workstation to point to the DC. Even if you don't want this static in the end, just for the act of joining the domain, set the DNS to the DC and remove all other DNS entries just so that the workstation looks first to the DC and only the DC and nothing other than the DC. After you've successfully joined, the domain, you can change the workstation DNS or go back ot DHCP. If I had known about this DNS trick the first year I was a field tech, there would've been about 20 jobs that I would've gone home about an hour or two earlier. In a couple of cases, it would've saved me from reloading Windows. ;-)

So just try forcing the DNS. Chalk it up to lesson learned and another feather in your cap. If it doesn't work, we can quickly move on to checking other things. And like Peter said, set the DC to a static IP, despite what the manual may be saying. As long as you set th DC's IP to the same subnet as the DHCP, this is not a problem. As with the DNS trick, you will save yourself a bunch of unneeded troubleshooting. :-)
Click to view admad1's profile Novice 8 posts since
Oct 14, 2006

Hi asatoran

Thanks for the info. I've set the ip address to static on the XP VM but still cant join the domain. I can ping the server (192.168.0.1) from the XP VM but I cant ping the XP VM from the server.

NSLookup ON THE XP VM shows:

DNS request timed out
time out was 2 seconds
Cant find server name for address 192.168.0.1 (The server VM IP)
Default servers are not available
Default server unknown 192.168.0.1

I get the same response when running NSloopup on the server.

DNS is up and running on the server and the DNS service is started

Cheers

Andy


Click to view Peter_vm's profile Guru 9,058 posts since
Feb 1, 2006
admad1 wrote:
Hi asatoran

Thanks for the info. I've set the ip address to static on the XP VM but still cant join the domain. I can ping the server (192.168.0.1) from the XP VM but I cant ping the XP VM from the server.

Are you the same person as "kili" (original post)?

If you are, OP said that he could ping between both VMs, you can't. You must fix that first.

Click to view admad1's profile Novice 8 posts since
Oct 14, 2006

Yes I'm kili (Andy)

OP?

I'm working on it but I just aintvsure which route to use . I want a windows 2003 virtual network as such i understand i use host only but this seems to be complicated by the vmware DHCP server .I want to run DHCP from the Windows 2003 server Active directory controller and assign XP VM to the windows domain but I'm going round in cirles trying to get this to function

If anyone wnats me I'm in the corner banging my head againts the wall lol..

Thanks Peter

Click to view Peter_vm's profile Guru 9,058 posts since
Feb 1, 2006

OP = Original Poster = kili = admad1

Lets make all this network mess clear:

  • you want AD DC and XP guest talking to each other
  • you want to use AD DHCP for that network segment
  • both not need to talk to host or other PCs on host LAN

In that case bind their virtual NICs to isolated VMnet switches (VMnet2 or 3 or 4 or 5 or 6 or 7)

Assign STATIC IP for your DC. Make sure DNS and DHCP services work properly (admin tools, event logs, etc.). Then start guest with DHCP setting. It should acquire IP given by DC.

Click to view admad1's profile Novice 8 posts since
Oct 14, 2006

Hi Peter

Thanks for your time. I've done all you said and bound the virtual nics to VMnet2 .The XP VM is now getting an assigned IP address from the Windows 2003 VM DHCP server so some progress.

I can ping the Windows 2003 VM from the XP Vm but still cant ping from the Windows 2003 VM to the XP Vm .

Looking at the DNS event logs shows:

The zone server.com is configured to accept updates but the A record for the primary server in the zone's SOA record is not available on this DNS server. This may indicate a configuration problem. If the address of the primary server for the zone cannot be resolved DNS clients will be unable to locate a server to accept updates for this zone. This will cause DNS clients to be unable to perform DNS updates.

I'm researching this to see if I can figure it out but it may be simpler if I do a reinstall of 2003 server and the xp machine and start from scratch as I've chenged from NAT, HOST and Bridged at some point or other.

Many Thanks

Kili


Click to view rsa911's profile Virtuoso 1,877 posts since
Aug 3, 2007
to ease up thing, I would stop and disable Windows Firewall on both the W2003 and XP machines
to stop it: Start --> Run --> services.msc --> Windows Firewall --> STOP

(once you've managed to join the domain and feel confortable with the networking between your two machines, you can turn it back on and tweak it if necessary )
Click to view asatoran's profile Virtuoso 2,926 posts since
Jun 23, 2006
(Edit: you posted your success just before I posted. Good job! Glad to hear it. )

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities