Alpine Linux VirtualBox Appliance Setup Instructions

In order to minimize technical difficulties and discrepancies across all systems, in today's workshop you will be working from a pair of Linux VMs running on your own computer under VirtualBox.

The .OVA appliance file is available on my Raspberry Pi which is connected to the OpenWestOpenSSH network. This network's WPA key is TatuYlonen, the name of the creator of SSH. Once connected to this network, navigate to http://viking1 in your browser.

If you do not have VirtualBox installed on your laptop... may download the latest installer for your OS from the internet via the conference's WiFi, or from my Raspberry Pi on my network.

Import the alpine0 appliance into VirtualBox and create two Virtual Machines

I will name my Virtual Machines alpine0 and alpine1. To prevent confusion, I expect you to do the same.

  1. From the VirtualBox manager GUI go to File -> Import Appliance
  2. Select the alpine0.ova file from your filesystem
  3. VirtualBox gives you the option to rename the VM. Keep the default name of alpine0 on the first machine you import, and rename the second machine to alpine1.

At this point in time both VMs are configured identically. Both machines share the same hostname, are connected to a virtual network containing your laptop, and are assigned the static IP address

VirtualBox tells me that invalid settings are detected... a warning about a missing network interface.

Setup steps specific to alpine1

Since both machines come from the same template, alpine1 needs to be given its own IP address and hostname

  1. Start up alpine1 in the manager GUI
  2. Login to alpine1 through the VirtualBox console as root.
  3. Edit /etc/hostname, replacing localhost with the machine's correct name
  4. run hostname -F /etc/hostname to change the system's hostname now.
  5. Initially both VMs are assigned the static IP Run setup-interfaces to assign alpine1 a static address Do this when setup-interfaces asks you to enter an Ip address or to select "dhcp" or "none". Hit ENTER to use the default values for the remaining questions.

  6. Restart the eth0 network interface to bind the eth0 interface to the new address by running the following commands:

  7. Log out and log back in so that the hostname in your command prompt reflects the updated hostname.

Test the network connection between the two virtual machines

Under a host-only virtual network configuration your laptop may reach both virtual machines, and both virtual machines are reachable from each other. Do a ping test and an SSH connection test to make sure that this is the case before proceeding.

We aren't using DHCP in our little virtual network, so you'll have to refer to each machine by its IP address for now.

  1. Start up alpine0. Both machines should now be running.
  2. From your laptop ping
  3. From your laptop ping
  4. If you have an SSH client installed on your laptop, test logging in to each machine using the noob user account.
  5. From within alpine0 use SSH to connect to alpine1, and vice versa.