Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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!

share|improve this question
Could you post the full text from the 500.19 error message? There are several types of 500.19 error messages. It also helps if you view the error message from the 2008 VM because the error messages are usually much more verbose when you browse locally rather than from another client. Also, what virtualization software are you using on the linux box to host the VM? VMWare? QEMU? VirtualBox? – Richie086 May 9 '13 at 18:13
I have it set to show detailed messages publicly. The error is 500.19 cannot read config file. Which boils to a permissions issue due to the files being on the host, and trying to host the sites through the guest – Kevin May 10 '13 at 12:24
It all has to do with the fact that your files are being hosted on a share and the permissions not jiving with the share. I will respond with an answer that might work below. – Richie086 May 10 '13 at 18:38
In understand this richie, hence why I asked ;-) – Kevin May 10 '13 at 22:46
up vote 1 down vote accepted

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.

share|improve this answer
One way you could access the data being hosted in IIS via Linux is create a structure where you have a folder on the VHD called Web, and then a subfolder called something else where you actually put your files. Share the Web folder with everyone (or lock it down to specific users) and it should be accessible via Linux via Samba and your website will still work. – Richie086 May 10 '13 at 18:52
I will attempt the answer above, but this comment is what I am already doing – Kevin May 10 '13 at 22:49
quick question, why fixed size, and not dynamic? Performance? First try failed with a 'Not enough space' error (even though I have over 1.5 TB free, and am only creating a 100GB VHD)... but I think that may be a permissions thing... let you know in a few – Kevin May 10 '13 at 22:57
WOW... totally made my network go down trying to create this thing – Kevin May 10 '13 at 23:04
let me try to do this on a linux share and see what results I get. Like I said, I walked thru the procedure above step by step by the VHD was on a windows share instead of linux - that was really the only difference. – Richie086 May 10 '13 at 23:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.