I have just installed vagrant box with command:
vagrant init ubuntu/xenial64
and the booted it up with:
vagrant up --provider virtualbox
after ssh-ing I can not find folder /vagrant
What I am doing wrong?
According to documentation there should be /vagrant
folder:
By default, Vagrant will share your project directory (the directory with the Vagrantfile) to /vagrant.
Here is a screenshot where is obvious that there is no /vagrant folder
My host environment is:
- windows 7
- Vagrant version 1.8.1
- Vbox version 5.0.20r106931
Here is my Vagrant file:
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.provision "shell", path: "provision.sh"
config.vm.provider "virtualbox" do |vb|
# Display the VirtualBox GUI when booting the machine
vb.gui = true
# Customize the amount of memory on the VM:
vb.memory = "4096"
vb.cpus = "2"
# Hack for nom global install
# https://github.com/npm/npm/issues/7308
vb.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/vagrant", "1"]
end
end
and here is my provisioning file:
echo "------------------------------"
echo "--- Updating packages list ---"
echo "------------------------------"
apt-get -y update
echo "-----------------------"
echo "--- Installing curl ---"
echo "-----------------------"
apt-get -y install curl
echo "----------------------"
echo "--- Installing git ---"
echo "----------------------"
apt-get -y install git
echo "-----------------------------"
echo "--- Installing python-pip ---"
echo "-----------------------------"
apt-get -y install python-pip
yes | pip install --upgrade pip
echo "--------------------------"
echo "--- Installing node.js ---"
echo "--------------------------"
apt-get -y install nodejs
echo "----------------------"
echo "--- Installing npm ---"
echo "----------------------"
apt-get -y install npm