Virtual PC Internet connection setup and troubleshooting (825372)



The information in this article applies to:

  • Microsoft Virtual PC for Mac Version 7
  • Microsoft Virtual PC for Mac version 6.1 Upgrade
  • Microsoft Virtual PC for Mac version 6.1
  • Microsoft Virtual PC for Mac version 6.1 with Microsoft Windows 2000
  • Microsoft Virtual PC for Mac version 6.1 with Microsoft Windows XP Professional
  • Microsoft Virtual PC for Mac version 6.1 with Microsoft Windows XP Home
  • Connectix Virtual PC for Mac version 6.0
  • Connectix Virtual PC for Mac version 5.0

SUMMARY

This step-by-step article describes how to configure and troubleshoot Internet connections in Virtual PC for Macintosh. Troubleshooting network communication problems can be complicated. This article only describes the basic steps to troubleshoot the problems that you may most likely experience in a Virtual PC virtual machine.

For more detailed information about troubleshooting TCP/IP and networking problems, see the Microsoft KB articles that are listed in the "REFERENCES" section of this article.

back to the top

Network Options

You can use any of the following methods to connect a Microsoft Windows virtual machine to the Internet:
  • Virtual Switch

    Use this option if you want to do basic tasks, but also must connect to a Windows NT domain, share files with other windows systems, use specific ports to make connections, or network between the host operating system and the guest operating system.
  • Shared Networking

    Use this option if you want to view Web pages, check your e-mail for messages, search FTP sites, and do other basic tasks online. You can use this option if the host Macintosh computer is constantly connected to the Internet with a modem.
  • Modem

    Use this option if your host Macintosh computer is not connected directly to a network or is connected to the Internet intermittently. You must use a modem from within the guest operating system.
Before you configure networking, update your operating system and your copy of Virtual PC.

To update your version of Mac OS 9, follow these steps:
  1. Point to the Apple menu, and then click Control Panels.
  2. Click Software Update.
  3. Click Update Now, and then follow the instructions that appear on the screen to install the latest version.
To update your version of Mac OS X, follow these steps:
  1. On the Dock, click System Preferences.
  2. Click Software Update.
  3. On the Update Software tab, click Check Now, and then follow the instructions that appear on the screen to install the latest version.
Contact Microsoft Product Support for information about how to obtain the most recent update to Connectix Virtual PC for Mac version 5. To download the most recent update to Virtual PC for Mac version 6, visit the following Microsoft Web site: Use the following table to determine what version of Virtual PC you can use with your Macintosh operating system:
Mac Operating System VersionVirtual PC Version
Mac OS 9.1.1, 9.2.2, or Mac OS 10.1.55.0.4
Mac OS 9.2.2 or Mac OS 10.2.66.0.1
Mac OS 9.2.2 or Mac OS 10.2.66.1
back to the top

Virtual Switch

Virtual Switch sets up a separate IP address for the virtual machine. You can fix this IP address or configure it dynamically with DHCP.

Note Microsoft does not recommend using Virtual Switch when the host Macintosh computer is connected to a network with AirPort or other wireless networking.

To configure Virtual Switch, follow these steps:
  1. Start Virtual PC.
  2. Click the virtual machine in the Virtual PC list, and then click Settings.
    Note If you cannot see the Virtual PC list, click Virtual PC, and then click Virtual PC List.
  3. Click Networking, and then click to select Enable Networking.
  4. Click Virtual Switch, and then click OK.
  5. Click Start Up. Note Because there are several versions of Microsoft Windows, the following steps may be different on your computer. If they are, see your product documentation to complete these steps.
  6. In the Windows virtual machine, start Microsoft Internet Explorer. If the New Connection Wizard does not start, follow these steps:
    1. On the Tools menu, click Internet Options.
    2. On the Connections tab, click Setup.
  7. Click Next.
  8. Click Connect to the Internet, and then click Next.
  9. Click Set up my connection manually, and then click Next.
  10. Click Connect using a broadband connection that is always on, and then click Next.
  11. Click Finish.
If you cannot connect to the Internet, see the "Troubleshooting" section of this article.

back to the top

Shared Networking

You can use Shared Networking when the host Macintosh computer is always connected to a network with an Ethernet cable, AirPort or other wireless networking, or with a modem to an Internet Service Provider or network. The host Macintosh computer must establish a connection before you start the virtual machine.

