I'm running a virtual machine (Win XP, but OS doesn't really matter) on my Windows 7 PC using the loopback adapter to create a private network between my host computer and the virtual machine.
However, unfortunately communication between my virtual machine and my host machine is restricted by Windows Firewall (e.g. I can't communicate over port 80, etc), because Windows 7 says the network on the loopback adapter is unidentified, and thus its default profile (e.g. network location) is public. To make matters worse, there is no way to change the profile of the network!
How can I force Windows to allow me to change the profile of the loopback network, so that I can change it to private and thus communicate between the vm and the host under the more permissive private Windows Firewall profile?
Best Answer
After looking at a number of different solutions online, hopefully here is a permanent solution.
Based on this post, http://social.technet.microsoft.com/Forums/en-US/itprovistanetworking/thread/66b42761-1b8e-4302-9134-0bb685139f4e, it seems that the way that Windows 7 identifies networks is by the MAC address of the gateway the adapter uses.
So basically we need to configure the loopback adapter on the host to use a gateway that will point to a machine or device with a consistent mac address. That is the key.
Steps:
Since Windows 7 is relying on the mac address of the virtual machine to identify the network, your virtual machine will need to be running and then you can try to disable / reenable the loopback adapter on the host machine to try to force Windows 7 to update itself. Once Windows 7 sees the mac address on the virtual machine, you should be able to change the network profile / network location.
Whenever you restart your machine, you'll again of course need to disable/reenable your loopback adapter after you've started the virtual machine. (When the host machine first comes up, since your virtual machine is not running, Windows 7 things that once again it's on a network with a different gateway mac address. This is annoying. But following the above instructions to start the virtual machine and disable/reenable the adapter on the host, should resolve this each time.)
Hopefully, the next version of Windows provides a better resolution to this issue with the loopback adapter and being able to change the network profile / location.
References
http://blogs.microsoft.co.il/blogs/baruchf/archive/2009/07/09/windows-7-amp-network-loopback-adapter-settings.aspx http://social.technet.microsoft.com/Forums/en-US/itprovistanetworking/thread/66b42761-1b8e-4302-9134-0bb685139f4e