HTTPS SSH

Ubuntu 16.04 Desktop Vagrant Base Box

This is Ubuntu 16.04 LTS 64-bit server with LXDE desktop (lubuntu-desktop). The main motivation for the base box is to have a lightweight Linux desktop for my professional and private projects.

This repository is for Packer configuration that is used to build the base box. The actual base box that one can use is located in Atlas:

https://atlas.hashicorp.com/janihur/boxes/ubuntu-1604-lxde-desktop

Usage

Install Virtualbox and Vagrant. Drop in shell and say:

$ vagrant init
$ cat Vagrantfile
Vagrant.configure(2) do |config|
  config.vm.box = "janihur/ubuntu-1604-lxde-desktop"

  config.vm.provider "virtualbox" do |vb|
    # Display the VirtualBox GUI when booting the machine
    vb.gui = true

    # Customize the amount of memory on the VM:
    vb.memory = "1024"
  end
end
$ vagrant up

Business as usual, except turn on the GUI with vb.gui = true.

Default user/password is vagrant/vagrant with passwordless sudo.

The box defaults to 1GB RAM, US locale, US keyboard layout and UTC timezone. You might want to change those:

How the box was made

Install VirtualBox, Vagrant and Packer.

Run packer:

$ packer build ubuntu-1604-lxde-desktop.json
# register the local box file for testing
$ vagrant box add --name ubuntu-1604-lxde-desktop build/ubuntu-1604-lxde-desktop.box

The used Ubuntu 64-bit PC (AMD64) server install image is downloaded from http://releases.ubuntu.com/16.04/

Resources