To configure Shared Networking, follow these steps:
  1. Start Virtual PC.
  2. Click the virtual machine in the Virtual PC list, and then click Settings.

    Note If you cannot see the Virtual PC list, click Virtual PC, and then click Virtual PC List.
  3. Click Networking, and then click to select Enable Networking.
  4. Click Shared Networking, and then click OK.
  5. Click Start Up. Note Because there are several versions of Microsoft Windows, the following steps may be different on your computer. If they are, see your product documentation to complete these steps.
  6. In the Windows virtual machine, start Internet Explorer. If the New Connection Wizard does not start, follow these steps:
    1. On the Tools menu, click Internet Options.
    2. On the Connections tab, click Setup.
  7. Click Next.
  8. Click Connect to the Internet, and then click Next.
  9. Click Set up my connection manually, and then click Next.
  10. Click Connect using a broadband connection that is always on, and then click Next.
  11. Click Finish.
If the connection fails, see the "Troubleshooting" section of this article.

back to the top

Modem

You can connect to the Internet or a network with a modem. You can use the modem only to connect when the host Macintosh computer or other virtual machines are not using the modem.

To configure networking with a modem, follow these steps:
  1. Start Virtual PC.
  2. Click the virtual machine in the Virtual PC list, and then click Settings.

    Note If you cannot see the Virtual PC list, click Virtual PC, and then click Virtual PC List.
  3. Click Networking, and then click to clear the Enable Networking check box.
  4. Click COM1 Port, and then click Mac serial port.
  5. Point to modem, and then click your modem.
  6. Click to clear the Advanced Settings check box, and then click OK.
  7. Click Start Up. Note Because there are several versions of Microsoft Windows, the following steps may be different on your computer. If they are, see your product documentation to complete these steps.
  8. In the Windows virtual machine, point to Start, and then click Control Panel.
  9. Double-click Phone and Modem Options.
  10. If you are prompted for the location information, type the information, and then click OK.
  11. On the Modems tab, click Add.
  12. Click to select the Don't detect my modem; I will select it from a list. check box, and then click Next.
  13. Under Manufacturer, click Standard Modem Types.
  14. Under Models, click (Standard 56000 bps Modem).

    Note This may appear as Generic v.90 56000 bps Modem or Standard 56000 bps V90 Modem.
  15. Click Next.
  16. Click COM1, and then click Next.
  17. Click Finish, and then click OK.
  18. Start Internet Explorer. If the New Connection Wizard does not start, follow these steps: Note Because there are several versions of Microsoft Windows, the following steps may be different on your computer. If they are, see your product documentation to complete these steps.
    1. On the Tools menu, click Internet Options.
    2. On the Connections tab, click Setup.
  19. Click Next.
  20. Click Connect to the Internet, and then click Next.
  21. Click Set up my connection manually, and then click Next.
  22. Click Connect using a dial-up modem, and then click Next.
  23. Follow the instructions that appear on the screen to configure the connection to your Internet Service Provider (ISP).
  24. On the Tools menu, click Internet Options.
  25. On the Connections tab, click Always dial my default connection, and then click OK.
  26. Close Internet Explorer, and then start Internet Explorer.
back to the top

Troubleshooting

Any of the following issues can cause problems when you try to connect to the Internet:
  • The host Macintosh computer has physical connection problems such as problems with the cables or the network adapter.
  • Windows cannot contact a DHCP server.
  • Windows cannot contact a DNS server.
  • Virtual Switch and AirPort are not compatible.
Use the following sections to troubleshoot Internet connection problems.

back to the top

Check Macintosh Connectivity

If you are using Shared Networking or Virtual Switch, any problems that affect the host Macintosh computer also affect the virtual machines that use Shared Networking.

Verify that the host Macintosh can connect to the Internet. If you cannot connect to Web sites, or if the Internet browser only displays offline versions of Web sites, the host Macintosh computer may have connectivity problems. For help to solve this problem, visit the following Apple support Web sites: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.

back to the top

Test the Name Resolution

