Page 1 of 1

PortFowarding issues

Posted: 18. Jan 2011, 08:23
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.

Re: PortFowarding issues

Posted: 18. Jan 2011, 15:26
by Perryg
What version of Virtual Box are you using?

Re: PortFowarding issues

Posted: 18. Jan 2011, 19:55
by venport
Sorry for got that info 4.0.0

Re: PortFowarding issues

Posted: 18. Jan 2011, 20:16
by Perryg

Re: PortFowarding issues

Posted: 18. Jan 2011, 21:17
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

Re: PortFowarding issues

Posted: 18. Jan 2011, 21:26
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.