Accessing VM Sharepoint site from Host Machine

Discussions related to using VirtualBox on Windows hosts.
Post Reply
jerrytweedy
Posts: 1
Joined: 19. Nov 2009, 02:08
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: MS Windows Server 2008

Accessing VM Sharepoint site from Host Machine

Post by jerrytweedy »

Help. I real new to virtualization and am trying to access a sharepoint site that is hosted on a virtual machine from my host computer. My assumption is that I need to modify my host file on the local machine to point to the IP address of the virtual machine. Is this the right answer or have I missed something?
MarkCranness
Volunteer
Posts: 875
Joined: 10. Oct 2009, 06:27
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows Server 2008 R2; Ubuntu 11.04; Windows 2000 Server; Windows XP

Re: Accessing VM Sharepoint site from Host Machine

Post by MarkCranness »

The right answer depends upon what type of networking you have configured your VirtualBox VM to use, and what type of networking you need depends upon what you need the VM to do.
(Section 6 of the user manual may help.)

In the VM Settings>Network section, how many adapters are enabled, and what us their 'Attached to:' type?

If you have not changed the network config at all, it will be set to one network adapter using NAT.
If you want to keep using NAT, then you will need to port forward port 80 (or some port) on the host to port 80 on the guest, please see section 6.4.1 of the manual. (I'm assuming that all you need to access Sharepoint is a web browser pointed to a web server on port 80.)
If you port forwarded port 8080 on the host to port 80 on the guest, then you would access sharepoint with this http://localhost:8080

You could instead use Bridged networking (section 6.5 of the manual) and the guest OS will get its own IP address (either by DHCP from your lan, or set statically), and you could modify your host's HOST file as you say.
Post Reply