Froward Port on 2 different GOSes

This is for discussing general topics about how to use VirtualBox.
Post Reply
defo
Posts: 2
Joined: 15. Jul 2009, 17:12
Primary OS: Ubuntu 8.10
VBox Version: OSE Debian
Guest OSses: ubuntu

Froward Port on 2 different GOSes

Post by defo »

Hi!
I am install 3.0.2 on my ubuntu, and make 2 different guest Os (ubuntu server).
I have forwarding port in first gOS by method:
(in first gOs xml file)
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/openssh/Protocol" value="TCP"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/openssh/GuestPort" value="22"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/openssh/HostPort" value="2222"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/openhttp/Protocol" value="TCP"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/openhttp/GuestPort" value="80"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/openhttp/HostPort" value="8888"/>
its work great. but i want have 2 gOs (in one time) and forwarding another port to second virtual machine.
like :
(in second gOs xml file)
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/openssh2/Protocol" value="TCP"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/openssh2/GuestPort" value="22"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/openssh2/HostPort" value="2000"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/openhttp2/Protocol" value="TCP"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/openhttp2/GuestPort" value="80"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/openhttp2/HostPort" value="8000"/>
localhost:8888 - work (and ssh too)
but
localhost:8000 - dont work

if i running second OS without first gOS - dont work too

where is my problem?
first and second gOSes - its clone of one VDI
thanx, and sorry i have bad English.
defo
Posts: 2
Joined: 15. Jul 2009, 17:12
Primary OS: Ubuntu 8.10
VBox Version: OSE Debian
Guest OSses: ubuntu

Re: Froward Port on 2 different GOSes

Post by defo »

i try to change digits in "pcnet/0/LUN#0" patern. nothing.
i have no ideas!
help me
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Froward Port on 2 different GOSes

Post by Sasquatch »

The other VM does have a working network? When you clone an installed VM (especially if it's Linux based), the NIC inside the VM can get a different name, thus rendering existing configuration useless.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply