VMware Communities
ahmd9
Enthusiast
Enthusiast
Jump to solution

How to enable Internet connection on Windows Server 2003 installed in VM in VMware Workstation 8?

I have Windows Server 2003 installed in a VMware Workstation 8 virtual machine. I need this to learn and practice how to use the Active Directory. I also set up 3 Windows XP workstations connect to it, meaning that they can communicate with the Server 2003. What is missing is the Internet connection on all of them. When I run ping 8.8.8.8 in either of these VMs I get, "Destination host unreachable."

What I am not sure about, is whether the issue comes from the settings in Windows or from the settings in the VM.

Can someone help me out?

0 Kudos
1 Solution

Accepted Solutions
ahmd9
Enthusiast
Enthusiast
Jump to solution

Thank you, guys. I was eventually able to set it up. It was quite an ordeal to deal with IPs and virtual networks. Here's how I did it (in screenshots) in case someone else needs it.

(I also admit that it may be one of many ways to set it up. Maybe there's an easier way to do it with DHCP...)

1. In your actual computer where VMware Workstation 8 is set up start the "Virtual Network Editor." It is located in the folder where VMware Workstation is installed. And set up the following network (VMnet2 in my case):

Virtual-Network-Editor-(VMware-Workstation-8).jpg

2. Then in VMware Workstation itself in the VM where Windows Server 2003 is installed set up two network connections as such:

This one is for the outside access to the Internet:

Network---Internet---Server-(VMware-Workstation-8).jpg

And this one for the intranet AD communications:

Network---AD---Server-(VMware-Workstation-8).jpg

3. Then in the VM for Windows Server 2003 set up the following for both network adapters:

For the Internet access:

network setup (server - Internet).JPG

Then you will need to allow that connection to be shared:

network-setup-(server---Internet---step2).jpg

And then for the AD access to workstations (make sure that the static IP is in the range specified in the Virtual Network Editor above for the VMnet2 network). I also set up DNS to 127.0.0.1 because I have DNS server installed on this Windows 2003:

network setup (server - AD).JPG

4. From the Windows 2003 VM try to ping 8.8.8.8. It should work now.

5. Switch to each workstation, in my case Windows XP, each in its own VM, and set up the network in the VMware Workstation as follows:

Network---AD---client-(VMware-Workstation-8).jpg

6. Then in the VM set up network connection for Windows XP workstation. Keep in mind to assign a new static IP address for each workstation, that doesn't coinside with the domain's IP (this IP must be from the range specified in the Virtual Network Editor above for the VMnet2 network):

network setup (client).JPG

7. Try first to ping the domain, in my case ping 192.168.237.128. And then Internet, ping 8.8.8.8. Both should work!

Keep going with steps [5-7].

View solution in original post

0 Kudos
5 Replies
Scorpion99
Enthusiast
Enthusiast
Jump to solution

First , in your VM machines , make sure that they have Network Cards installed successfully.

Second , in your VM settings from outside in Vmware , make sure that all VMs are bridged to your host.

They can be assigned IPs manually or from DHCP if it exists on the host or from your modem or router.

0 Kudos
a_p_
Leadership
Leadership
Jump to solution

In this case (Windows 2003 AD + clients) I'd suggest you configure "NAT" networking in the VM's settings and assign static IP addresses (unless you want to configure DHCP on the virtual DC) from within the NAT (VMnet8) range.

Static IP Addresses: 192.168.xxx.3...127

Subnet Mask: 255.255.255.0

Default Gateway: 192.168.xxx.2

For the Clients set the DNS Server address to the DC's IP address and for the DC set it to 127.0.0.1 (the default). To be able to resolve Internet URLs, you need to configure DNS forwarding for other domains than the own one in the DC's DNS server configuration. The IP address to forward DNS queries should be 192.168.xxx.2

André

0 Kudos
ahmd9
Enthusiast
Enthusiast
Jump to solution

Thank you, guys. I was eventually able to set it up. It was quite an ordeal to deal with IPs and virtual networks. Here's how I did it (in screenshots) in case someone else needs it.

(I also admit that it may be one of many ways to set it up. Maybe there's an easier way to do it with DHCP...)

1. In your actual computer where VMware Workstation 8 is set up start the "Virtual Network Editor." It is located in the folder where VMware Workstation is installed. And set up the following network (VMnet2 in my case):

Virtual-Network-Editor-(VMware-Workstation-8).jpg

2. Then in VMware Workstation itself in the VM where Windows Server 2003 is installed set up two network connections as such:

This one is for the outside access to the Internet:

Network---Internet---Server-(VMware-Workstation-8).jpg

And this one for the intranet AD communications:

Network---AD---Server-(VMware-Workstation-8).jpg

3. Then in the VM for Windows Server 2003 set up the following for both network adapters:

For the Internet access:

network setup (server - Internet).JPG

Then you will need to allow that connection to be shared:

network-setup-(server---Internet---step2).jpg

And then for the AD access to workstations (make sure that the static IP is in the range specified in the Virtual Network Editor above for the VMnet2 network). I also set up DNS to 127.0.0.1 because I have DNS server installed on this Windows 2003:

network setup (server - AD).JPG

4. From the Windows 2003 VM try to ping 8.8.8.8. It should work now.

5. Switch to each workstation, in my case Windows XP, each in its own VM, and set up the network in the VMware Workstation as follows:

Network---AD---client-(VMware-Workstation-8).jpg

6. Then in the VM set up network connection for Windows XP workstation. Keep in mind to assign a new static IP address for each workstation, that doesn't coinside with the domain's IP (this IP must be from the range specified in the Virtual Network Editor above for the VMnet2 network):

network setup (client).JPG

7. Try first to ping the domain, in my case ping 192.168.237.128. And then Internet, ping 8.8.8.8. Both should work!

Keep going with steps [5-7].

0 Kudos
ittvn
Contributor
Contributor
Jump to solution

Hey friend, you can refer to a tutorial here, it have a three way for VmWare Workstation connect Internet (Brigde, NAT and Host Only) https://www.youtube.com/watch?v=aX7BqeBGTY8

0 Kudos
chaithu4u
Enthusiast
Enthusiast
Jump to solution

there can be a number of reasons why the networking might stop working in VMware Workstation. Validate each of these troubleshooting steps to verify if it is true for your environment. Each step provides instructions or a link to a document to eliminate possible causes and take corrective action as necessary. The steps are ordered in the most appropriate sequence to isolate the issue and identify the proper resolution. Do not skip a step.

After each numbered step, check whether your virtual machine has an Internet connection. There is no need to proceed with further steps once the issue is resolved.

To troubleshoot your network and Internet connection:

  1. Make sure that your Host machine has a working network connection.
  2. Confirm that your virtual machine's firewall is not blocking the Internet access. For information on turning off your firewall, see:

Warning: Turning off your firewall can leave your computer open to attack. This is a troubleshooting step only. If turning off the firewall resolves the issue, consult the operating system's documentation for instructions to configure it properly so that it does not completely block this connection.

  1. Confirm that your virtual machine's anti-virus program is not blocking the Internet access. Consult the Help menu of the anti-virus program or see the manufacturer's documentation for instructions on configuring it correctly.
  2. Run an anti-virus scan on your virtual machine to make sure there are no viruses or other malware interfering with your Internet connection.
  3. Ensure that the network adapter is enabled. Follow the steps in the Microsoft article relevant to your version of Windows:

    Windows Vista: Enable or disable a network adapter
    Windows 7: Enable or disable a network adapter
    Windows 8: How do I fix network adapter problems?

    For Windows XP, follow these steps:
    • Click Start > Control Panel > Networking Connection.
    • Right-click Local Area Network Connection and select Enable.
  4. Change your adapter from NAT to Bridged, or vice-versa. If one selection works and the other does not, then the problem is with your network and not with Workstation or your virtual machine. For more information, see Understanding networking types in hosted products (1006480).
  5. Shut down the virtual machine, then restart your Host Machine.
  6. After your Host machine reboots, reopen Workstation.
  7. Download and reinstall VMware Workstation. This ensures that you have the most recent version, and that any missing or corrupted virtual network settings are replaced/repaired.
  8. Confirm that Workstation services are working properly.
  9. Uninstall and reinstall VMware Tools. For more information, see General VMware Tools installation instructions (1014294).
  10. Make sure that your network adapter is connected to the virtual machine by removing and re-adding it:
    • Shut down your virtual machine.
    • In Workstation, go to VM > Settings > Network Adapter.
    • Ensure that the network adapter is connected (that is, the Connected and Connect at power on options are selected).
    • Ensure that the network adapter is configured for NAT or Bridged, and not Host Only. Make a note of your setting.
    • Click on Remove.
    • From the Settings pane, select Add > Network Adapter to re-add your network adapter.
    • Verify that your new network adapter settings match your old settings.
    • Restart your Host machine.
    • Power on your virtual machine.

  11. Update the Windows network adapter in Device Manager:
    • Start the virtual machine.
    • Click Start, right-click My Computer, and click Manage.
    • Select Device Manager from the left pane.
    • Click the arrow to expand the Network Adapters section.
    • Right-click your Ethernet Controller in that list (name may vary) and click Update Driver Software.
      • Select Search automatically for updated driver software. If the driver is not automatically detected:
        • Repeat the above step and select Browse my computer for driver software.
        • Select Let me pick from a list of device drivers on my computer.
          • For Windows XP, select VMware Accelerated AMD PCNet Adapter.
          • For Windows Vista and 7, select Intel Pro/1000 MT Network Connection.
      • Click Close.
      • Restart Windows.

  12. Uninstall and reinstall all network adapters in the Device Manager:
    • Start the virtual machine.
    • Click Start, right-click My Computer, then click Manage.
    • Select Device Manager from the left pane.
    • Click the arrow to expand the Network Adapters section.
    • Right-click the Intel(R) PRO/1000 MT Network Connection (in Windows Vista and 7) or VMware Accelerated AMD PCNet Adapter (in Windows XP) device and select Uninstall.
    • In the menu bar, click Action > Scan for hardware changes.
    • Restart Windows.

  13. Reset TCP/IP and Winsock settings to default:
    • To reset TCP/IP, follow the resolution steps in the Microsoft Knowledge Base article 299357.
    • To reset Winsock settings, follow the resolution steps in the Microsoft Knowledge Base article 811259.

If your problem continues to exist after performing the steps in this article, please file a support request:

0 Kudos