Can't access guest OS from outside

Discussions related to using VirtualBox on Linux hosts.
Post Reply
eagle007
Posts: 1
Joined: 23. Aug 2016, 06:25

Can't access guest OS from outside

Post by eagle007 »

I've bought a Dedicated Server. Here is the details:

Main IP: 173.208.244.aaa
Subnet Mask 255.255.255.248
Gateway 173.208.244.xxx
Usable IP: 173.208.244.aaa - 173.208.244.eee

I've installed Debian 8 on this Dedicated Server then installed VirtualBox.

I need to create 4 VPS in this VirtualBox. It would be Ubuntu 16.04, Windows Server 2008, CentOS 7, etc...

I then installed Ubuntu 16.04 as guest and assign IP 173.208.244.bbb . But I still cannot access this guest web server or access SSH into Guest from my laptop.

As I stated above, I will assign this IP 173.208.244.bbb to my Ubuntu guest. This is my is my Network Interface of Guest OS (Ubuntu 16.04)
interface guest1.PNG
interface guest1.PNG (60.19 KiB) Viewed 807 times
This is my Debian 8 (host) network interface

Code: Select all

auto eth1
allow-hotplug eth1
iface eth1 inet static
	address 173.208.244.aaa
	netmask 255.255.255.248
	network 173.208.244.yyy
	broadcast 173.208.244.zzz
	gateway 173.208.244.zzz
	# dns-* options are implemented by the resolvconf package, if installed
	dns-nameservers 127.0.0.1
	dns-search <host_of_my_provider>

auto vmbr0
iface vmbr0 inet static
	address 173.208.244.aaa
	netmask 255.255.255.248
	bridge_ports none
	bridge_stp off
	bridge_fd 0
	up route add -host 173.208.244.bbb dev vmbr0
	up route add -host 173.208.244.ccc dev vmbr0
	up route add -host 173.208.244.ddd dev vmbr0
	up route add -host 173.208.244.eee dev vmbr0
And these are my VirtualBox Settings
nat1.PNG
nat1.PNG (32.22 KiB) Viewed 808 times
nat2.PNG
nat2.PNG (35.8 KiB) Viewed 808 times
I also installed Nginx in it. I use this command on Guest

Code: Select all

curl localhost
The Guest can open the default Nginx webpage easily.

But when I access from Host or from my home computer, It says:

Code: Select all

curl: (7) Failed to connect to 173.208.244.bbb port 80: No route to host
What is the correct configuration of network interface, port forwarding, bridge settings, etc...?
Post Reply