To establish a Guest to Host connection, follow the steps in this blog post:
- Install the Loopback Network Adapter on your Windows 7 machine
- Set the
Loopback Adapter to have a static IP address which the VPC network
adapter will use as its internet gateway
- Configure the XP Mode Virtual
Machine to use the loopback adapter as its gateway.
- You should now be
able to ping your host machine from your guest OS.
- Open SQL Server connections via TCP/IP on host machine [updated 24/12]
- Open incoming
connections on port 1433/1434 for windows firewall
- You should now be able to telnet to port 1433 on the host OS from XP mode
If those steps do not work for you, then try using different IP addresses (I used
10.0.0.200 (Guest), and of course
255.255.255.0 (subnet mask). You can confirm by pinging the Host IP (
10.0.0.199) from within XP Mode. Make sure on Windows 7 you create Windows Firewall exceptions for the ports you need.
In addition to those steps, you may also add a second network adapter to your XP Mode through the Virtual PC settings, selecting the network adapter on your host that has the internet connection. In the XP Mode IPv4 properties for the second network adapter, use all automatic settings.
You will now have a network path to your Windows 7 host and internet access.