PortFowarding issues

Discussions about using Linux guests in VirtualBox.
Post Reply
venport
Posts: 3
Joined: 18. Jan 2011, 08:16
Primary OS: MS Windows 7
VBox Version: OSE Debian
Guest OSses: suse

PortFowarding issues

Post by venport »

Hi all, i'm new to Vitualbox and VMs in general. I'm using Virtualbox v4.0.0 and have successfully created my first VM with this software. I would like to be able to SSH from my host machine (win7 x64) to my guest (suse11) I've made some attempts to set up portfowarding to make this work but with no success. I think my issues to the "extra data" strings. I've got duplicate entries for GuestPort, HostPort and Protocol, excpet for e1000 vs pcnet and the quotes. I've made attempts at using setvalue with out a value to clear then but that's not worked. Any ideas? Am I barking up the wrong tree?

Code: Select all

E:\vm>VBoxManage.exe getextradata suseVM enumerate
Key: GUI/InfoDlgState, Value: 400,450,normal
Key: GUI/LastCloseAction, Value: shutdown
Key: GUI/LastGuestSizeHint, Value: 800,600
Key: GUI/LastNormalWindowPosition, Value: 249,34,824,978,max
Key: GUI/MiniToolBarAlignment, Value: bottom
Key: GUI/SaveMountedAtRuntime, Value: yes
Key: GUI/ShowMiniToolBar, Value: yes
Key: VBoxInternal/Devices/e1000/0/LUN#0/Config/ssh/GuestPort, Value: 22
Key: VBoxInternal/Devices/e1000/0/LUN#0/Config/ssh/HostPort, Value: 2222
Key: VBoxInternal/Devices/e1000/0/LUN#0/Config/ssh/Protocol, Value: TCP
Key: "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort", Value: 22
Key: "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort", Value: 2222
Key: "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol", Value: TCP{/code]

Edit: added Virtual box version number.
Last edited by venport on 18. Jan 2011, 19:57, edited 1 time in total.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: PortFowarding issues

Post by Perryg »

What version of Virtual Box are you using?
venport
Posts: 3
Joined: 18. Jan 2011, 08:16
Primary OS: MS Windows 7
VBox Version: OSE Debian
Guest OSses: suse

Re: PortFowarding issues

Post by venport »

Sorry for got that info 4.0.0
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: PortFowarding issues

Post by Perryg »

venport
Posts: 3
Joined: 18. Jan 2011, 08:16
Primary OS: MS Windows 7
VBox Version: OSE Debian
Guest OSses: suse

Re: PortFowarding issues

Post by venport »

That's a little different the the article I was reading, maybe I had an old version. I'll give this a try later tonight.

What should the output of "VBoxManage.exe getextradata suseVM enumerate" be? Does my output look odd? does the second section with the quotes cause a problem?

Thank you
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: PortFowarding issues

Post by Perryg »

Version 4.0 has a new port forward in the GUI network settings.

To delete the old ones you do what the instructions I sent you say to do. or you can remove them by editing the xml. (make a backup first)
Either way the syntax has changed and you need to compare what you had with what you need and it will all come together for you.
Post Reply