Skip to content

Instantly share code, notes, and snippets.

@takuhou
Created February 4, 2015 13:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takuhou/dbd9be4fd3427356765b to your computer and use it in GitHub Desktop.
Save takuhou/dbd9be4fd3427356765b to your computer and use it in GitHub Desktop.
VagrantでCentOS7を立てたが、httpアクセスが繋がらない時にやったこと ref: http://qiita.com/takuhou/items/1bdd8403a15be7411e20
app = require('express')();
app.get('/', function(req, res){
res.send('hello world');
});
app.listen(80);
config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.network "private_network", ip: "192.168.33.10", id:"http"
Failed to mount folders in Linux guest. This is usually because
the "vboxsf" file system is not available. Please verify that
the guest additions are properly installed in the guest and
can work properly. The 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
The error output from the last command was:
/sbin/mount.vboxsf: mounting failed with the error: No such device
vagrant ssh
[vagrant@localhost ~]$ sudo /etc/init.d/vboxadd setup
Removing existing VirtualBox non-DKMS kernel modules [ OK ]
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module [ OK ]
Building the shared folder support module [ OK ]
Building the OpenGL support module [ OK ]
Doing non-kernel setup of the Guest Additions [ OK ]
Starting the VirtualBox Guest Additions [ OK ]
[vagrant@localhost ~]$ exit
vagrant halt
vagrant up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment