Skip to content

Instantly share code, notes, and snippets.

@ajford
Last active August 29, 2015 14:08
Show Gist options
  • Save ajford/0c8ade2e352f446ae27c to your computer and use it in GitHub Desktop.
Save ajford/0c8ade2e352f446ae27c to your computer and use it in GitHub Desktop.
Vagrant mount issue
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'box-cutter/centos64-i386'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'box-cutter/centos64-i386' is up to date...
==> default: A newer version of the box 'box-cutter/centos64-i386' is available! You currently
==> default: have version '1.0.3'. The latest is version '1.0.5'. Run
==> default: `vagrant box update` to update.
==> default: Setting the name of the VM: cms_deploy_default_1414004690951_10036
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: bridged
==> default: Forwarding ports...
default: 22 => 2222 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Remote connection disconnect. Retrying...
default: Warning: Remote connection disconnect. Retrying...
default: Warning: Remote connection disconnect. Retrying...
default: Warning: Remote connection disconnect. Retrying...
default: Warning: Remote connection disconnect. Retrying...
==> default: Machine booted and ready!
GuestAdditions versions on your host (4.3.18) and guest (4.3.16) do not match.
Loaded plugins: fastestmirror
Determining fastest mirrors
* base: mirror.globo.com
* extras: mirror.globo.com
* updates: mirror.globo.com
Setting up Install Process
No package kernel-devel-2.6.32-358.el6.i686 available.
Package 1:make-3.81-20.el6.i686 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package gcc.i686 0:4.4.7-4.el6 will be installed
--> Processing Dependency: libgomp = 4.4.7-4.el6 for package: gcc-4.4.7-4.el6.i686
--> Processing Dependency: cpp = 4.4.7-4.el6 for package: gcc-4.4.7-4.el6.i686
--> Processing Dependency: libgcc >= 4.4.7-4.el6 for package: gcc-4.4.7-4.el6.i686
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.4.7-4.el6.i686
---> Package perl.i686 4:5.10.1-136.el6 will be installed
--> Processing Dependency: perl-libs = 4:5.10.1-136.el6 for package: 4:perl-5.10.1-136.el6.i686
--> Processing Dependency: perl-libs for package: 4:perl-5.10.1-136.el6.i686
--> Processing Dependency: perl(version) for package: 4:perl-5.10.1-136.el6.i686
--> Processing Dependency: perl(Pod::Simple) for package: 4:perl-5.10.1-136.el6.i686
--> Processing Dependency: perl(Module::Pluggable) for package: 4:perl-5.10.1-136.el6.i686
--> Processing Dependency: libperl.so for package: 4:perl-5.10.1-136.el6.i686
--> Running transaction check
---> Package cpp.i686 0:4.4.7-4.el6 will be installed
---> Package glibc-devel.i686 0:2.12-1.132.el6_5.4 will be installed
--> Processing Dependency: glibc-headers = 2.12-1.132.el6_5.4 for package: glibc-devel-2.12-1.132.el6_5.4.i686
--> Processing Dependency: glibc = 2.12-1.132.el6_5.4 for package: glibc-devel-2.12-1.132.el6_5.4.i686
--> Processing Dependency: glibc-headers for package: glibc-devel-2.12-1.132.el6_5.4.i686
---> Package libgcc.i686 0:4.4.7-3.el6 will be updated
---> Package libgcc.i686 0:4.4.7-4.el6 will be an update
---> Package libgomp.i686 0:4.4.7-3.el6 will be updated
---> Package libgomp.i686 0:4.4.7-4.el6 will be an update
---> Package perl-Module-Pluggable.i686 1:3.90-136.el6 will be installed
---> Package perl-Pod-Simple.i686 1:3.13-136.el6 will be installed
--> Processing Dependency: perl(Pod::Escapes) >= 1.04 for package: 1:perl-Pod-Simple-3.13-136.el6.i686
---> Package perl-libs.i686 4:5.10.1-136.el6 will be installed
---> Package perl-version.i686 3:0.77-136.el6 will be installed
--> Running transaction check
---> Package glibc.i686 0:2.12-1.107.el6 will be updated
--> Processing Dependency: glibc = 2.12-1.107.el6 for package: glibc-common-2.12-1.107.el6.i686
---> Package glibc.i686 0:2.12-1.132.el6_5.4 will be an update
---> Package glibc-headers.i686 0:2.12-1.132.el6_5.4 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.12-1.132.el6_5.4.i686
--> Processing Dependency: kernel-headers for package: glibc-headers-2.12-1.132.el6_5.4.i686
---> Package perl-Pod-Escapes.i686 1:1.04-136.el6 will be installed
--> Running transaction check
---> Package glibc-common.i686 0:2.12-1.107.el6 will be updated
---> Package glibc-common.i686 0:2.12-1.132.el6_5.4 will be an update
---> Package kernel-headers.i686 0:2.6.32-431.29.2.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
gcc i686 4.4.7-4.el6 base 8.2 M
perl i686 4:5.10.1-136.el6 base 9.7 M
Installing for dependencies:
cpp i686 4.4.7-4.el6 base 3.4 M
glibc-devel i686 2.12-1.132.el6_5.4 updates 980 k
glibc-headers i686 2.12-1.132.el6_5.4 updates 617 k
kernel-headers i686 2.6.32-431.29.2.el6 updates 2.9 M
perl-Module-Pluggable i686 1:3.90-136.el6 base 40 k
perl-Pod-Escapes i686 1:1.04-136.el6 base 32 k
perl-Pod-Simple i686 1:3.13-136.el6 base 212 k
perl-libs i686 4:5.10.1-136.el6 base 593 k
perl-version i686 3:0.77-136.el6 base 51 k
Updating for dependencies:
glibc i686 2.12-1.132.el6_5.4 updates 4.3 M
glibc-common i686 2.12-1.132.el6_5.4 updates 14 M
libgcc i686 4.4.7-4.el6 base 112 k
libgomp i686 4.4.7-4.el6 base 121 k
Transaction Summary
================================================================================
Install 11 Package(s)
Upgrade 4 Package(s)
Total download size: 45 M
Downloading Packages:
--------------------------------------------------------------------------------
Total 120 kB/s | 45 MB 06:25
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:
Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>
Package: centos-release-6-4.el6.centos.10.i686 (@anaconda-CentOS-201303020136.i386/6.4)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : libgcc-4.4.7-4.el6.i686 1/19
Installing : kernel-headers-2.6.32-431.29.2.el6.i686 2/19
Updating : glibc-common-2.12-1.132.el6_5.4.i686 3/19
Updating : glibc-2.12-1.132.el6_5.4.i686 4/19
Installing : glibc-headers-2.12-1.132.el6_5.4.i686 5/19
Installing : glibc-devel-2.12-1.132.el6_5.4.i686 6/19
Installing : 1:perl-Pod-Escapes-1.04-136.el6.i686 7/19
Installing : 1:perl-Module-Pluggable-3.90-136.el6.i686 8/19
Installing : 3:perl-version-0.77-136.el6.i686 9/19
Installing : 4:perl-libs-5.10.1-136.el6.i686 10/19
Installing : 1:perl-Pod-Simple-3.13-136.el6.i686 11/19
Installing : 4:perl-5.10.1-136.el6.i686 12/19
Updating : libgomp-4.4.7-4.el6.i686 13/19
Installing : cpp-4.4.7-4.el6.i686 14/19
Installing : gcc-4.4.7-4.el6.i686 15/19
Cleanup : libgomp-4.4.7-3.el6.i686 16/19
Cleanup : glibc-common-2.12-1.107.el6.i686 17/19
Cleanup : glibc-2.12-1.107.el6.i686 18/19
Cleanup : libgcc-4.4.7-3.el6.i686 19/19
Verifying : glibc-devel-2.12-1.132.el6_5.4.i686 1/19
Verifying : 1:perl-Pod-Simple-3.13-136.el6.i686 2/19
Verifying : gcc-4.4.7-4.el6.i686 3/19
Verifying : 1:perl-Module-Pluggable-3.90-136.el6.i686 4/19
Verifying : 3:perl-version-0.77-136.el6.i686 5/19
Verifying : libgcc-4.4.7-4.el6.i686 6/19
Verifying : 1:perl-Pod-Escapes-1.04-136.el6.i686 7/19
Verifying : glibc-2.12-1.132.el6_5.4.i686 8/19
Verifying : 4:perl-libs-5.10.1-136.el6.i686 9/19
Verifying : libgomp-4.4.7-4.el6.i686 10/19
Verifying : 4:perl-5.10.1-136.el6.i686 11/19
Verifying : glibc-headers-2.12-1.132.el6_5.4.i686 12/19
Verifying : cpp-4.4.7-4.el6.i686 13/19
Verifying : glibc-common-2.12-1.132.el6_5.4.i686 14/19
Verifying : kernel-headers-2.6.32-431.29.2.el6.i686 15/19
Verifying : libgomp-4.4.7-3.el6.i686 16/19
Verifying : libgcc-4.4.7-3.el6.i686 17/19
Verifying : glibc-2.12-1.107.el6.i686 18/19
Verifying : glibc-common-2.12-1.107.el6.i686 19/19
Installed:
gcc.i686 0:4.4.7-4.el6 perl.i686 4:5.10.1-136.el6
Dependency Installed:
cpp.i686 0:4.4.7-4.el6
glibc-devel.i686 0:2.12-1.132.el6_5.4
glibc-headers.i686 0:2.12-1.132.el6_5.4
kernel-headers.i686 0:2.6.32-431.29.2.el6
perl-Module-Pluggable.i686 1:3.90-136.el6
perl-Pod-Escapes.i686 1:1.04-136.el6
perl-Pod-Simple.i686 1:3.13-136.el6
perl-libs.i686 4:5.10.1-136.el6
perl-version.i686 3:0.77-136.el6
Dependency Updated:
glibc.i686 0:2.12-1.132.el6_5.4 glibc-common.i686 0:2.12-1.132.el6_5.4
libgcc.i686 0:4.4.7-4.el6 libgomp.i686 0:4.4.7-4.el6
Complete!
Copy iso file /usr/share/virtualbox/VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
Installing Virtualbox Guest Additions 4.3.18 - guest version is 4.3.16
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.3.18 Guest Additions for Linux............
VirtualBox Guest Additions installer
Removing installed version 4.3.16 of VirtualBox Guest Additions...
Copying additional installer modules ...
add_symlink: link file /usr/lib/VBoxGuestAdditions already exists
Installing additional modules ...
Removing existing VirtualBox non-DKMS kernel modules[ OK ]
Building the VirtualBox Guest Additions kernel modules
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.
The missing package can be probably installed with
yum install kernel-devel-2.6.32-358.el6.i686
Building the main Guest Additions module[FAILED]
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Doing non-kernel setup of the Guest Additions[ OK ]
Installing the Window System drivers
Could not find the X.Org or XFree86 Window System, skipping.
An error occurred during installation of VirtualBox Guest Additions 4.3.18. Some functionality may not work as intended.
In most cases it is OK that the "Window System drivers" installation failed.
Restarting VM to apply changes...
==> default: Attempting graceful shutdown of VM...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Remote connection disconnect. Retrying...
default: Warning: Remote connection disconnect. Retrying...
default: Warning: Remote connection disconnect. Retrying...
default: Warning: Remote connection disconnect. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
default: /vagrant => /home/ajford/.sandbox/cms_deploy
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "box-cutter/centos64-i386"
# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
# your network.
config.vm.network "public_network", ip:"192.168.1.201", bridge: "eth0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment