Discussion:
How to access Guest OS with NAT
(too old to reply)
tech_geek
2009-01-10 21:34:25 UTC
Permalink
Hi,
I have configured a virtual machine (guest os being Centos 5.0) with NAT
configuration. The Guest OS has an ip address of 10.0.x.x and my Host
machine has IP address of 192.168.x.x. From my guest os, I am able to see
the outside network - meaning I am able to browse websites. But, I am not
able to access the Guest machine from the host - what can I access my
centos VM from my windows/host using SSH. I am using Sun Virtual Box.
Any help or pointers to help would be appreciated.
thanks
Kevin.Gui
2009-01-11 03:40:34 UTC
Permalink
Hi,
I have configured a virtual machine (guest os being Centos 5.0) with
NAT configuration. The Guest OS has an ip address of 10.0.x.x and my
Host machine has IP address of 192.168.x.x. From my guest os, I am
able to see the outside network - meaning I am able to browse
websites. But, I am not able to access the Guest machine from the
host - what can I access my centos VM from my windows/host using SSH.
I am using Sun Virtual Box.
Any help or pointers to help would be appreciated.
thanks
I think you might need to set multiple ip in your windows/host which
means one ip address same as guest os, it's not the best solution, but
it is let you go ahead with ssh, maybe, hehehe!
Mrichael John Ruff
2009-01-11 08:22:18 UTC
Permalink
Hi Tech

Yep I use the same, first depending on what access you have you need to
allow port forward on your router i.e. for ssh it is port 22, you have
to place a route in that transfers port 22 to you PC (IP). Then to allow
you to connect in case your external IP changes you also need to have
some form of Dynamic Dns service personally I use DynDNS, this will give
you a free Domain Name and you can then use domain name.

Regards Michael
Hi,
I have configured a virtual machine (guest os being Centos 5.0) with
NAT configuration. The Guest OS has an ip address of 10.0.x.x and my
Host machine has IP address of 192.168.x.x. From my guest os, I am
able to see the outside network - meaning I am able to browse
websites. But, I am not able to access the Guest machine from the
host - what can I access my centos VM from my windows/host using SSH.
I am using Sun Virtual Box.
Any help or pointers to help would be appreciated.
thanks
Mrichael John Ruff
2009-01-11 08:25:16 UTC
Permalink
Hi Sorry didnt read it, you need to use bridged networking not NAT.

Michael
Post by Mrichael John Ruff
Hi Tech
Yep I use the same, first depending on what access you have you need to
allow port forward on your router i.e. for ssh it is port 22, you have
to place a route in that transfers port 22 to you PC (IP). Then to allow
you to connect in case your external IP changes you also need to have
some form of Dynamic Dns service personally I use DynDNS, this will give
you a free Domain Name and you can then use domain name.
Regards Michael
Hi,
I have configured a virtual machine (guest os being Centos 5.0) with
NAT configuration. The Guest OS has an ip address of 10.0.x.x and my
Host machine has IP address of 192.168.x.x. From my guest os, I am
able to see the outside network - meaning I am able to browse
websites. But, I am not able to access the Guest machine from the
host - what can I access my centos VM from my windows/host using
SSH. I am using Sun Virtual Box.
Any help or pointers to help would be appreciated.
thanks
Andrew Gideon
2009-01-12 01:56:47 UTC
Permalink
Post by Mrichael John Ruff
Hi Sorry didnt read it, you need to use bridged networking not NAT.
Doing this with a bridged network is easy and pretty much transparent.
But it is also possible using NAT, although it is trickier.

Essentially, the dom0 (or perhaps some other guest that was bridged) has
to act as a router between the NAT space and the rest of the Internet (or
at least the local LAN). Actually, using NAT this is already the case.
But the "router" will have to be enhanced to route packets from the local
LAN to the guest LAN, most likely via changes in iptables.

Then computers in the local LAN would have to be told that the dom0 is
the router to the guest.

- Andrew

Continue reading on narkive:
Loading...