Skip to Main Content
The DevOps 2.4 Toolkit
book

The DevOps 2.4 Toolkit

by Viktor Farcic
November 2019
Intermediate to advanced content levelIntermediate to advanced
398 pages
9h 5m
English
Packt Publishing
Content preview from The DevOps 2.4 Toolkit

Creating a VM with Vagrant and VirtualBox

This section is appropriate for those using Docker for Mac or Windows, minikube, minishift, or anyone else planning to use static nodes as agents.

We'll use Vagrant (https://www.vagrantup.com/) to create a local VM. Please install it if you do not have it already.

The Vagrantfile we'll use is already available inside the vfarcic/k8s-specs (https://github.com/vfarcic/k8s-specs). It's in the cd/docker-build directory, so let's go there and take a quick look at the definition.

 1  cd cd/docker-build 2
 3  cat Vagrantfile

The output of the latter command is as follows.

# vi: set ft=ruby :

Vagrant.configure("2") do |config|
    config.vm.box = "ubuntu/xenial64"

    config.vm.define "docker-build" do |node|
        node.vm.hostname ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The DevOps 2.2 Toolkit

The DevOps 2.2 Toolkit

Viktor Farcic

Publisher Resources

ISBN: 9781838643546Supplemental Content