Yesterday I installed Virtual Box on my mac. After getting all the windows updates installed and the guest os drivers from virtual box it is running very well. I even went far enough to set up IIS w/ PHP 5.2.5 via FastCGI. I was even able to set up Virtual Box to listen for requests on port 1337 and forward those to port 80 on the VM. This way I can access what IIS is serving up on port 80 on my mac. I took some pictures of the setup and of IIS running.
This first picture is of the install process of Server 2003 in Virtual Box. It is the same as installing it on any computer.
This next image is of the Windows loading screen in Virtual Box. It is also the same as on any other computer.
Notice in this next image that Windows only shows one processor when activity monitor shows two (this is running on a intel C2D processor). Virtual Box currently doesn’t support SMP on the guest OS, it supports SMP on the Host operating system.
This next picture is of IIS running in Server 2k3.
The last picture is of IIS running PHP via FastCGI. Notice I am checking the PHP setup from from OS X. In order to get that working I had to run these three commands in Terminal.
VBoxManage setextradata “Win Server 2003″ “VBoxInternal/Devices/pcnet/0/LUN#0/Config/http/Protocol” TCP
VBoxManage setextradata “Win Server 2003″ “VBoxInternal/Devices/pcnet/0/LUN#0/Config/http/GuestPort” 80
VBoxManage setextradata “Win Server 2003″ “VBoxInternal/Devices/pcnet/0/LUN#0/Config/http/HostPort” 1337
The “Win Server 2003″ part is the name of the VM after config/ it says http/ because that is the name that i gave the forwarding rules. This is enabling me to type 127.0.0.1:1337 in my browser and get to port 80 on the VM.
Everything was easy to set up. Getting PHP w/ FastCGI running in IIS took me about 5 minutes. I’ve never set up IIS before this and it was simple, there is most likely tweaking that can be done in configuration files but it seems to be running fine. Overall everything was pretty straight forward and nothing was unexpected. This was a fun little project, I should set up MS SQL or MySQL.
Next I might mess with Fedora or debian in a VM and try and set up lighthttpd. If I do that then I will know how to set up Apache/IIS/Lighthttpd.






No Comments on "Windows Server 2003 in Virtual Box on a Mac"