Skip to content

fransimo/vagrant-ubuntu-18-base-box

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vagrant-ubuntu-18-base-box

This is a step by step guide to create a vagrant base image for Ubuntu Desktop 18 for VirtualBox. It's the first step to update our development environment https://github.com/fransimo/vagrant-qa-automation-development-environment.

If you only want the image use this

step-by-step

  1. Download the daily ubuntu image

  2. Run the minimal Ubuntu installation

    • Virtual machine name is ubuntu-desktop-18
    • for this box I use 4G RAM and 60G dynamic disk
    • you can check the screeen shots sequence here
    • Important user and password must be: vagrant
  3. Virtual machine tunning for vagarnt automation

    • install virtual box tools

      • sudo apt-get install gcc make perl
      • insert guest addition disk from VirtualBox menu
      • install additions
    • install virtual box vagrant dependencies

      • sudo apt-get install linux-headers-$(uname -r) build-essential dkms
    • make vagrant user password less sudoer

      • create a file /etc/sudoers.d/vagrant with this content

vagrant ALL=(ALL) NOPASSWD: ALL

  1. Create the box

    • Choose a directory for creating and testing the box
    • vagrant package --base ubuntu-desktop-18
  2. Test the image

    • vagrant init u18 /Users/fran/Documents/workspace/vagrant-ubuntu-18-base-box/package.box
    • modify Vagrantfile and activate the gui
    • vagrant up
  3. Test loop if your tuning

    • rm package.box
    • vagrant package --base ubuntu-desktop-18
    • vagrant box remove u18
    • vagrant destroy
    • rm Vagrantfile
    • vagrant init u18 package.box
    • #modify Vagrantfile and activate the gui
    • vagrant up
  4. Automated

    • This steps are automated in vagrant-init/init.sh

References

Creating Base Boxes

Special notes for Virtual Box

About

Minimal scripting and info to create a Vagrant Base Box for Ubuntu Desktop 18

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published