Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

At least 2048 MB memory

At least 40 GB VDI

Network: Attached to: NAT

Create a port-forwarding rule for SSH

If your host computer uses a VPN client that blocks access to local subnets, it's helpful to create a Create a port-forwarding rule so that you can use PuTTY (or any other SSH client) to connect to the VM.  You probably don't need this unless you're using a VPN client on your host.

Go to "Network" settings in VirtualBox, add a port forwarding rule:

...

After selecting the image, start the VM.

...

Proxy Configuration

...

(optional)

If you're behind a corporate firewall, configure some proxy settings.  The examples here show a username and password in the proxy URL.  You can omit them if your proxy server doesn't require them.

Ubuntu system proxy setting:

System Settings → Network → Network proxy

Create Shared Folder

This is for Windows users.  If you're using a MAC or a Linux host, things may be quite different.  The shared folder allows you to easily transfer files between the guest VM and the host computer.

Create Shared Folder

This is for Windows users.  If you're using a MAC or a Linux host, things may be quite different.  The shared folder allows you to easily transfer files between the guest VM and the host computer.

Create Shared Folder

This is for Windows users.  If you're using a MAC or a Linux host, things may be quite different.  The shared folder allows you to easily transfer files between the guest VM and the host computer.apt proxy setting:

Edit /etc/apt/apt.conf and add one line at the top:

Acquire::http::Proxy "http://username:password@proxyhost:port";

Install SSH Server

sudo apt update

sudo apt install openssh-server

Connect to the VM from your host computer

The PuTTY SSH client is popular.  A connection to localhost:1022 will go to the VM.

Image Added

Install VirtualBox Guest Additions

On the "Storage" panel in VirtualBox, click on "[ optical drive ]" and then "Choose Disk Image".  Select your VirtualBox Guest Additions ISO image.

Image Added

In a terminal window on the VM:

Get a root shell:

sudo bash

Mount the cdrom:

mkdir -p /media/cdrom

mount /dev/cdrom /media/cdrom

Install necessary dependencies:

apt update

apt install gcc g++ dkms linux-headers-generic

Install the guest additions:

cd /media/cdrom

./VBoxLinuxAdditions.run



Create Shared Folder

This is for Windows users.  If you're using a MAC or a Linux host, things may be quite different.  The shared folder allows you to easily transfer files between the guest VM and the host computer.

...