A DNS server provides host name resolution. If you cannot connect to the Internet, there may be an issue with the DNS configuration. To determine whether there is an issue with the DNS configuration of your dial-up connection to your ISP, follow these steps:
  1. At a command prompt, type:

    Ping Microsoft.com

  2. Press ENTER.

    Either of the following behaviors occur:
    • If the computer can contact the DNS server to translate Microsoft.com to an IP address, a reply appears that is similar to the following reply:
      
      Pinging microsoft.com [207.46.245.222] with 32 bytes of data:
      
      Request timed out.
      Request timed out.
      Request timed out.
      Request timed out.
      
      Ping statistics for 207.46.245.222:
       Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
      
    • If the computer cannot contact the DNS server to translate Microsoft.com to an IP address, a reply appears that is similar to the following reply:
       
      Ping request could not find host microsoft.com. Please check the name and try again.
      
back to the top

Verify That DHCP is Working

To verify if DHCP is working correctly in Virtual PC, follow the instructions for your specific operating system. Windows 95, Windows 98, Windows 98 Second Edition, and Windows Millennium Edition To view your IP settings, follow these steps:
  1. Click Start, click Run, type winipcfg, and then click OK.
  2. In the Ethernet Adapter Information box, select the network adapter.
  3. Click More Info to view the complete details.
To reset your IP settings, follow these steps:
  1. Click Start, click Run, type winipcfg, and then click OK.
  2. In the Ethernet Adapter Information box, select the network adapter.
  3. Click Release, click Renew, and then click OK.
If the virtual machine does not obtain an IP address from the host, you may have to enable the DHCP service on the host or manually assign a static IP address to the client.

When it uses Shared Networking, the virtual machine should obtain IP information that is similar to the following information:
 

DNS Servers: 192.168.131.252 
IP Address: 192.168.131.### (where ### is a number between 2 and 251) Subnet Mask: 255.255.255.0 Default Gateway: 192.168.131.254 DHCP Server: 192.168.131.254
If these numbers do not match, and you are using Shared Networking, try to manually configure the IP address for the virtual machine. To do this, follow these steps:
  1. Click Start, click Settings, and then click Control Panel.
  2. Double-click Network, scroll down to the bottom of the list, and then click TCP/IP ->Ethernet Network Adapter.

    Note If more then one TCP/IP -> Ethernet Network Adapter device appears, click either the Intel Ethernet controller or the DEC Ethernet controller.
  3. Click Properties, and then click Specify an IP address.
  4. In the IP Address box, type 192.168.131.### where ### is any number between 175 and 200.

    Note These numbers are only suggested numbers that are least likely to interfere with existing addresses on your network. Any number between 2 and 251 may also work.
  5. In the Subnet Mask box, type:

    255.255.255.0

  6. Click the Gateway tab, and then in the New Gateway box, type:

    192.168.131.254

  7. Click Add.
  8. Click the DNS Configuration tab, click Enable DNS.
  9. In the Host box, type:

    host

  10. In the Domain box, type:

    domain

  11. In the DNS Server Search Order box, type:

    192.168.131.252

  12. Click Add, and then click OK.
  13. Restart the virtual machine.
If you cannot connect to the Internet by following these steps, Virtual PC may not be able to find your Macintosh's DNS server, and you must type the server's IP address manually into Virtual PC.

See the "Find your Macintosh's DNS Server" section of this article to find your Macintosh's DNS server, and then type it into the DNS Server Search Order box that is described earlier in this section.

back to the topWindows NT, Windows 2000, or Windows XPTo view your IP settings, follow these steps:
  1. Click Start, and then click Run.
  2. In the Open box, type:

    cmd

  3. Click OK.
  4. Type:

    ipconfig/all

  5. Press ENTER.
When you use Virtual Switch, your IP information should appear the same as other computers on your network. If it does not, change the settings in the virtual machine to correct this.

When it uses Shared Networking, the virtual machine should obtain IP information that is similar to the following IP information:
 
Windows 2000 IP Configuration 

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

Ethernet adapter Local Area Connection: 

Connection-specific DNS Suffix . : DNS Suffix 
Description . . . . . . . . . . . : Intel 21041 Based PCI Ethernet Adapter 
Physical Address. . . . . . . . . : 00-03-FF-63-D8-FC 
DHCP Enabled. . . . . . . . . . . : Yes 
Autoconfiguration Enabled . . . . : Yes 
IP Address. . . . . . . . . . . . : 192.168.131.### (where ### is a number between 2 and 251)
Subnet Mask . . . . . . . . . . . : 255.255.255.0 
Default Gateway . . . . . . . . . : 192.168.131.254 
DHCP Server . . . . . . . . . . . : 192.168.131.254 
DNS Servers . . . . . . . . . . . : 192.168.131.252 
Lease Obtained. . . . . . . . . . : Friday, January 17, 2003 9:12:01 AM 
Lease Expires . . . . . . . . . . : Wednesday, January 22, 2020 4:00:32 AM 

