How can I access Apache (on VirtualBox guest) from host?


Virtualbox Host Access Guest FilesAverage ratng: 4,8/5 1847 votes

How to share the files from Host to Guest in virtual box? Host- ubunutu/Guest- ubuntu. I do not believe its possible to share files between the host and the guest without installing the extension pack first though I could be wrong on this. You can find that here: https: //www.

This explains how to share files and folders (directories) between host and guest. you access remote files. Virtualbox Guest Additions. . virtual machine in VirtualBox. ability to easily share files and folders between the guest and host. to actually access the folder on the host. The guest files are not located in the Ubuntu. but that will allow you to share file from the host and access them from the guest. Guest OSses: Windows XP Pro. You may need to transfer files between the host and the guest. on Your Host Machine from an Ubuntu Virtual Machine in. VirtualBox guest.

Downloads. Check that the version of Virtualbox you...

0 0

I am running Virtual Box Machines from a Mac Book Pro as the host OS and would like to be able to have all my files stored locally on the host OS's partition using Apache servers running from within guest OS's setup with virtual box.

I intend on using system links and altering conf files to be able to facilitate this, with the the hopes that I could do most of the coding and version controls locally on the mac and then just use the virtual machines for testing.

I run the following VM for work and am using this as my first test case for this process:

Win7 Pro, with XAMPP 1.8.2

by default the apache server is setup to use the following as document:

DocumentRoot "/xampp/htdocs"

I added the local directories to the machine by enabling shared folders in Virtual Box, so that when Win7 boots I have access to my local files on OSX.

I want to add projects from that mapped drive to my appache httpd.conf so that I can host and access them...

0 0
Access server on host system through virtualbox guest OS

location: - date: May 13, 2012
Hi everyone, I have trouble accessing my local apache server (running in Ubuntu (Host System)) from my Windows XP guest system in virtual box. running: Ubuntu 11.10. (Host) Virtualbox 4.1.2 Windows XP SP3 (Guest) I need to do some Internet Explorer 7 related CSS workarounds and can not browse files on my localhost on the host system. It seems the server is not even recognized. So far I have tried all the network adapters for the guest system and made the necessary changes in the Windows host file. None of it worked. Does anyone of you have experience with this kind of problem? Any help is appreciated.

Access server running on localhost on host system through virtualbox guest OS

location: - date: May 14, 2012
Hi everyone, I am running: Ubuntu 11.10. (Host) Virtualbox 4.1.2 Windows XP SP3 (Guest) I need to do some Internet Explorer 7...

0 0
0 0

If you want performance and convenience out of your virtual machine (VM) you must install VirtualBox Guest Additions on Windows. We have shown you how to install Virtual Box on Ubuntu / Debian and Windows 7, 8, and 10. But the vanilla VirtualBox has quite a few annoyances like inability to run guest OSes in fullscreen, sharing clipboard, etc. On top of that there is room for improved performance of VirtualBox machines. Install VirtualBox Guest Additions on Windows, eliminate these issues, and take your virtual machines to a new level.

What are VirtualBox Guest Additions?

Guest Additions are extra features that make VirtualBox even more powerful. Some examples of features added by VirtualBox Guest additions are listed below:

Better Screen resolution – allows fullscreen operation Automatic resizing of appliance window Seamless mode – guest OS blends in with host OS Shared Clipboard between host and guest OSes Improved performance of guest OS Drag and Drop between...
0 0

If you need to access a guest which gets different IP due to use of DHCP, I suggest accessing via it's hostname. However accessing via hostname when the host is Windows might require an extra tool.

The following text was copied from my own answer at

I suggest you use Multicast DNS to fix this.

Ubuntu is using this by default via Avahi.

The Windows host needs an Avahi-client for it to discover other Avahi-services. If your host already uses some Apple software this is probably already there via a service called Bonjour. However, if this is not already installed then a small version of Bonjour is available for download here: Bonjour Print Services. After installation you should be able to access your guest via .local.

Note: The mDNS system seem to use the .local postfix by default. So, if your hostname is "", then the actual hostname will be...

0 0

Short Description:

My host OS is Ubuntu-12.04 and using VirtualBox I have set up a VM of Oracle Linux 6.4 (based on RHEL) with Apache httpd webserver. I need to access the web pages served by the VM from my host Ubuntu.


Additional Details:

Here are the configurations:

The 1st network adapter of the VM is configured as NAT, since I need it to use the host's Internet connection. See image below:

I have enabled a 2nd adapter as Host-only, so I can access the VM from the host (ssh or scp to guest VM from host, etc). This is working fine. The IP of the guest VM is manually set to and I can successfully ping, ssh and scp to the guest VM without any problem. See below:

Inside the VM, I have setup Apache successfully and it's working for localhost but when I try to access the page from the host, by entering in Chromium or...

0 0

