Ubuntu 9.10 + net + ssh

Discussions related to using VirtualBox on Windows hosts.
Post Reply
WarrenTR
Posts: 3
Joined: 6. Nov 2009, 06:46
Primary OS: MS Windows XP
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 9.10

Ubuntu 9.10 + net + ssh

Post by WarrenTR »

Hi,
I am hosting VB on winxp32 running a guest with Ubuntu 9.10.

What Network adapter setup should I use so my guest can be sshed to and can still have net access?

Thank you
MarkCranness
Volunteer
Posts: 875
Joined: 10. Oct 2009, 06:27
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows Server 2008 R2; Ubuntu 11.04; Windows 2000 Server; Windows XP

Re: Ubuntu 9.10 + net + ssh

Post by MarkCranness »

Either:
  • NAT and also set up port forwarding rules for SSH (sections 6.4 and 6.4.1 - even has a SSH port forwarding example!).
    Your host is simultaneously itself and a router and the host and router share the same IP, so port numbers for services have to be shared.
    OR
  • Bridged (section 6.5 of the manual).
    The guest gets it's own IP on your internal network (using your network's DHCP, or set static somehow...), so port numbers are not shared.
WarrenTR
Posts: 3
Joined: 6. Nov 2009, 06:46
Primary OS: MS Windows XP
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 9.10

Re: Ubuntu 9.10 + net + ssh

Post by WarrenTR »

Thanks for the reply Mark,

Bridged will get an IP properly, but cannot access the net at all. Even pinging directly to any ip wont work (host machine, router, google)

Anything tricky I need to do to get bridged to see the outside net? Note I can ssh into my guest (it seems slow tho), and I have installed the guest additions.

Thank you.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Ubuntu 9.10 + net + ssh

Post by Sasquatch »

You need a router or similar to use Bridged properly. Another method you can do is have one NIC attached to NAT for internet, another attached to Host-Only so you have Host <> Guest connectivity. Other machines on the network won't be able to SSH to the VM though. Only Bridged and NAT port forwarding can give you that.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
WarrenTR
Posts: 3
Joined: 6. Nov 2009, 06:46
Primary OS: MS Windows XP
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 9.10

Re: Ubuntu 9.10 + net + ssh

Post by WarrenTR »

I have a router, and my guest is getting assigned an IP properly via dhcp. Still no net connectivity. It seems others are having this issue with 3.0.10. Does anyone have a link for 3.0.8?
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Ubuntu 9.10 + net + ssh

Post by Sasquatch »

Download page? It has link to older builds.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply