Solved

Running window DHCP server in host-only mode on VMware workstation

Posted on 2014-03-04
9
4,405 Views
Last Modified: 2014-03-07
Hi

I am trying to set up a lab environment using VMware workstation 10.

I have 2 VMs, a Windows 8 client and a Windows Server 2012 R2 server.

I have put them both into VMnet2 which is configured as a host only network.

I have unchecked the box that enables the built in VMware DHCP server.

The windows server 2012 VM has dhcp server set up and it is authorized.

My Windows 8 VM will not pick up an IP address from the server.

Any suggestions to what I am doing wrong?
0
Comment
Question by:roy_batty
9 Comments
 
LVL 80

Expert Comment

by:David Johnson, CD, MVP
ID: 39903228
host only means that it will only communicate with the host and not other vm's nor the outside network.
0
 
LVL 13

Expert Comment

by:SagiEDoc
ID: 39903237
Do you have a domain controller for this lab? Having an authorised DHCP server you will also need a DC with working DNS. Another issue I can see here is that on physical switches there is a DHCP help address which is the address of the DHCP server, this provides clients with a means to identify the DHCP server and obtain an address. I am not aware of a way to set this helper address on a virtual switch in vmware.
0
 
LVL 1

Author Comment

by:roy_batty
ID: 39905842
I think I have been misunderstanding exactly what "host only" means. I thought any VM added to the host only network would be able to communicate with each other. Is this not the case?

I have therefore put both VMs on a NAT network. I'm still cant get the client to get an IP address from the server.
0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 1

Author Comment

by:roy_batty
ID: 39906292
After moving both VMs to a NAT network I was still having issues getting the clients to talk to one another. I noriced that there was an additonal TAP-Windows Network adaptor which was confusing things on both VMs.

So I deleted all the network adaptors on both VMs and rebooted them and let them install the adaptors again (this time just the one adaptor each - no TAP)

It is all working now. Client VM is getting IP from DHCP VM.

Many thanks.
0
 
LVL 16

Accepted Solution

by:
vivigatt earned 500 total points
ID: 39906306
You were right (and David Johnson is wrong) :
Host only is a "private network" internal to the host that does not allow packets to get outside this network.
All VMs in host-only can communicate together, and they can also communicate with the host, but that's all :
http://pubs.vmware.com/workstation-10/index.jsp?topic=%2Fcom.vmware.ws.using.doc%2FGUID-93BDF7F1-D2E4-42CE-80EA-4E305337D2FC.html

If you want the DHCP server to work from a guest VM, you have to check the usual stuff for DHCP servers.
DHCP server Authorization requires a Active Directory Domain. You can use a stand-alone server (no AD) with DHCP service, and then it does not need to be authorized (because it can't).
Things to check:
- Firewall (disable it completely for diagnosis purposes)
- Network Bindings
- Event Logs
- Reboot the DHCP Server VM and see if this is any better
0
 
LVL 1

Author Comment

by:roy_batty
ID: 39906342
Well its all working now and I also have the benefit of being able to access the internet from the VMs now too.

I only wanted to use host only to stop the Lab interfering with my home network. e.g didn't want wife's laptop to suddenly start getting ip addresses from the virtual dhcp server.

I now realize that this wouldn't happen anyway as the virtual nat network is "protected" by the nat itself. i.e no broadcast dhcp requests.

Now that the host-only function has been cleared up, I feel that the initial issue was caused by the dhcp server binding to the TAP adaptor.

You deserve some point for this but I think its too late now.

Thanks though.
0
 
LVL 16

Expert Comment

by:vivigatt
ID: 39906447
You accepted a wrong solution, that does not explain/resolve your issue and that may confuse users in the future !
Once again : a host-only network is a private network in which ALL the guests can communicate together and with the host but not with the outside world.
0
 
LVL 1

Author Closing Comment

by:roy_batty
ID: 39912037
As I mentioned. I think the issue was down to DNS server network bindings.

Thanks for the help guys.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Missing Deployed Printers from Group Policy Objects 8 33
VMware Fail Over 5 52
Window update errors on VMs 9 22
Migrating Windows vCenter Server 5.5 to VCSA 6.5 8 53
In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question