virtual machine - Failed to mount folders in Linux guest (Vagrant) -


i using virtualbox manager (version 4.3.22) & vagrant (version 1.7.2) , have following problem when doing 'vagrant reload'. note i'm using windows 7 professional on desktop machine. (note - can vagrant-ssh box not sure why errors occurring)

i've tried of other solutions other posts in regards installing additional plugins still no joy.

failed mount folders in linux guest. because "vboxsf" file system not available. please verify guest additions installed in guest , can work properly. command attempted was:  mount -t vboxsf -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3` /vagrant /vagrant mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` /vagrant /vagrant 

vagrant file :

# -*- mode: ruby -*- # vi: set ft=ruby :  vagrant.configure(2) |config|  config.vm.box = "ubuntu/trusty64"  config.vm.network "forwarded_port", guest: 80, host: 2345 config.vm.network "public_network"  config.vm.provision "shell", path: "box/bootstrap.sh" 

end

bootstrap file:

#!/bin/bash #========================================================= echo "##updating package manager..." #========================================================= sudo apt-get update echo "##installing packages..." #========================================================= sudo apt-get install -y git php5 memcached php5-cli php5-mysql php5-memcache php5-memcached apache2 php5-curl #========================================================= echo "##installing mysql..." #========================================================= # sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password ' # sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password ' sudo debian_frontend=noninteractive apt-get -y install mysql-server # sudo apt-get install -fy #========================================================= echo "##set apache..." #========================================================= sudo a2enmod rewrite sudo cp /vagrant/box/apache2.conf /etc/apache2/apache2.conf sudo service apache2 restart #========================================================= echo "##setting databases..." #========================================================= echo 'create database oauth2' | sudo mysql echo 'create database heatgenius' | sudo mysql sudo mysql oauth2 < /vagrant/box/create_oauth2.sql sudo mysql acme < /vagrant/box/create_acme.sql #========================================================= echo "##add api.acme.co.uk hosts make curlable..." #========================================================= sudo echo '127.0.0.1 api.acme.co.uk' | sudo tee -a /etc/hosts #========================================================= echo "##link project server root..." #========================================================= sudo rm -r /var/www/html sudo ln -s /vagrant/public /var/www/html #========================================================= echo "##install php packages..." #========================================================= curl -ss https://getcomposer.org/installer | php sudo mv composer.phar /usr/local/bin/composer cd /vagrant composer install 

same question here!

i wrote original answer @ url.

failed mount folders in linux guest - mesg: ttyname failed: inappropriate ioctl device


here 1 important reason why error occurred vagrant up

if use virtual box vagrant's provider, have reinstall 'guest additions' everytime create virtual machine's kernel.

vbguest plugin solution solving issue.

( vbguest plugin - https://github.com/dotless-de/vagrant-vbguest )

first, have install vbguest plugin.

$ vagrant plugin install vagrant-vbguest

and run vagrant

$ vagrant halt

$ vagrant up

or use too

vagrant reload


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -