Page 1 of 1

port forward doesn't work but any error

Posted: 24. Mar 2008, 14:22
by mrglinux
hi my host is ubuntu 7.10 gusty and i have virtualbox ose
i install a debian for guest that name of vm machein is "ubuntu" :) i copy and past command from user manual but i have to use vboxmanage instead of VBoxManage becuase is different so i enter these commands

Code: Select all

mrg@mrg-desktop:~$ vboxmanage setextradata ubuntu “VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort” 2222
VirtualBox Command Line Management Interface Version 1.5.0_OSE
(C) 2005-2007 innotek GmbH
All rights reserved.

mrg@mrg-desktop:~$ vboxmanage setextradata "ubuntu" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/GuestPort" 22
VirtualBox Command Line Management Interface Version 1.5.0_OSE
(C) 2005-2007 innotek GmbH
All rights reserved.

mrg@mrg-desktop:~$ vboxmanage setextradata "ubuntu" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/Protocol" TCP 
VirtualBox Command Line Management Interface Version 1.5.0_OSE
(C) 2005-2007 innotek GmbH
All rights reserved.


mrg@mrg-desktop:~$ vboxmanage getextradata "ubuntu" enumerateVirtualBox Command Line Management Interface Version 1.5.0_OSE
(C) 2005-2007 innotek GmbH
All rights reserved.

Key: GUI/SaveMountedAtRuntime, Value: yes
Key: GUI/LastCloseAction, Value: powerOff
Key: GUI/LastWindowPostion, Value: 132,192,731,477
Key: GUI/Fullscreen, Value: off
Key: GUI/Seamless, Value: off
Key: GUI/AutoresizeGuest, Value: on
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/Protocol, Value: TCP
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/GuestPort, Value: 22
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/HostPort, Value: 2222
Key: “VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort”, Value: 2222
Key: “VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort”, Value: 22
Key: “VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol”, Value: TCP
also i restart all of virtualbox

Code: Select all

mrg@mrg-desktop:~$ sudo /etc/init.d/vboxdrv restart
 * Starting VirtualBox kernel module vboxdrv                             [ OK ] 

mrg@mrg-desktop:~$ sudo /etc/init.d/vboxnet restart
Shutting down VirtualBox host networking...done.
Starting VirtualBox host networking...done.

after that i run ubuntu vb machine and check port scanner.port 2222 appended (you can see my service on my host with their ports)
Image
in guest i connect to host with ssh like "ssh 192.168.0.2" i think it was possible befor these config's but in host i cant connect to guest

Code: Select all

mrg@mrg-desktop:~$ ssh -l "ubuntu" -p 2222 localhost
ssh_exchange_identification: Connection closed by remote host
also ssh 10.0.2.15 didn't work

Posted: 17. May 2008, 00:31
by ccristoo
I think that the problem could be that you have two definitions for the same ports.

Eliminate this ones and retry.

Code: Select all

Key: “VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort”, Value: 2222
Key: “VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort”, Value: 22
Key: “VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol”, Value: TCP