VBoxManage setextradata "Ubuntu Server" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort" 2222 VBoxManage setextradata "Ubuntu Server" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort" 22 VBoxManage setextradata "Ubuntu Server" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol" TCP
VBoxManage setextradata "Ubuntu Server" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/django/HostPort" 8888 VBoxManage setextradata "Ubuntu Server" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/django/GuestPort" 8000 VBoxManage setextradata "Ubuntu Server" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/django/Protocol" TCP
VBoxManage setextradata "Ubuntu Server" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/http/HostPort" 8080 VBoxManage setextradata "Ubuntu Server" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/http/GuestPort" 80 VBoxManage setextradata "Ubuntu Server" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/http/Protocol" TCP
Source: http://michaelhallsmoore.com/blog/Running-A-Local-Web-Development-Environment-With-VirtualBox
VBoxHeadless -startvm "Ubuntu Server"
mount -t vboxsf sharename /home/username/mountpoint -o rw,exec,uid=1000,gid=1000,dev