We all use VirtualBox to setup our playgrounds and experiment(wreck) everything without ever having to bear the repercussions. Sometimes, we want to access this guest machine from our host, but we fail. For example, I have an Ubuntu guest (nitin-VirtualBox) running inside my Ubuntu host(trusty) and I want to access the Apache Web Server running on my guest.

Running an ifconfig on my Ubuntu guest, I find the IP and try to ping it from my host. But, nothing is returned.

nitin@trusty:~$ ping -c 5 PING ( 56(84) bytes of data. --- ping statistics --- 5 packets transmitted, 0 received, 100% packet loss, time 4024ms

What we need to do is setup a VirtualBox Host Only Network and get our guest connected to it.

If your guest machine is running, shut it down first.

Click on File->Preferences in the VirtualBox menu-bar.

Select the Network option from the side menu and click on the Host-only networks...

0 0

This answer is about pretty much an guest OS setup in VirtualBox; you just need to use the network gateway address on the guest OS to connect to the host OS from a guest OS.

In the default Vagrant setup, you should be able to reach your host through the default gateway.

On Windows based guests, you can easily determine this IP address by running the command:


It should dump out something like this:

Windows IP Configuration Ethernet adapter Local Area Connection: Connection-specific DNS Suffix . : IP Address. . . . . . . . . . . . : Subnet Mask . . . . . . . . . . . : Default Gateway . . . . . . . . . :

In this example, the guest can reach the host machine

On Unix/Linux based guests, use the command:

netstat -rn

It should dump out something like this:

Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface ...
0 0
0 0

I'm using VirtualBox on my Windows 8.1 pc to host a Ubuntu Server 14.04 guest that runs Apache as a development web server.

I'm using Bridged Adapter in VirtualBox.

I have a few vhost on Apache and I can access all of them using Firefox or IE from the host. But I can't access it using Chrome.

Chrome gives me the following:

ERR_CONNECTION_REFUSED Google Chrome's connection attempt to cooksfromhome.localhost was rejected. The website may be down, or your network may not be properly configured. [...]

From what I understand, my Apache config should be okay because I can access it without problem with Firefox and IE... It looks as if Chrome can access my VirtualBox, but Apache refuses the connection... Any idea why I have this problem and what can I do to fix...

0 0

Typically when ICMP traffic (e.g., ping) is allowed to a virtualized guest but TCP traffic (e.g., HTTP requests) is blocked, the issue is with a software firewall running on the guest OS.

Note: The command syntax syntax in this explanation is Fedora Core specific, but the general steps can be abstracted for use on other distributions of Linux.

Default installations of Fedora Core have IPTables enabled out of the box. Check the status of the IPTables service to see if it is in a 'active' state.

[root@gauss ~]# /bin/systemctl status iptables.service

Additionally, to see the currently active IPTables rules, check the status of IPTables init script.

[root@gauss ~]# /usr/libexec/iptables.init status

If there is a rule an IPTables in the INPUT chain similar to the one included below, it is responsible for blocking both TCP/IP and UDP traffic to the host.

REJECT all -- reject-with icmp-host-prohibited

There are multiple...

0 0

I have Bridged Networking running OK now, so I've selected my non-wireless NIC on a VM running Ubuntu.

On the VM I can open a browser and go to


But I try this in Chrome, on the Host, I can't reach it.

Back in Ubuntu I ran ifconfig and was hoping to see an ip address I could use to reach the guest from the host (not that I really know what I'm doing), but I just get this...

Code: Select all Expand viewCollapse view eth0 Link encap:Ethernet HWaddr 08:00:27:7e:c2:52
inet6 addr: fe80::a00:27ff:fe7e:c252/64 Scope:Link
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:810 (810.0 B)
Interrupt:10 Base address:0xd020

lo Link encap:Local Loopback
inet addr: Mask:
inet6 addr:...

0 0

I'm setting up a VirtualBox with CentOS so I can test out all my code, etc. on a Linux box instead of the Windows I use for development.

I just got the SSH working (I SSH to localhost:2222 and it port forwards it to the virtualbox port 22).

I'm trying to do the same thing with Apache, to get a web server up and running.

I've portforwarded port 8888 on localhost to port 80 in my CentOS Virtualbox, but I can't seem to access anything with localhost:8888 in my browser?

Apache is also definitely running:

ps -e | grep httpd 2108 ? 00:00:00 httpd 2110 ? 00:00:00 httpd 2111 ? 00:00:00 httpd 2112 ? 00:00:00 httpd 2113 ? 00:00:00 httpd 2114 ? 00:00:00 httpd 2115 ? 00:00:00 httpd 2116 ? 00:00:00 httpd 2117 ? 00:00:00 httpd


[root@CentOS /]# cat /etc/sysconfig/iptables # Generated by iptables-save v1.4.7 on Fri Jan 27 18:26:36 2012 *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [32:2278] -A INPUT -m state...
0 0