If these numbers do not match, and you are using Shared Networking, try to manually configure the IP address for the virtual machine. To do this, follow these steps:
  1. In Control Panel, double-click Network and Dial-up Connections.

    Note If you are using Windows XP, click Switch to Classic View to see the standard icons and double-click Network Connections.
  2. Right-click or Control-click the Local Area Connection icon, and then click Properties.
  3. Scroll down to the bottom of the list, and then click Internet Protocol (TCP/IP).
  4. Click Properties, and then click Use the following IP address.
  5. In the Use the following IP Address box, type:

    192.168.131.###

    where ### is any number between 175 and 200.

    Note These numbers are only suggested numbers that are least likely to interfere with existing addresses on your network. Any number between 2 and 251 may also work.
  6. In the Subnet mask box, type:

    255.255.255.0

  7. In the Default Gateway box, type:

    192.168.131.254

  8. Click Use the following DNS server addresses, and then in the Preferred DNS server box and in the Alternate DNS server box, type:

    192.168.131.252

  9. Click OK, and then restart the virtual machine.
If you cannot connect to the Internet by following these steps, Virtual PC may not be able to find your Mac's DNS server, and you must enter the server's IP address manually into Virtual PC.

See the "Find Your Macintosh's DNS Server" section of this article to find your Macintosh's DNS server, and then type it into the DNS Server Search Order box described earlier in this article. back to the top

Find your Macintosh's DNS Server

To find your Macintosh's DNS server address, verify that your Internet connection works on the Macintosh, and then follow the steps for your version of the Macintosh operating system.Mac OS 9
  1. Open Control Panels, and then click the TCP/IP icon.
  2. Your Macintosh's DNS server appears under Name server addr at the bottom of the window.

    Note If the Macintosh's DNS server appears, contact your ISP, or use another tool to determine your Macintosh's DNS Server.
Mac OS 10
  1. Open System Preferences, and then click the Network icon.
  2. Click the Show drop-down menu, and then click the device that you use to connect to the Internet (for example, click Built-in Ethernet).
  3. Your Macintosh's DNS server appears in the DNS Servers (Optional) box on the right.
You can also use the Terminal program in the Utilities folder to determine the DNS server.
  1. When you are prompted in the Terminal utility, type:

    Nslookup

  2. Press the RETURN key.
  3. Information that is similar to the following information appears:
     
    Default Server: dnssrvr.domain.com Address: 10.0.0.11 
    The number listed (in this case, 10.0.0.11) is the IP address of your DNS server. Use this number if you must manually configure the DNS server in the previous two sections of this article.
back to the top

REFERENCES

For additional information about troubleshooting Internet connections in a Windows operating system, click the following article numbers to view the articles in the Microsoft Knowledge Base:

169790 How to troubleshoot Basic TCP/IP problems

102908 How to troubleshoot TCP/IP connectivity with Windows 2000 or Windows NT

314067 How to troubleshoot TCP/IP connectivity with Windows XP

313242 How to troubleshoot wireless network connections in Windows XP

316341 How to troubleshoot DNS name resolution on the Internet in Windows 2000

310089 Troubleshooting cable modems

308007 How to troubleshoot home networking in Windows XP

314095 How to troubleshoot possible causes of Internet connection problems in Windows XP

238135 How to troubleshoot Internet connection sharing problems

308006 Troubleshooting Internet connection sharing in Windows XP

161986 Troubleshooting Internet Service provider logon problems

161516 Troubleshooting modem problems under Windows NT 4.0

314095 How to troubleshoot possible causes of Internet connection problems in Windows XP

For additional information, click the following article numbers to view the articles in the Microsoft Knowledge Base:

824356 Cannot connect to the Internet from a virtual machine

824350 How to install a 56 Kbps modem on a Windows-based virtual machine

back to the top

Modification Type:MajorLast Reviewed:7/27/2006
Keywords:kbHOWTOmaster KB825372 kbAudITPRO kbAudEndUser