Code Monkey home page Code Monkey logo

Comments (11)

geerlingguy avatar geerlingguy commented on June 13, 2024 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.

njappboy avatar njappboy commented on June 13, 2024

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.

geerlingguy avatar geerlingguy commented on June 13, 2024

@njappboy - Did that solution fix the problem for you?

from packer-centos-7.

kjartab avatar kjartab commented on June 13, 2024

@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.

geerlingguy avatar geerlingguy commented on June 13, 2024

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.

biman9 avatar biman9 commented on June 13, 2024

Thanks for the information..i was facing the same issue and it solved my problem too.

from packer-centos-7.

goforgold avatar goforgold commented on June 13, 2024

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.

layer67tech avatar layer67tech commented on June 13, 2024

Thank you. vagrant plugin install vagrant-vbguest worked for me.

from packer-centos-7.

geerlingguy avatar geerlingguy commented on June 13, 2024

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.

sivakrishnaa avatar sivakrishnaa commented on June 13, 2024

vagrant plugin install vagrant-vbguest it's worked for me

from packer-centos-7.

sivakrishnaa avatar sivakrishnaa commented on June 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.