# root login doesn't work on hashicorp/bionic64 or bento/ubuntu-18.04 box with pw 'vagrant'
#config.ssh.username = "root"
#config.ssh.password = "vagrant"
config.ssh.insert_key = true
#config.ssh.private_key_path = "~/.ssh/id_rsa"
# host_path guest_path
config.vm.synced_folder "~/github", "/github"
config.vm.synced_folder "../../", "/bash"
config.ssh.forward_agent = false
config.ssh.forward_x11 = false
config.vm.usable_port_range = 2250..2299
#config.vm.boot_mode = "gui"
config.vm.provider "virtualbox" do |vb|
vb.gui = false
#vb.name = "default-vagrant-hostname" # overridden per VM
vb.customize [
"modifyvm", :id,
"--name", "#{vb.name}",
"--natdnsproxy1", "on",
"--usb", "off",
"--audio", "none"
]
# using the host's DNS is simple but less portable as it requires an extra step of adding the nodes to the host's /etc/hosts file, which is an easy step to miss, so just inject the hosts files in each VM instead
#"--natdnshostresolver1", "on",
# evaluates too early and gets 'default-vagrant-hostname'