Versions Compared

Key

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

...

Create Shared Folder

This is for oriented to Windows users.  If you're using a MAC or a Linux host computer, things the details may be quite different.  The shared folder allows you to easily transfer files between the guest VM and the host computerYou can share any folder on the host computer with the Ubuntu VM.  On Windows, a practical choice is to share the C:\Users folder, so that your Windows home directory will be accessible from the Ubuntu VM.

Go to "Shared Folders" settings in VirtualBox, add a share:

...

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

After selecting the ISO image, start the VM.

Follow the prompts to install Ubuntu.

...

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

Ubuntu system proxy setting:

System Settings → Network → Network proxy

(Replace "proxyhost" and port with your actual proxy information)

apt proxy setting:

Edit /etc/apt/apt.conf and add one line at the top (replace "proxyhost:port" with your actual proxy information):

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

Reboot the VM.

Install SSH Server

...

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

In a VM terminal window on , mount the VMcdrom:

Get a root shell:

sudo

...

Mount the cdrom:

mkdir -p /media/cdrom

sudo mount /dev/cdrom /media/cdrom

Install necessary dependencies:

sudo apt update

sudo apt install gcc g++ dkms

...


Install the guest additions.  NOTE: look for errors in the command output!  If you see an error that says you are missing kernel headers, the most likely cause is that you are using a VirtualBox version that is too old.  The error message is misleading.

cd /media/cdrom

sudo ./VBoxLinuxAdditions.run



Image Added

Add yourself to the vboxsf user group (replace "userid" with your user ID):

sudo usermod -a -G vboxsf userid

Reboot the VM.

In a VM terminal window, verify that you can access your home directory on the host computer, which should be mounted under here:

/media/sf_Users

Install Docker

Make sure curl is installed:

sudo apt update

sudo apt install curl




If you are behind a corporate firewall (replace "proxyhost:port" with your actual proxy information)

https_proxy="https://proxyhost:port" curl -fsSL https://apt.dockerproject.org/gpg | sudo apt-key add -

Otherwise:

curl -fsSL https://apt.dockerproject.org/gpg | sudo apt-key add -

Expected Response:

OK

Add the docker package repository:

sudo apt-add-repository "deb https://apt.dockerproject.org/repo ubuntu-xenial main"

Install packages:

sudo apt update

sudo apt-cache policy docker-engine

sudo apt install docker-engine

sudo apt install docker-compose

If you are behind a corporate firewall, you will need to configure proxy settings for docker so that images may be obtained from internet repositories.  In the commands shown here, replace "proxyhost:port", "yourdomain1.com", and "yourdomain2.com" with appropriate values.

Make the docker configuration directory:

mkdir -p /etc/systemd/system/docker.service.d

Edit (create) this file:

/etc/systemd/system/docker.service.d/http-proxy.conf

Add these lines:

[Service]
Environment="HTTP_PROXY=https://proxyhost:port"
Environment="HTTPS_PROXY=https://proxyhost:port"
Environment="NO_PROXY=localhost,127.0.0.1,.yourdomain1.com,.yourdomain2.com"

Restart docker:

sudo systemctl daemon-reload

sudo systemctl restart docker

Add yourself to the docker user group (replace "userid" with your user ID):

sudo usermod -a -G docker userid

Log out and log back in so that the user group change will takeeffect.

Verify that you can connect to docker as yourself (i.e. not as root):

docker ps

Verify that you can download and run the hello-world container

docker run hello-world

Image Added

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.

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.




Info

Content by Label
showLabelsfalse
max5
spacesDW
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "kb-how-to-article" and type = "page" and space = "DW"
labelskb-how-to-article

Page properties
hiddentrue
Related issues