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

Parallels 10 & 1.2.2, Failed to mount folders #135

Closed
pulkitjalan opened this issue Aug 26, 2014 · 6 comments
Closed

Parallels 10 & 1.2.2, Failed to mount folders #135

pulkitjalan opened this issue Aug 26, 2014 · 6 comments

Comments

@pulkitjalan
Copy link

I have just upgraded to parallels 10 and the plugin to 1.2.2. The VMs don't start anymore. It did install Parallels Tools and reboot the vm before getting this error:

Failed to mount folders in Linux guest. This is usually because
the "prl_fs" file system is not available. Please verify that
Parallels Tools are properly installed in the guest and
can work properly. If so, the VM reboot can solve a problem.
The command attempted was:

mount -t prl_fs -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3`,dmode=775,fmode=755 var_www_html /var/www/html
mount -t prl_fs -o uid=`id -u vagrant`,gid=`id -g vagrant`,dmode=775,fmode=755 var_www_html /var/www/html

I also tried 1.2.0 with parallels 9 & 10, and im getting the same error with a slightly different message ("vboxsf" instead of "prl_fs").

I have got it working for now, running version 1.1.0 of the plugin with parallels 9 & 10.

Any idea what might be causing this issue?

(Using ubuntu 14.04 (https://vagrantcloud.com/parallels/ubuntu-14.04))

@legal90
Copy link
Collaborator

legal90 commented Aug 26, 2014

You have set unsupported mount options to the synced_folder line in your Vagrantfile.
dmode, fmode - these options are specific Virtualbox, so Parallels Shared Folders doesn't support them.

It is working fine with previous provider version because there was another approach for synced folders. mount_options from Vagrantfile were just ignored and folders were mounted with default options.

So, having the latest provider version (>= 1.2.0), I suggest you to use this configuration section to define synced folder:

config.vm.provider "parallels" do |v, override|
  override.vm.synced_folder "<path_on_your_host>", "/var/www/html", mount_options: ["share"]
end

"share" is Parallels-specific option, meaning that each guest's user will have the same permissions as your host's user while accessing to this shared folder.
Also, please note that chown is not supporting for Parallels Shared folders yet [https://github.com//issues/103#issuecomment-51479461]

P.s. I defiantly should fill the documentation with all mount options supported by prl_fs. Will try to do it soon.

@pulkitjalan
Copy link
Author

ah, I didn't realise those were virtual box specific. Thanks, that works now!

legal90 added a commit to legal90/puphpet that referenced this issue Sep 9, 2014
Mount options "dmode" and "fmode" are unavailable for "prl_fs"
filesystem. Use mount option "share", which provides liberal access
permissions to shared folders.

Related issue:
Parallels/vagrant-parallels#135
@mysterlune
Copy link

Thanks @legal90. Your example override works great.

For those coming along in the wake (like myself), note that "config" is misspelled as "convig" in the current example. No biggie, just make sure to change to the correct spelling or there'll be a big ugly stack output waiting for you when you run your Vagrantfile ;)

@legal90
Copy link
Collaborator

legal90 commented Jul 30, 2015

Oops, Sorry for that mistake 😦
Fixed.

@mysterlune
Copy link

no problem. thanks!

@hablutzel1
Copy link

I got around this by manually reinstalling the Parallels Tools for Linux as indicated in https://download.parallels.com/desktop/v12/docs/en_US/Parallels%20Desktop%20User%27s%20Guide/32791.htm

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

4 participants