port forward doesn't work but any error
Posted: 24. Mar 2008, 14:22
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
also i restart all of virtualbox
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)

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
also ssh 10.0.2.15 didn't work
i install a debian for guest that name of vm machein is "ubuntu"
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
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.

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