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

"Failed to mount folders in Linux guest." Complains about "vboxsf" #65

Open
edwardtilley116 opened this issue Dec 7, 2024 · 2 comments

Comments

@edwardtilley116
Copy link

edwardtilley116 commented Dec 7, 2024

I (Apple M1 Pro (Sonora)) have brew installed qemu and done vagrant plugin install vagrant-qemu

I have enabled smb sharing in System Preferences.

My Vagrantfile is

Vagrant.configure("2") do |config|
  config.vm.box = "perk/ubuntu-2204-arm64"
  config.vm.synced_folder ".", "/vagrant", type: "smb", smb_host: "192.168.4.22"
  config.vm.provider "qemu" do |qe|
    qe.ssh_port = "50031" # change ssh port as needed
  end 
end

When calling vagrant up --provider=qemu

I get

SNIP
==> default: Machine booted and ready!
==> default: Mounting SMB shared folders...
default: /Users/SNIP/vagrant => /vagrant
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 cifs -o sec=ntlmssp,nounix,noperm,credentials=/etc/smb_creds_vgt-8b7eb0a56e55a9f14bbaa7c9cd92a2d9-6ad5fdbcbf2eaa93bd62f92333a2e6e5,uid=1000,gid=1000,mfsymlinks,_netdev,nofail //192.168.4.22/vgt-8b7eb0a56e5
5a9f14bbaa7c9cd92a2d9-6ad5fdbcbf2eaa93bd62f92333a2e6e5 /vagrant

The error output from the last command was:

mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)

Let me know if there's any other information I can provide.

@edwardtilley116 edwardtilley116 changed the title Failed to create shared folder. Complains about "vboxsf" Failed to mount folders in Linux guest. Complains about "vboxsf" Dec 7, 2024
@edwardtilley116 edwardtilley116 changed the title Failed to mount folders in Linux guest. Complains about "vboxsf" "Failed to mount folders in Linux guest." Complains about "vboxsf" Dec 7, 2024
@ppggff
Copy link
Owner

ppggff commented Dec 9, 2024

Have you completed the steps in https://developer.hashicorp.com/vagrant/docs/synced-folders/smb ?
And enter the right user name and password when booting? (should be the user name and password of current mac user)

@edwardtilley116
Copy link
Author

Have you completed the steps in https://developer.hashicorp.com/vagrant/docs/synced-folders/smb ? And enter the right user name and password when booting? (should be the user name and password of current mac user)

Yes. I SMB file sharing is turned on in settings. And yes I am entering the correct password.

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