Win 7 IIS VM Network Settings

Discussions about using Windows guests in VirtualBox.
Post Reply
craig100
Posts: 77
Joined: 10. May 2009, 21:10
Primary OS: Linux other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win10

Win 7 IIS VM Network Settings

Post by craig100 »

Hi,

On Win 7 x32 I have IIS installed with a web site set up on it. I want to be able to access this web site from the same machine's browser. I can hit the home page but any internal links for things like stylesheets and javascripts don't work. I think it's because of the network settings of the virtual machine but am not sure. I've tried both a single network adapter set to NAT, and two network adapters, one set to NAT and one to Bridged.

Any advice would be appreciated.

Craig
BillG
Volunteer
Posts: 5106
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: Win 7 IIS VM Network Settings

Post by BillG »

This is a bit unclear. Where is IIS installed and where are you trying to access it from? The host and the guest are not "the same machine"!

If you are trying to access the host from the guest (or vice versa), host only is the best networking choice. It will work even if the host is not connected to any network.
Bill
craig100
Posts: 77
Joined: 10. May 2009, 21:10
Primary OS: Linux other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win10

Re: Win 7 IIS VM Network Settings

Post by craig100 »

I'll expand it a bit further.

I have IIS installed in a W7 Virtual Machine guest on a Linux MInt Host. It is a development VM I use to build web sites. I normally don't specifically interfere with IIS as it's just there for WebMatrix or Visual Studio to use. However I have a specific need to install an Umbraco site on it's own for test purposes. So I set up a web site in IIS to point to a web site directory on "the same machine" i.e. the same VM. So I want to use the VM's web browser to see the web site on the same VM (i.e. all on the same VM).

I can hit the root directory of the site but don't get anything that's referenced by links in the source like stylesheets and javascripts. This is the bit I need help with, the network settings for the VM.

Thanks,

Craig
craig100
Posts: 77
Joined: 10. May 2009, 21:10
Primary OS: Linux other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win10

Re: Win 7 IIS VM Network Settings

Post by craig100 »

While it may or may not be due to running IIS in the VM, I found the solution was in IIS and not the VM network settings. In the site's IIS - Authentication section I had to set Anonymous Authentication Credentials User Identity to "Application pool identity"

Hope this helps someone else when they're told they're daft for running in a VM, you're not;)

Craig
Post Reply