is there an easy way too SSH into mandriva (geust) ?

Discussions related to using VirtualBox on Windows hosts.
Post Reply
linuxfingers
Posts: 8
Joined: 30. May 2007, 20:25

is there an easy way too SSH into mandriva (geust) ?

Post by linuxfingers »

hi to all :)

this is my first post here at vbox.org

here is my situation. i have
1, installed win xp verison of virtualbox
2, installed mandriva power pc as a virtualbox guest
3, fully configured ssh and httpd on the guest (default ports)
4, they both can see the internet
5. both win xp and mandriva are 100 %
the sole exception is, i cannot log into geust ssh server
from windows xp desktop. :(

virtualbox is using NAT
windows runs on a address of 192.168.2.6
the router is on 192.168.2.1
the virtual guest (mandriva) is on 10.0.2.15
the virtual guest (mandriva) gateway is on 10.0.2.2
my internet is cable modem.

i went into the guest virtualbox and i could log into ssh (user and pass)
i then minimize the guest virtualbox and went to windows xp prompt
to try and login into the guest ssh server from there but it failed.
(could not find server)
i tried to login with winscp and i still cannot login to the guest virtualbox server at all, although i know its 100% working from within virtualbox.

i know that the windows and the guest is on 2 different network ip
and im guessing that mandriva is getting to the internet via the class a
ip but i cant figure out how to connect the two network ip via the gateway
to talk to each other so that in the future i could runn httpd or even a mail server. :(

but for now
what do i need to do in order that mandriva (the guest) can listen and
except ssh requests from the windows xp (the host) or the outside world ?

or do i need to buy a bridging hub device or something of that nature
a friend just called and told me thats what i might need.... is this true?

please help
thanks in advance
lf
linuxfingers
Posts: 8
Joined: 30. May 2007, 20:25

Post by linuxfingers »

Ok i have figured out in theory how the
interfacing goes.
vbox in a general sense, the guest
deals only with out tcp/ip and respondes to
in requests that was previously generated
by the guest it self.

uless the user does this

VBoxManage setextradata "Linux Guest"
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/UDP" 0
VBoxManage setextradata "Linux Guest"
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort" 22
VBoxManage setextradata "Linux Guest"
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort" 2222

but now, where do i put these lines of codes ?

the manual gives no example and seems to leave out main critical
issues to get this workig unless one has a masters degrees in networking

come on help me here :)
LF
bodhi.zazen
Volunteer
Posts: 180
Joined: 17. May 2007, 16:02

Post by bodhi.zazen »

I am not sure of the answer to your question, but a potential solution to the overall problem is to bridge your network card.

http://www.netcal.com/news.php?article=11

http://www.homenethelp.com/web/howto/wi ... -setup.asp

You then assign the guest OS a tap :

1. Start VirtualBox, select your guest OS ...

2. Click "Network" on the Right

3. Under Adapter 0, in the "Attached to" pull down menu select "Host Interface" Under Interface Name type "tap1" (without quotes)

4. Save and exit ...

Now start you machine and you should be good to go. The guest OS will now be a part of your LAN and get an address 192.168.2.xx

ssh into the new IP :)
If is a virtual machine, is it still broken ?
linuxfingers
Posts: 8
Joined: 30. May 2007, 20:25

Post by linuxfingers »

bodhi.zazen
thanks for a reply
i will try those tips in a few hours.

im going bald here figuring how to
do this but, just maybe you may have
provided a good solution.

ill let you know once i get the chance to
follow your tips

big thanks :)
LF
linuxfingers
Posts: 8
Joined: 30. May 2007, 20:25

Post by linuxfingers »

thanks bodhi.zazen for the help
but after reading through it seems like its not
a soloution for me

1, its about bridging 2 physical networks
2, virtualbox does not create an emulated network card
3, and i have only one net card in my machine

thanks again though
:)

any one else found a solotion ?
how about the MODS on this site, can you provide
any insight please. again your pdf manual leaves
alot to be desired and probs you could consider
giving it an update. with some real world examples

:)
LF
rilawich
Posts: 12
Joined: 29. May 2007, 07:58

Post by rilawich »

I think port forwarding is much easier to get the purpose. As the document said, issue below 3 commands in host will let you go to the guest from outside. However, I still can't get into the guest after typing the commands below.

VBoxManage setextradata "Linux Guest"
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/UDP" 0
VBoxManage setextradata "Linux Guest"
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort" 22
VBoxManage setextradata "Linux Guest"
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort" 2222
linuxfingers
Posts: 8
Joined: 30. May 2007, 20:25

Post by linuxfingers »

Hi rilawich
take a look at this link.... further down the page is the networking bit.
http://doc.gwos.org/index.php/VirtualBo ... on_Windows

i know this is not what you want because like all the other solution post
on the net every one seem to have linux as a host and windows as a guest
while we have it the other way around.

it would be nice if a MOD of this site could jump in and guve a hand but it
seems so impossible for them to do that. :evil: :x

i did try VMWARE software and i had it working at some point and the reason is VMWARE create 2 addtional network card in the windows network connections section

then if you follow "bodhi.zazen" links then it will work. the reason why i dont want to use Vmware software is because on my machine (which has a top spec) seem to be dragging its ass, as in slow.
the mouse jerks and the software on a whole feels heavy and clumpsy.

vbox on the other is small in size (13MEG) with respects to vmware 216MEG and on my machine its super fast regardless of what stress i throw at it.

can a mod please jump in and help clear up the vbox manual by
providing some clear concise examples of a
windows (host) and linux (guest) please.

by the way rilawich it should be possible to do bridging on win 2k3
i hope we can resolve this soon..... im going crazy
Lf
bodhi.zazen
Volunteer
Posts: 180
Joined: 17. May 2007, 16:02

Post by bodhi.zazen »

linuxfingers wrote:thanks bodhi.zazen for the help
but after reading through it seems like its not
a soloution for me
1, its about bridging 2 physical networks
Yes, this is for several reasons. He he he, don't get me started on Microsoft :)
2, virtualbox does not create an emulated network card
Yes, Virtualbox creates an emulated network card. That is the point.
3, and i have only one net card in my machine
Yes, and we want to bridge that card with virtualbox.
thanks again though
:)

any one else found a solotion ?
how about the MODS on this site, can you provide
any insight please. again your pdf manual leaves
alot to be desired and probs you could consider
giving it an update. with some real world examples

:)
LF
bodhi wishes he knew more about Windows so as to be of more assistance. Alas I am a linux head ...

You need to set up a software TAP bridge in windows :
Instead of using the Internet Connection Sharing DHCP server, bridge the TAP virtual adapter to the physical adapter and let coLinux get an address from a router with a DHCP server or directly from an ISP (if you have an ISP which will assign you multiple IP addresses).

Set up Windows Software Bridge (included in Windows XP, not Windows 2000)
http://colinux.wikia.com/wiki/Network#T ... are_Bridge

See if this link helps :

http://colinux.wikia.com/wiki/Network#Installation

I am not sure if the TAP adapter installed with CoLinux will work with VirtualBox, but I *think it would.
If is a virtual machine, is it still broken ?
linuxfingers
Posts: 8
Joined: 30. May 2007, 20:25

Post by linuxfingers »

bodhi.zazen
thanks for the great info tips
i have plenty to test and tweek.
i know the solution is within grasp
its a matter of time for me to reach
out and take control.

you do provide some wicked tips.
ok im gonna go and try get this monster
working :)

thanks again for your input and ill update
you in the near future of how things turned out

Thanks again
LF
Post Reply