Last active
March 2, 2017 04:36
-
-
Save namndev/5f690beed804639067a880d3388f241f to your computer and use it in GitHub Desktop.
Xenial vagrant (ubuntu 16.04)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/xenial64" | |
config.vm.hostname = "ubuntu-xenial" | |
config.vm.network "public_network", ip: "192.168.0.131" | |
config.vm.synced_folder "/Volumes/Data/Shares", "/home/ubuntu/Shares", create: true | |
config.vm.provider "virtualbox" do |vb| | |
vb.name = "ubuntu-xenial64" | |
vb.gui = false | |
vb.memory = "2048" | |
vb.cpus = 2 | |
end | |
config.vm.provision "shell", inline: <<-SHELL | |
sudo apt-get update | |
sudo apt-get install -y whois git htop | |
sudo useradd -m -p `mkpasswd password_here` -s /bin/bash user_here | |
sudo usermod -a -G sudo user_here | |
SHELL | |
end |
Just spent a couple hours banging my head against this myself today.
Another horrible workaround if you're using git bash:
cp /mingw64/bin/curl.exe /c/HashiCorp/Vagrant/embedded/bin/curl.exe
I hope there will be a better solution in the actual installer in a future release.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You want to fix the 'sync_folder' error, You should install plugin vbguest for vagrant before run "vagrant up".
That command below:
$ vagrant plugin install vagrant-vbguest
Vagrant:
https://www.vagrantup.com/downloads.html