Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest Vagrantfile does not work with OS 10.10.3, Laravel 5 etc. #10

Open
avophile opened this issue May 20, 2015 · 1 comment
Open

Comments

@avophile
Copy link

I could not Vagrant Up with the latest Vagrantfile. It failed while provisioning Chef with the following message:

==> default: Thank you for installing Chef!
==> default: Running provisioner: shell...
default: Running: inline script
==> default: stdin: is not a tty
==> default: Running provisioner: shell...
default: Running: inline script
==> default: stdin: is not a tty
==> default: /sbin/mount.vboxsf: mounting failed with the error
==> default: : Protocol error
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

@amanshr72
Copy link

The "Protocol error" suggests there might be an issue with the compatibility or configuration of VirtualBox Guest Additions.

  • Update VirtualBox Guest Additions
    sudo apt-get update
    sudo apt-get upgrade virtualbox-guest-additions-iso

  • Enable NFS (Network File System) as an Alternative
    Vagrant.configure("2") do |config|
    config.vm.synced_folder ".", "/vagrant", type: "nfs"
    # Add other configuration settings...
    end

  • Make sure NFS is installed on your host machine. On Ubuntu, If not installed then run
    sudo apt-get install nfs-kernel-server

  • Now Check VirtualBox Guest Additions Version
    modinfo vboxguest | grep version

  • Reprovision Vagrant
    vagrant reload --provision

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants