[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: virtualbox:networking



If your Virtual Box network is NAT'd you will need to open the ports.

For example, suppose you want to ssh into the Virtual machine:

$ VBoxManage setextradata <guestname> "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort" 2222
$ VBoxManage setextradata <guestname> "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort" 22
$ VBoxManage setextradata <guestname> "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol" TCP

The you can log in via ssh to your Virtual Machine:
$ ssh -p 2222 -l <user> <Virtual Machine IP>

Regards
Andres

Reply to: