Connecting a Virtual Server 2005 R2 Host with its Virtual Machines using Microsoft’s Loop Back Adapter
The Virtual Server 2005 R2 network architecture was designed to allow default isolation of virtual machine network traffic from other virtual machines, the Virtual Server host, and external networks. However, using the Microsoft Loop Back Adapter, you can configure virtual machines to be connected to each other, the Virtual Server host, corporate networks, or the Internet.
The Microsoft Loop Back Adapter is a built-in, software-based network interface. When you use it, network traffic between connected virtual machines and the Virtual Server host is constrained to the internal virtual network, remaining isolated from external, physical networks.
The networking capabilities of Virtual Server 2005 can be extended with Microsoft Loop Back Adapter. Using the Microsoft Loop Back Adapter, you can: (Microsoft Documentation Here)
- Use Internet Connection Firewall (ICF) to protect virtual networks. ICF checks all communications that cross the connection between your virtual network and the Internet and is selective about which responses from the Internet it allows.
- Provide host-to-guest networking and file sharing without having to use an external network.
- Use Internet Connection Sharing to provide Network Address Translation (NAT) and share a single connection to the Internet between the host operating system and one or more virtual machines.
To install the Microsoft Loopback Adapter
Perform this step on the host operating system.
- Click on Start –> Settings –> Control Panel and Select "Add Hardware". Click Next, Click "Yes, I have already connected the hardware", Click Next.
- Scroll to the bottom, select "Add a new Hardware device". Click Next. Select "Install the hardware"
- Select "Network Adapter". Click Next. Select "Microsoft", the Select "Microsoft Loopback Adapter"
- Click Next and Finish.
Configure the Microsoft Loopback Adapter to communicate with the Virtual Environment.
Launch the Virtual Server Administration Website. On the Virtual Network section, create a new Virtual Network. Name it LoopBack Adapter and select the Microsoft Loopback Adapter from the drop down list. Click OK.
Go back to the Virtual Network section and Select Configure –> Microsoft Loopback Adapter. Enable which Virtual Servers you want to use this connection and Click OK.
Configure host-to-guest networking and file sharing
- On the host operating system, open Network Connections, right-click the local area connection for Microsoft Loopback Adapter, and then select Properties. (Or Start –> Settings –> Control Panel –> Network Connections)
- In the Microsoft Loopback Adapter Properties dialog box, verify that the Virtual Machine Network services check box is selected.
- Click Internet Protocol (TCP/IP), and then click Properties.
- On the General tab, click Use the following IP address, and then type the IP address and subnet mask (such as 192.168.0.1 and 255.255.255.0).
Important You can use any Transmission Control Protocol/Internet Protocol (TCP/IP) address, but it is best to choose one from a reserved range of non-routable TCP/IP addresses. For example, TCP/IP addresses of the form 192.168.x.y, where x is a value from 0 through 255 and y is a value from 1 through 254, are non-routable. The value you choose for x must be the same on the host operating system and each guest operating system that is to be part of this virtual network. If your primary Ethernet connection uses one of these non-routable addresses, you must choose a different value for x to assign to Microsoft Loopback Adapter.
Click OK, and then click Close.
Configure the Guest TCP\IP settings
On the guest or virtual operating system, open Network Connections, right-click the local area connection and then select Properties. (Or Start –> Settings –> Control Panel –> Network Connections)
Click Internet Protocol (TCP/IP), and then click Properties.
On the General tab, click Use the following IP address, and then type the IP address and subnet mask (such as 192.168.0.10 and 255.255.255.0). Note: The Default gateway must be set as the Host operating system’s Microsoft Loopback adapter’s IP address. Also, the Subnet Mask must match the Host operating system’s Microsoft Loopback adapter network settings. Here I am pointing the server at itself for DNS, because it is also a Domain Controller running DNS services.