Fix vagrant bug.
$set_environment_variables = <<SCRIPT
tee "/etc/profile.d/cita_boot.sh" > "/dev/null" <<EOF
export USING_VAGRANT=1
-export VAGRANT_DATA_PATH=/home/ubuntu/citadata
+export VAGRANT_DATA_PATH=/tmp/citadata
EOF
SCRIPT
Vagrant.configure(2) do |config|
config.vm.box = "cryptape/easy_cita"
config.vm.box_version = "0.0.1"
+ config.ssh.insert_key = false
+
+ # Got error "Warning: Authentication failure. Retrying..." ?
+ # Uncomment below lines, run `vagrant reload; vagrant ssh` again. And enter password.
+ # config.ssh.username = "vagrant"
+ # config.ssh.password = "vagrant"
config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'"
config.vm.provider "virtualbox" do |v|
v.memory = 4096
v.cpus = 4
+ v.customize [ "modifyvm", :id, "--uartmode1", "disconnected" ]
end
config.vm.provision "shell", inline: $set_environment_variables, run: "always"
