2

I have a ubuntu server(host), and a windows 2008 r2 server(client) virtual machine on it.

All my IIS based sites are located on the host machine, in a location which is shared with the client vm.

I have a reverse-proxy setup to direct the sites to their proper locations, and one site setup in IIS (currently).

On initial setup, I had this site located on the C drive of the virtual machine, and was serving it from there with no issues.

Once I change the location to the shared folder, I come up with 500.19 error. I tried adding the IUSR account permissions on the folder, but I do not think they took, since the folder is a location on the ubuntu host machine.

I have also tried to change the application pools Identity to NetworkService (as suggested on other sites), and have even added the 'Everyone' account to the share, but still get the 500.19 error page.

Any thoughts how I can do this? I sort-of 'need' to do this, because I would like to keep the size of the vm down, thus the need for the network shared off-load. I think it's a conflict between Windows user accounts on the VM, and Linux user accounts on the host, so if I can get even one account to mesh that will work, without messing up the sites currently hosted through Apache on the host would be great!

Kevin
  • 97

1 Answers1

1

Do this:

  1. In Windows Server 2008, go to Server Manager > Storage > Disk Management
  2. Right click on Disk Management > Create VHD
  3. Select the location as being on your network share (click browse)
  4. Create a fixed size VHD. I would personally make the VHD twice the size of your current dataset if that is possible. It really depends on what you are hosting.
  5. Initalize the disk by right clicking on the new VHD in disk manager and select Initalize Disk.
  6. Format the new volume in Disk Management.
  7. Now, copy your website over to the new virtual hard drive you formatted.
  8. Configure IIS to host your webpage from the location on your VHD.

This gets around the file permission issues you are running into because to the web server, you are hosting from a local hard drive instead of via a network share.

The only issue I could see running into is if you needed to access the data on the site being hosted by IIS in Linux. You can access it over the web, but I do not know of any linux tool you can use to mount a VHD (although one very well could exist!)

I just tried this btw and it worked! Keep in mind the host of the share in my case was not a linux machine but a windows machine - but still the VHD I created was on a network share on another machine.

Richie086
  • 5,351