
We are using Centos7 as the OS for our Vagrantbox. Although this blog post is not a tutorial on Vagrant there are some things to note. I have provided links below to a Github project to fully deploy TICK on Vagrant. The Vagrantfile defines the parameters of our VM such as memory, mount points, network etc.

For those of you who have never used Vagrant, it is a tool for building and managing virtual machine environments in a single workflow. But what if I just want to spin up a quick TICK Stack to test something out like a TICKscript or a new Telegraf plugin I am building (hint at future blog article)? Enter Vagrant. InfluxData provides downloads for a variety of operating systems and architectures and even an official Docker image. If everything spins up properly you can see the status of your virtual machine using vagrant status, you can SSH into your virtual machine using vagrant ssh, or you can destroy your virtual machine using vagrant destroy.One of the great things about InfluxDB and the TICK Stack as a whole is its ease of use. Spin up your first virtual machine: vagrant up Lastly, if you do not want Shared Folders setup between your workstation and virtual machine, disable it by adding the following to your Vagrantfile: config.vm.synced_folder ".", "/vagrant", id: "vagrant-root", disabled: true You now have a Vagrantfile that points to the vagrant-ubuntu-x.x.x-server-amd64 Base Box you just created. So, create a directory somewhere to house your Vagrantfile and associative virtual machines: mkdir -p ~/Development/vagrant-testĬreate the Vagrantfile: vagrant init vagrant-ubuntu-x.x.x-server-amd64 Each will contain different Vagrantfiles and different virtual machines. You can have as many vagrant projects as you want. Make sure the -–base parameter matches the name of the virtual machine in VirtualBox: vagrant package -output vagrant-ubuntu-x.x.x-server-amd64.box -base ubuntu-x.x.x-server-amd64Īdd the Vagrant Box vagrant box add vagrant-ubuntu-x.x.x-server-amd64 vagrant-ubuntu-x.x.x-server-amd64.boxĬreate a Vagrant Project and Configure Vagrantfile Note: is a pointer to vagrant_bootstrap.sh Create the Vagrant Box Vagrant user to the sudoer's file and setup the vagrant public key (so we Once Ubuntu Server has finished installing and has booted we need to add the
#Vagrant image software
When you get to the Software selection section only select OpenSSH server.Īt the end of the install, shutdown the virtual machine, and open the Settings again for the virtual machine.Vagrant will ultimately use your SSH key to communicate with the virtual machines.
#Vagrant image password
#Vagrant image install
Install Ubuntu Serverīegin the Ubuntu Server install.
#Vagrant image iso


