change network setting to create in VMware a network

Abraham Deutsch
Abraham Deutsch used Ask the Experts™
on
I am setting a small lab for practice purposes. I created in VMware a server and a few computers. Now I want the computers to join the DNS server in order to do this I believe I need to change the network adapter settings on the virtual machines. Can someone guide me thru the process (without losing internet on the virtual machines?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
For any Windows or Linux computer, whether physical or virtual, the process is the same, you specify the DNS server IP Address in the DNS Server TCP/IP settings.

If you already have Internet Access, you virtual machines, must already be setup with a DNS server, otherwise, they would not know how to resolve DNS queries for Internet DNS names.
Abraham DeutschIT professional
Top Expert 2016

Author

Commented:
Currently the virtual machines uses the host machine (which is a window 7) to access the internet.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
and what do you want to change ?

What VMware software are you using ?

What network configuration, are your VMs using 0- NAT, Bridged or Host only ?
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Abraham DeutschIT professional
Top Expert 2016

Author

Commented:
The machines should join the gust server
VMware workstation 12 palyer
Net
Abraham DeutschIT professional
Top Expert 2016

Author

Commented:
Sorry Guest
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
Okay, so you have some virtual machines guest, hosted using VMware Workstation 12, on a Windows 7 Host.

What is the networking -

1.NAT
2. BRIDGED
3. HOST ONLY

"join" the guest server in what ?

Computers do not join to DNS, Windows computers, can join a Domain, rather than a workgroup.
Abraham DeutschIT professional
Top Expert 2016

Author

Commented:
NAT

Correct I want them to Join the Guest server domain. (sorry for my wrong description)
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
Okay, so I assume there is a Domain Controller on the LAN, which the Windows 7 Host is a member of?

You will need to change the network settings of ALL VMs, to BRIDGED.

There will then be on the same LAN as the Host (Windows 7 Host) and Domain Controller, and will get IP Addresses from your DHCP server if you have one.

They Add to Domain as you would a physical computer.
Abraham DeutschIT professional
Top Expert 2016

Author

Commented:
No the window 7 is not part of a domain. its just a laptop getting internet from a hot spot.
What I am trying to accomplish, the guest Vserver should be the Domain controller for the guest Vmachines.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
You will need to install a server, which can have a role as a Domain Controller.

Windows 7 cannot be uses as a Domain Controller.

You will need to install Windows Server 2012 R2, and add he Active Directory Role.
Abraham DeutschIT professional
Top Expert 2016

Author

Commented:
I already installed a Vserver and added active directory. now I am trying to figure out how to join the Vmachines to the Vserver domain. thank you so much for your patience guiding me.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
okay, first ALL VMs, must be set to bridged.

What server did you install ?

did you install the AD Role and DNS ?

what IP Address is the Domain Controller ?

what IP Addresses are you VMs ?

Normally, you would select Add to Domain, when you select This PC or Computer, but ALL your VMs must be in bridged mode, and must have the IP Address of the DNS Server/Domain Controller as their DNS.
Top Expert 2016

Commented:
I get the impression your setup is as follows
Host Machine Windows 7
Guest 1 Windows Server with Active Directory Roles
Guest 2-x Windows Client machines

you have the guests using NAT host machine 192.168.1.xx doesn't matter
Guests in network 192.168.2.x again doesn't matter but the gateway will be the ip of the host machine
So if the ip address of vServer is 192.168.2.10 server dns settings in network adapter 192.168.2.10 and 127.0.0.1
you need to set the network adapter in the clients to not get dns automatically but from 192.168.2.10
Abraham DeutschIT professional
Top Expert 2016

Author

Commented:
If I understand correctly what you are saying is to set the server in net mode not in bridge that Andrew recommended?
Abraham DeutschIT professional
Top Expert 2016

Author

Commented:
Currently the Vserver network setting is net and I have no internet on the server. I changed it to bridge it did not help.Host network setting.Sever network configuration.
Abraham DeutschIT professional
Top Expert 2016

Author

Commented:
Sorry Server network configuration
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
lets work with the Active Directory server at present, and no Internet, we can resolve that later.

leave the vServer VM set to Bridged.

and set all the VMs to bridged.

You then need to ensure that all the VMs, have an IP Address, and DNS Name of he Vserver in their settings.

then add them to domain.
Abraham DeutschIT professional
Top Expert 2016

Author

Commented:
Bridge setingServer network setting
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
Yes, Bridged is correct.

now allocate the same IP address range to other VMs, and make them bridged, and then ensure, they can ping each other.
Top Expert 2016

Commented:
so your dns server is 192.168.16.2  setup a reservation in your dhcp or make that address static
on your clients set the preferred dns set it to 192.168.16.2

Without a gateway you can't access outside of your subnet
Abraham DeutschIT professional
Top Expert 2016

Author

Commented:
Server IP configGuest Vmachine IP config both are set bridge and when I trey joining the Vmachine to the domain Join VMachine to domain
David to you reffer to Forward lookup zone?
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
your DNS values are incorrect.

8.8.8.8 is Google no your Active Directory Domain Controller.

127.0.0.1 is also not your Active Directory Domain Controller.

On your clients, that you want to join to a domain, you must put the IP Address of the DNS Server, e.g. Domain Controller, as the DNS server.

that is 192.168.16.2

I would not use a google IP Address 8.8.8.8 in your DNS settings, it will upset AD.

When we get your VMs domain joined and working, we can then sort out the Internet Access.

Don't try to run before you can walk!
Abraham DeutschIT professional
Top Expert 2016

Author

Commented:
I think I followed your instructions but I still get the error msg when trying to add Vmachine. see bellow. Server IP configVMachine  IP config
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
Try a ping using fqdn to the domain controller.
Abraham DeutschIT professional
Top Expert 2016

Author

Commented:
Ping result
Abraham DeutschIT professional
Top Expert 2016

Author

Commented:
I changed the network setting to net. It WORKS. it successfully joined the domain.
Now what about getting internet.
Abraham DeutschIT professional
Top Expert 2016

Author

Commented:
David, whey do I also need the 127.0.0.1 it works fine without it?
Abraham DeutschIT professional
Top Expert 2016

Author

Commented:
David I worked days to figure this out, and you gave the perfect solution with your first shot. I was written a little in short so it took me time to follow. thank you. but do you know why I don't have internet on the Vserver Vmachine?
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
okay, so you are domain joined.... so do you have internet now ?
Abraham DeutschIT professional
Top Expert 2016

Author

Commented:
No
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
So the solution you have selected is not complete ?
Abraham DeutschIT professional
Top Expert 2016

Author

Commented:
Correct
Top Expert 2016

Commented:
All domain computers should only have the local dns server in their dns server entries.
The domain controller should have (from my experience) in the dns application have forwarders set rather than just use root hints i.e. 8.8.8.8/8.8.4.4/208.67.222.222/208.67.220.220 Use dnstest from grc.com and use the fastest ones for your area. do not rely on your isp's domain controllers for dns as they are notoriously unreliable and not maintained.

if you are using bridged networking the gateway should be the same as the rest of your network. (usually the routers address)
Top Expert 2016

Commented:
if you get a 169.254.xxx.xxx address then you are using an apipa address automatically assigned by the operating system.. This means (a) not static address and (b) did not get an address via dhcp. you need to fix this and to get outside of your subnet you need a gateway address

If the client is unable to find the information, it uses APIPA to automatically configure itself with an IP address from a range that has been reserved especially for Microsoft. The IP address range is 169.254.0.1 through 169.254.255.254. The client also configures itself with a default class B subnet mask of 255.255.0.0. A client uses the self-configured IP address until a DHCP server becomes available.
http://www.webopedia.com/TERM/A/APIPA.html
Abraham DeutschIT professional
Top Expert 2016

Author

Commented:
You are right saying the vMachine does not have a static IP. But the vserver dose see image and also does not have internet connection Server IP config
Abraham DeutschIT professional
Top Expert 2016

Author

Commented:
Andrew, the header of my question is "change network setting to "create" in VMware a network" with David solution I "have" a network now if I have a issue with the network I would not say I don't have a network, its is a network even without internet, rather I consider it as a issue, and maybe grade the solution for a B. therefore I marked his solution as accepted solution. agree?
Abraham DeutschIT professional
Top Expert 2016

Author

Commented:
Notice the IP config on the local shows no gateway for the VM network, so it has no path to the internet.IP config report on the local
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
You made it clear in your Question description,
Can someone guide me thru the process (without losing internet on the virtual machines?

if you are happy with the solution accepted that's fine, Question Closed then.
Top Expert 2016

Commented:
it still isn't working properly since one of the requirements was have internet on the virtual machines. This in all likelihood is a configuration problem on the lab dns server. as a quick test can you ping 8.8.8.8 or do a tracert 8.8.8.8 and also a nslookup google.com please share the results.
Top Expert 2016

Commented:
as mentioned previously you require a gateway to get outside of your network.
Bridged network the gateway would typically be your routers address.
NAT (not NET) [one letter means a big difference] it would be the NAT ip address (vmware player)
Abraham DeutschIT professional
Top Expert 2016

Author

Commented:
Andrew. You are right I did mention internet in my question. And Thank you for making me aware. Thank you David for reopening the question. I will try your solution and update you. Thank you all again.
Abraham DeutschIT professional
Top Expert 2016

Author

Commented:
Sorry David but if you don't mind please explain me again what to do it order to get internet.
Top Expert 2016

Commented:
in the running operating system network settings or the result from ipconfig you will see the ip adress, netmask, and gateway.

i.e. 192.168.0.20 255.255.255.0 192.168.1.1  Addresses 192.168.0.0-255 will be considered in your local area network ip addresses out side of that range will be sent to 192.168.1.1 (the gateway) and then sent onward.. the gateway in a bridged network usually is your routers ip address  in a NAT network it will be the host machines ip address
Abraham DeutschIT professional
Top Expert 2016

Author

Commented:
Thank you David. and this is how I set it, and don't have connection to the internet. Host IPVserver
Top Expert 2016

Commented:
vserver gateway should be the same as for the host 192.168.1.1
IT professional
Top Expert 2016
Commented:
VMware just released an update to their workstation and joining a domain is a pleasure.
When creating a Vmachine it will use net by default this will create a virtual network adapter for the Vmachine and connect it to a virtual switch (net8).
This virtual switch will be used for all Vmachine except if other specified.
The virtual DHCP server on the NAT network sends out configuration information that enables the virtual machine to operate. This information includes the default gateway and the DNS server. And assigns IP addresses to virtual machine. So no custom configuration is needed.
The NAT device is a DNS proxy and forwards DNS requests from the virtual machines to a DNS server that the host system knows. Responses return to the NAT device, which then forwards them to the virtual machines, so you have internet access.
Only on the server you should manually configure the IP so is will not conflict with IP taken by other machines, but all other configurations should same as the other machines as you can see from a ping on the other machines.
In the default configuration, the virtual DHCP server dynamically allocates IP addresses in the range of net. 128 through net.254 IP address net.1 is reserved for the host virtual network adapter and net.2 is reserved for the NAT device which is the gatway.
Abraham DeutschIT professional
Top Expert 2016

Author

Commented:
In few minuets you can have a domain up in running with internet. just leave all setting at its default accept the server as explained in my answer.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial