Vagrantfile: Add customization to remove log file.

An unnecessary log file gets generated when running vagrant up for the
first time with the Ubuntu Bionic box.  This looks like it is being
caused upstream by the base box containing a Vagrantfile with a line
that looks something like:

vb.customize [ ..., ..., ..., ..., \
File.join(Dir.pwd, "ubuntu-bionic-18.04-cloudimg-console.log") ]

The line added here negates this.
This commit is contained in:
Wyatt Hoodes 2019-05-28 22:55:26 +01:00 committed by Tim Abbott
parent 49b261b211
commit 857c16d52d
1 changed files with 6 additions and 0 deletions

6
Vagrantfile vendored
View File

@ -148,6 +148,12 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provider "virtualbox" do |vb, override| config.vm.provider "virtualbox" do |vb, override|
override.vm.box = "ubuntu/trusty64" override.vm.box = "ubuntu/trusty64"
# An unnecessary log file gets generated when running vagrant up for the
# first time with the Ubuntu Bionic box. This looks like it is being
# caused upstream by the base box containing a Vagrantfile with a similar
# line to the one below.
# see https://github.com/hashicorp/vagrant/issues/9425
vb.customize [ "modifyvm", :id, "--uartmode1", "disconnected" ]
# It's possible we can get away with just 1.5GB; more testing needed # It's possible we can get away with just 1.5GB; more testing needed
vb.memory = vm_memory vb.memory = vm_memory
vb.cpus = vm_num_cpus vb.cpus = vm_num_cpus