DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD Package System (pkgsrc)

NetBSD Package System (pkgsrc) Installation and upgrading of packages on NetBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 14th October 2014
philo_neo71 philo_neo71 is offline
Spam Deminer
 
Join Date: Jul 2009
Posts: 267
Default how to ssh througt virtualbox

Hi,
I have installed NetBSD 6.1.5 into virtualbox guest OS.
The OS to support NetBSD is Solaris 11 (openindiana = OI), i want to do ssh since OI for connecting to NetBSD througt virtualbox
How to do ssh connection at guest OS ?
1/ i try to ping netBSD, no reponses.
2/ ssh return time out.
3/ i have build a second interface named "vboxnet" at virtualbox's config.


Regards
Philippe
Reply With Quote
  #2   (View Single Post)  
Old 19th October 2014
gsvelto gsvelto is offline
New User
 
Join Date: Oct 2014
Posts: 3
Default

Quote:
Originally Posted by philo_neo71 View Post
3/ i have build a second interface named "vboxnet" at virtualbox's config.
You don't need a second network interface; one is enough, just make sure you use bridged networking for your host to be able to see your guest VM. Make sure you set your virtual interface to "Bridged Adapter" in VirtualBox's configuration.
Reply With Quote
  #3   (View Single Post)  
Old 20th October 2014
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

This is not a NetBSD related question please refer to VirtualBox documentation.

P.S. Depends on your VirtualBox host network setup (your local LAN setup) a guest OS can IP address as any other machine in the network if the VirtualBox settings are set to bridged mofr as long as IP addresses are available (DHCP or Static). If no IP addresses is available on LAN the VirtualBox guest should be left in the default NAT mode and you will have to do port forwarding (VirutalBox setting) and map VirtualBox host port 22 to the guest port 22 (tcp). If you want to ssh to guest as well obviously you will have to chose non default ssh port for Virtual Box guest. For example you can map port 2222 on the host to 22 on the guest.

VirtualBox documentation is really good as anything that came out of Sun Microsystems so I would suggest you read it.

Last edited by Oko; 25th October 2014 at 10:52 PM.
Reply With Quote
  #4   (View Single Post)  
Old 25th October 2014
kpedersen kpedersen is offline
Port Guard
 
Join Date: Nov 2009
Posts: 24
Default

Quote:
Originally Posted by philo_neo71 View Post
How to do ssh connection at guest OS ?
At the guest OS (as in inside the guest OS?) you can connect to the host by opening a connection to 10.0.2.2 (the guest always sees the host at this IP if you use NAT translation as the networking type).

Otherwise yeah as Oko said, you need to do port forwarding when using NAT to pass through the SSH port of the guest if trying to connect to it from the host.

Though in true SSH hacker spirit you could probably from the guest open up a reverse tunnel on the host connecting to the guests SSH port doing without NAT port forwarding.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtualbox bashrules FreeBSD General 12 29th September 2011 12:24 PM
Xorg configuration in VirtualBox maxrussell FreeBSD Installation and Upgrading 7 17th July 2011 05:12 AM
Virtualbox with Windows tetrodozombie OpenBSD General 2 15th August 2010 04:51 AM
FreeBSD 7.2 and VirtualBox DNAeon FreeBSD Ports and Packages 12 6th July 2009 02:33 PM
VirtualBox DrJ FreeBSD Ports and Packages 6 18th May 2009 03:46 AM


All times are GMT. The time now is 08:09 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick