-
Notifications
You must be signed in to change notification settings - Fork 87
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
mount_options
in config.vm.synced_folder
error
#103
Comments
I was just about to create this issue. This started happening after this update I've noticed that its only if you try and mount the current folder config.vm.synced_folder "./", "/tmp/path", id: "vagrant-root" If you mount a folder further in it works fine such as config.vm.synced_folder "./test", "/tmp/test", id: "foo" This is killing me, I can't use the plugin anymore in this state because my application is in the root folder. Which is pretty much how most people use this I think. |
Just noticed that my root folder is not listed in /media/psf. I tried re-adding the share through the Parallels GUI interface but it just never appears in the share list no matter how many times I add it. I can add any other folder except the folder vagrant is operating out of. Funny thing was if I deleted all the other shared folder entries I could add the root folder. |
@troymccabe I think I may have had my issue and yours confused for the same thing, apologies if this is the case. You may want to look at this issue, I'm not sure but it could be related. |
@troymccabe
Yes, since this is a mount point, it is impossible to apply 'chown'/'chgrp' to this folder. I suggest, that you will get the same error using the VirtualBox shared folders or NFS type. |
@troymccabe Could you please describe your usage scenario of shared holders more detailed? Do you really need to have specified '775/664' permissions in your guest system? Now I'm going to revert changes related to #100 and return back the 'Shared folders via symlinks' approach. It means that your shared folders will be mounted with default options as before the '1.0.3' release:
|
I figured that was the case with those flags, so no surprise there -- thanks for the info on that. As far as the 775/664, that was necessary in Virtualbox for my application to write directories & files in them (prime example is a cache directory). Even with extremely liberal permissions on the host, the guest (in VirtualBox) would not be able to write the files to the mounted share. (http://stackoverflow.com/questions/18648547/laravel-4-permissions-on-a-vagrant-box-with-puppet & multiple other instances of this situation) For whether it would be usable or not, I found the offending statement in my puppet manifest. For some reason, it worked in VirtualBox, but not in Parallels. I'll rewrite that section to support either, but things seem to be working after knocking that section out (even writing cache dirs & whatnot). Thanks! |
Working great--thanks! |
Turned back an advanced synced folders for Linux, close to approach of VirtualBox provider: - Possibility to set mount options [GH-100] [GH-103] - Shared folders aren't missed after suspend/resume, [GH-102] is fixed - It is possible to share single folder to the some mount points, [GH-105] is fixed Changes related to Parallels Desktop 10 Closed Beta: - Port Forwarding feature added. SSH sessions are working through the forwarded port by default. - All Password Restrictions will be disabled while the `vagrant up` [GH-67] Bunch of refactoring
I've hit a wall again with placing my application in /var/www and sharing it as a synced folder. I've been trying with the 1.2.0.rc2 version as well as the current 1.1 version. I'm running an Ubuntu 14.04 machine. The issue seems to be that when I use something like /var/www for my app and I install apache the dkpg command when trying to install apache tries to touch things on /var/www and set ownership. Preparing to unpack .../apache2_2.4.7-1ubuntu4.1_amd64.deb ...
Unpacking apache2 (2.4.7-1ubuntu4.1) ...
dpkg: error processing archive /var/cache/apt/archives/apache2_2.4.7-1ubuntu4.1_amd64.deb (--unpack):
error setting ownership of `/var/www/html.dpkg-new': Operation not permitted
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing: In testing I tried to touch a file in /var/www and chown it to root but it fails $ sudo chown root:root test
chown: changing ownership of ‘test’: Operation not permitted I've tried both
and
Both with the same results. Is there no way to mount this where ownerships can be modified? |
@carcus88, it is so sad, but currently It was done especially to avoid ownership corruption for common cases of careless users. I understand your case and I will try to talk at Parallels about that, but now I suggest you to use NFS for this (with appropriate mount options):
|
nfs still does not allow setting of the owner. I wish this would have worked as I would much prefer parallels over virtualbox. |
@bgronek yeah it is a real shame and makes the entire product uncompetitive for this kind of problem. |
@paulecoyote You are wrong. If we're talking about NFS, then "chown" problem is not related to any endpoint product such as Parallels Desktop, VirtualBox or Vagrant. It is definitely specific to NFS protocol/filesystem and, in our case to their BSD implementation: 'exports' man for OS X. I'll try to explain the details... Since you're local host's files can be "chowned" only by your local "root" user, you should also map this root user with someone in the guest, if you want to allow him to "chown" your shared folders/files. But by default Vagrant configures NFS exports on the OS X host with these options: Parallels Shared Folders don't allow you to do anything with it, but you can workaround it with NFS:
|
Thanks for the input! I'll be sure to try this if I have to come back to ... owner: "www-data", group: "www-data", mount_options: I suppose these other options will lead to a greater chance of success at Thanks! On Sun, Oct 12, 2014 at 3:39 AM, Mikhail Zholobov notifications@github.com
|
UPDATE: In Parallels Desktop 10.1.2 it became possible to You can update PD by clicking on the top menu "Parallels Desktop -> Check for Updates...", either download and install the latest build by this link: http://www.parallels.com/directdownload/pd10/ |
@legal90 Do the updates in 10.1.2 make |
I'd like to reproduce it.
|
@legal90 my mistake—I am not getting permission errors from the guest VM. I'm running the parallels/boot2docker box and the chown problems are only occurring from within docker containers, so this is appears to be a docker issue (adding the |
@legal90
|
The Parallels Provider does not support `chown` (see Parallels/vagrant-parallels#103 (comment)), which `tar -x` (see fgrehm/vagrant-cachier#53 (comment)) and `npm install` need/run at one point or the other, if they are invoked as `root`. Following the approach from Varying-Vagrant-Vagrants#370 (comment), `tar` and `npm` can be run as the `vagrant` user, as untaring and npm are done in the user directory and don't require root permissions.
Admittedly, mounted volumes & sharing is not a strong suit of mine, but I've tried everything I can think of to get this working & have been unable to. I'd appreciate any assistance you can provide (or tell me if I'm missing something)
Issue details
When using VirtualBox as the provider, I need to provide mount_options as so:
[...rest of synced_folder config...], mount_options: ["dmode=775","fmode=664"]
When I attempt this using Parallels as the provider, I get the following:
When I remove
mount_options
, it goes through the mounting process fine, but fails on provision (this failure cascades into other provision actions):I've also tried
chown
ing &chmod
ing as the first item in the Puppet manifest, but still no go there either.Relevant info
OSX version: 10.9.2
Parallels version: 9.0.24217 rev 979618
Vagrant version: 1.5.1
Box url: https://vagrantcloud.com/parallels/ubuntu-12.04/version/1/provider/parallels.box
Synced folder config:
Provider config:
The text was updated successfully, but these errors were encountered: