Showing posts with label Virtualbox. Show all posts
Showing posts with label Virtualbox. Show all posts

ssh, scp to Virtualbox

Posted on by Kim

Under Network -> Advanced -> Port  Forwarding


Name: ssh
Protocol: TCP
Host Port: 3022
Guest Port: 22



Start client from terminal

VBoxManage startvm "<name>" --type headless

SSH from host to client

ssh -p 3022 kim@127.0.0.1

SCP from host to client

scp -P 3022 vpn_config.zip 127.0.0.1:.



Access host from virtualbox

Posted on by Kim

To access host from virtualbox use ip : 10.0.2.2

Optionally add

10.0.2.2 sm-develop

to c:\windows\system32\drivers\etc\hosts

Virtualbox stopping at spawning session 0%

Posted on by Kim

Trying to start Virtualbox I got this: spawning session 0% and it never grows.

sudo /etc/init.d/vboxdrv setup

Fixed it.