How do I connect a Microsoft Virtual PC 2007(SP1) image to the Internet? This is a question I hear very often from either partners or customers. I’ve been meaning to blog about some of the possibilities for quit some time now.
After installing Windows Server 2003, Windows Server 2008, Windows Vista or Windows 7 into Microsoft Virtual PC’s virtual machine (VM) as a guest operating system, there are several ways to connect to the internet. In this post I want to focus on the 4 most common (easiest) ways of doing this.
- If you have a guest operating system that does not need a fixed IP address, such as Windows XP, Vista or 7, you can set the Networking Settings for the VM to use Shared Network (NAT) as the network adapter.
- If you have a guest operating system that does not need a fixed IP address, such as Windows XP, Vista or 7, you can set the Networking Settings for the VM to use your LAN or WiFI connection as the network adapter.
- If you have a guest operating system such as Windows 2003 or 2008 Server that does not require a fixed IP address, you can set the Networking Settings for the VM to use a Loopback Adapter as the network adapter. This requires you to install the loopback adapter locally on your host first and have your network adapter set to DHCP within the VM.
- If you have a guest operating system such as Windows 2003 or 2008 Server that does require a fixed IP address, you need to enable two Network Adapters within the VPC settings. The first network adapter needs to be set to “Local Only” and the second Network Adapter needs to be set to either your LAN or WiFI connection.
Lets use this last option as a way to enable internet access for the latest Microsoft Dynamics CRM VPC that is available on Partner- and CustomerSource.
1. Open the Virtual PC Console and click on “Settings”
2. Navigate to “Networking” and make sure the “Number of network adapters” is set to 2. Select “Local Only” from the dropdown list for Adapter 1. Select your “Ethernet” or “WiFi” connection for Adapter 2. Click on OK to close the settings dialogue.
3. Now start the Microsoft Dynamics CRM VPC and login.
4. Once you’re logged in we need to enable the second network adapter. This can be done by navigating to “Network Connections” and right click on the adapter called “Local Area Connection 2” and selecting “Enable”. I typically also rename this to say something like “Internet”.
5. After the second network adapter is enabled we need to remove the gateway on the first “Local Area Connection”. You can do this by right clicking on the adapter called “ Local Area Connection” and choose properties. Scroll down and double click on Internet Protocol (TCP/IP) and empty out the gateway address. After you’re done you can click twice on OK to close the Network Properties dialogues.
You are now free to browse the internet, assuming that by now your internal DHCP server or router has assigned an IP address to the “Local Area Connection 2”. Open a browser and give http://www.bing.com a try.