I'd like to setup a windows server 2008 in virtualbox and wanted to find out if its capable of hosting a website that can be accessed by external users. I would forward the web traffic from my router to the VM. Can this be done or would I need a dedicated web server for hosting this?
Thanks,
Chris
virtualbox for hosting website
-
noteirak
- Site Moderator
- Posts: 5231
- Joined: 13. Jan 2012, 11:14
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Debian, Win 2k8, Win 7
- Contact:
Re: virtualbox for hosting website
It can be done, no problem.
Recommended version : set the mode for the Network Interface in VB as "Bridged", your VM will now appear like any other machine on your network, getting its IP from the DHCP (if you have one), etc.
If you do not wish to make your VM appear on the network, you have 2 options :
a. NIC mode as "NAT", your VM is invisble to the host network stack and VB acts as router, simply forward the port to your VM in the Virtualbox setting window.
b. Host-Only mode, your VM is visible to the host network stack (via 192.168.56.x by default). You will then need to set up the routing and the port forwarding manually.
Recommended version : set the mode for the Network Interface in VB as "Bridged", your VM will now appear like any other machine on your network, getting its IP from the DHCP (if you have one), etc.
If you do not wish to make your VM appear on the network, you have 2 options :
a. NIC mode as "NAT", your VM is invisble to the host network stack and VB acts as router, simply forward the port to your VM in the Virtualbox setting window.
b. Host-Only mode, your VM is visible to the host network stack (via 192.168.56.x by default). You will then need to set up the routing and the port forwarding manually.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Manage your VirtualBox infrastructure the free way!