Comments (11)
It could be the guest additions. I just updated the box to use Guest Additions 5.1.14.
Either upgrade VirtualBox to 5.1.14, or try installing vagrant plugin install vagrant-vbguest
.
from packer-centos-7.
I ran into this same issue and this related issue has a solution using a FixGuestAdditions ruby class in the Vagrantfile to correct the kernel-devel
that causes this problem to occur.
from packer-centos-7.
@njappboy - Did that solution fix the problem for you?
from packer-centos-7.
@geerlingguy Installing vagrant-vbguest solved my problem. But it is of course nicer to have it working out of the box so that you don't have to add plugins to the installation list (Vagrant + Virtualbox).
from packer-centos-7.
Awesome, and yeah, it would be nice to not have to install that plugin—however it is impossible for me to identify the version of VirtualBox installed and make the right box version get downloaded. Since the share requires the Guest Additions, and every new version of VirtualBox potentially breaks the older Guest Additions, the best solution is to (a) always update to the newest box version and VirtualBox, and (b) have the vagrant-vbguest
plugin installed (just to be safe).
from packer-centos-7.
Thanks for the information..i was facing the same issue and it solved my problem too.
from packer-centos-7.
Installing plugin didn't solve the problem for me. I did updated everything to latest version.
OS: Windows 10 Enterprise 10.0.16299 (Build 16299)
Virtual Box: 5.2.12 r122591 (Qt5.6.2)
Vagrant: 2.1.2
Plugin: vagrant-vbguest (0.15.2)
Vagrantfile Sync Folder Config
config.vm.synced_folder "vagrant_data", "/vagrant_data"
Output from vagrant up
command (copying relevant part only):
==> default: Rsyncing folder: /cygdrive/c/Users/XXX/Documents/XXX/Vagrant/centos-7-ansible/ => /vagrant
==> default: Mounting shared folders...
default: /vagrant_data => C:/Users/XXX/Documents/XXX/Vagrant/centos-7-ansible/vagrant_data
Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:
mount -t vboxsf -o uid=1000,gid=1000 vagrant_data /vagrant_data
The error output from the command was:
/sbin/mount.vboxsf: mounting failed with the error: No such device
Please suggest solution.
from packer-centos-7.
Thank you. vagrant plugin install vagrant-vbguest
worked for me.
from packer-centos-7.
Also please try updating to the latest box version (try vagrant box update
) if you're using the geerlingguy/centos7
box.
from packer-centos-7.
vagrant plugin install vagrant-vbguest it's worked for me
from packer-centos-7.
Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:
mount -t vboxsf -o uid=1000,gid=1000 vagrant /vagrant
The error output from the command was:
In some cases useful info is found in syslog - try
dmesg | tail or so.
home@home-PC MINGW64 /c/vagrant
$ vagrant box update ubuntu/xenial64
The machine with the name 'ubuntu/xenial64' was not found configured for
this Vagrant environment.
home@home-PC MINGW64 /c/vagrant
$ vagrant box update db
==> db: Checking for updates to 'ubuntu/xenial64'
db: Latest installed version: 20181114.0.0
db: Version constraints:
db: Provider: virtualbox
==> db: Box 'ubuntu/xenial64' (v20181114.0.0) is running the latest version.
home@home-PC MINGW64 /c/vagrant
$
======================
Issue not resolved on xenial64
from packer-centos-7.
Related Issues (20)
- ERROR! Unexpected Exception: (setuptools 0.9.8 (/usr/lib/python2.7/site-packages), Requirement.parse('setuptools>=11.3')) HOT 1
- ssh hangs on centos7 version 1.1.4 HOT 2
- Unable to vagrant up the new box HOT 1
- Timeout issue of SSH HOT 2
- Add cifs-utils package HOT 5
- `ansible up` == default: Warning: Connection timeout. Retrying... HOT 8
- Feature Request: Make this libVirt compatible HOT 3
- Can't mount native share shared directory HOT 13
- VBoxGuestAdditions-5.1.20 in geerlingguy/centos7 v 1.2.1 has a broken symbolic link to mount.vboxsf. Unable to mount local filesystem into VM. HOT 8
- A source of Ansible packages for RHEL/CentOS will change soon HOT 3
- Trouble with Remote Connection Disconnect... HOT 1
- Add 'Hyper-V' Builder HOT 1
- CentOS 7.4 (1708) is here - update the image!
- Warning: Authentication failure. Retrying... HOT 6
- Update for CentOS 7.4, push new box with VirtualBox 5.2.10 Guest Additions HOT 3
- vagrantu up crashes with "vboxsf is not available" on Windows 10 HOT 1
- Fetch cert with https HOT 1
- Upgrade to Virtualbox Guest Additions 6.0 HOT 2
- NAT interface have same IP address on all virtualbox machine HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packer-centos-7.