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
vagrant box add fails when ~/.vagrant.d/boxes is a symlink to an NTFS file system #11104
Comments
Hey there @PeterJCLaw - Can you confirm that the user used to run Vagrant has the proper permissions to copy something onto that file system? The error seems to be saying that it lacks permissions to move a file into the destination folder, which would be your NTFS file system. |
Yup, my user account has full access to the target NTFS partition, including write. (I'm assuming vagrant doesn't launch itself as another user or anything). I'm not surprised that the metadata write failed -- I often get warnings about that from other programs. The files' data usually seems just fine though. |
@PeterJCLaw - Does it work or behave differently if you change |
Apologies for the delay, I'd hoped to get to this this evening, but haven't. I'll try to test that tomorrow evening. For clarity though -- my current setup is that the |
Ok, so there are four scenarios:
These all fail to
(I've used a different box for testing as |
Nope, turns out I messed up the testing of the symlink case. All four cases fail with the same error. |
Hi. Attempting to use an NTFS mount from a linux host is not supported and is the root cause of the error you have encountered. This is because NTFS does not provide a POSIX complaint file system implementation. I am leaving this issue open as the error message generated in not useful or helpful for a user so we will fix that to properly rescue out and provide a better error message. Cheers! |
Vagrant version
Vagrantfile
Not sure it's going to be entirely relevant here; I was using a modified version of
https://github.com/PeterJCLaw/sr-server-puppet/blob/8e4a6639facd3f8b3143480a94c850d8582fa682/Vagrantfile which pointed at the
fedora/29-cloud-base
box rather than thefedora/28-cloud-base
image.Host operating system
Ubuntu 16.04 LTS
Expected behavior
Adding the box should succeed even though the
utime
of the newly added box was unable to be set.Actual behavior
Vagrant tried to set the
utime
of the newly added box, which errored, causing Vagrant to get into an inconsistent state regarding the box.Command outputs: https://gist.github.com/PeterJCLaw/9d89dd9de99c92f7c0c7d15b98590a6e
Note that
vagrant box list
shows the downloaded box as present even though it appears to be unusable byvagrant up
.Steps to reproduce
~/.vagrant.d/boxes
to be a symlink to a folder on a local NTFS partitionvagrant box add fedora/29-cloud-base
(I strongly suspect the actual box is immaterial)I realise this is a rather odd thing to do, though it seems unfortunate that
vagrant
is able to put itself into an inconsistent state over the lack of setting some metadata on the downloaded box.It's worth noting that as part of getting into this state I moved a number of existing boxes from my
~/.vagrant.d/boxes/
directory to the now-symlinked directory on the NTFS drive and vagrant had seemed completely happy with that for other operations (listing boxes, creating VMs from boxes).The text was updated successfully, but these errors were encountered: