How to access Mageia web server VirtualBox guest from host system web browser?


Eric

I have installed and setup a guest Mageia 2 on VirtualBox which I intend to use as a development web server. My host is Windows 7 (64 bit) and I want to access a website from this host web browser.

I've set the Mageia guest OS's VirtualBox Network settings to "Bridged Adapter" and got the IP address eth0and entered it into the host web browser. But I get a timeout, so I don't think there is communication between the host OS and the guest OS.

Before using Mageia, I had a Debian guest OS with the same setup, and when I entered the guest's IP address eth0into the host web browser, "it worked!". Display the page. And I didn't do any configuration.

I think it has something to do with the security features of my Mageia guest OS.

Note that the Mageia guest OS is a minimal installation - no GUI, only bare packages are installed along with the LAMP packages. So everything is CLI.

I don't know where to start accessing my web server guest OS from the host OS. Is there a tip?

Eric

I ran. By default I guess Mageia doesn't allow access to the web server. There are two ways to do this.

  1. GUI way: use drakfirewallapplication. This will open a dialog where you can select the services to enable on the system. Check the "Web Server" checkbox and grant access to the web server from external resources.

  2. CLI way: (this is what I did because my VirtualBox instance doesn't have X). Go to /etc/shorewall/rules.drakxff and add a line after the file.

    ACCEPT net fw tcp 80,443 -

Related


How to access Apache from host (on VirtualBox guest)?

urok93 I have Apache installed on an Ubuntu VM. When I go into the client machine and load Firefox, I can see that Apache is running fine when I browse to localhost. I want to access the same page through the host. I tried using the guest's IP address, but not

How to access Apache from host (on VirtualBox guest)?

urok93 I have Apache installed on an Ubuntu VM. When I go into the client machine and load Firefox, I can see that Apache is running fine when I browse to localhost. I want to access the same page through the host. I tried using the guest's IP address, but not

Unable to access VirtualBox web server on port 9000 from host OS

grssnbchr I have an Ubuntu 12.04 guest VB on a W7 host. On the guest, I am running a web server on port 9000 and the web server is accessible from the guest from above 127.0.0.1:9000. In VirtualBox, I have two network adapters enabled for the guest. I didn't c

Unable to access VirtualBox web server on port 9000 from host OS

grssnbchr I have an Ubuntu 12.04 guest VB on a W7 host. On the guest, I am running a web server on port 9000 and the web server is accessible from the guest from above 127.0.0.1:9000. In VirtualBox, I have two network adapters enabled for the guest. I didn't c

How to provide internet access to HOST from GUEST in VirtualBox

Chitholian I'm running a Windows 7 guest OS on a Fedora Linux host (in VirtualBox-6). I have a GSM USB modem. I can connect the modem to the host and have access to both the host and the guest, but cannot make USSD or VOICE calls; because the linux driver (and

Access site on host from guest using VirtualBox?

Gilchaz I'm running VirtualBox on a Mac (host) and the VM used is Windows 7 (guest). VirtualBox is set up to use a NATnetwork adapter and has internet access (google, msn, etc.) fine, but I'm hosting a site on a Mac (host) so I can't access it from the VM. The

Access VPN host by name from VirtualBox guest

username I have an Ubuntu guest running under VirtualBox on a W10 host with VPN. I've set up the host-only adapter and the NAT adapter as suggested in other answers here, and everything works fine. The only problem is from the guest that I can't access the hos

Access site on host from guest using VirtualBox?

Gilchaz I'm running VirtualBox on a Mac (host) and the VM used is Windows 7 (guest). VirtualBox is set up to use a NATnetwork adapter and has internet access (google, msn, etc.) fine, but I'm hosting a site on a Mac (host) so I can't access it from the VM. The

Access VPN host by name from VirtualBox guest

username I have an Ubuntu guest running under VirtualBox on a W10 host with VPN. I've set up the host-only adapter and the NAT adapter as suggested in other answers here, and everything works fine. The only problem is from the guest that I can't access the hos

How to access Docker container's web server from host

entropy: I am running under boot2docker 1.3.1. I have a Docker container running a web server via uwsgi --http :8080. If I connect to the container, I can browse the website using lynx http://127.0.0.1:8080so I know the server is running. I run the container w

How to access Docker container's web server from host

entropy I am running under boot2docker 1.3.1. I have a Docker container running a web server via uwsgi --http :8080. If I connect to the container, I can browse the website with lynx http://127.0.0.1:8080so I know the server is running. I run the container wit

How to access Docker container's web server from host

entropy: I am running under boot2docker 1.3.1. I have a Docker container running a web server via uwsgi --http :8080. If I connect to the container, I can browse the website using lynx http://127.0.0.1:8080so I know the server is running. I run the container w

How to access Docker container's web server from host

entropy: I am running under boot2docker 1.3.1. I have a Docker container running a web server via uwsgi --http :8080. If I connect to the container, I can browse the website using lynx http://127.0.0.1:8080so I know the server is running. I run the container w