Wie kann ich den Ordner / vagrant auf ubuntu / xenial64 bekommen?
Ich habe gerade Vagrant Box mit dem Befehl installiert:
vagrant init ubuntu/xenial64
und das hochgefahren mit:
vagrant up --provider virtualbox
nach ssh-ing kann ich ordner / vagrant nicht finden
Was mache ich falsch?
GemäßDokumentatio es sollte @ geb/vagrant
Mappe
Standardmäßig teilt Vagrant Ihr Projektverzeichnis (das Verzeichnis mit der Vagrant-Datei) mit /vagrant
Hier ist einBildschirmfot wo ist klar, dass es keinen / vagrant Ordner gibt
Meine Host-Umgebung ist:
Windows Vagrant Version 1.8.1Vbox Version 5.0.20r106931Hier ist meine Vagrant-Datei:
# -*- 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
und hier ist meine Bereitstellungsdatei:
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