-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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 to unpack a large box #9555
Comments
Hi, @chrisroberts Chiming in as this has the I am experiencing the same issue with vagrant 2.0.3 (and 2.0.2). I suspect @barkingfoodog has already found the root cause - namely the embedded bsdtar failing to unpack the box properly. My box is a big fat Windows box (approx. 6Gb) that has been built locally with Packer. I can manually extract the box files (using the system tar utility) and run the VM successfully using If I manually extract the box files using the system tar utility to the required folder under This is the box directory after
... This is the box directory after manually extracting the contents of the box with
A As noted smaller boxes are unaffected by this bug and unpack successfully. |
Hey folks, some info from the linked packer issue. There was a bug in libarchive < v3.3.2. Not sure when this will make it out to osx, but as @barkingfoodog mentioned, either using gnutar or updating bsdtar to a newer version should solve this. libarchive/libarchive#880 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Vagrant version
Vagrant 2.0.2
Host operating system
macOS 10.11.6 and macOS 10.13.3
Guest operating system
macOS 10.11.6
Vagrantfile
Debug output
debug.log
Expected behavior
The machine is booted and accessible.
Actual behavior
An error occurs:
Contents of
/Users/administrator/.vagrant.d/boxes/suran-VAGRANTSLASH-macos1011/0/virtualbox/
:Steps to reproduce
vagrant up
Workaround
Use GNU tar.
brew install gnu-tar
sudo cp /usr/local/bin/gtar /opt/vagrant/embedded/bin/bsdtar
Notes
It appears the issue is related to the embedded
bsdtar
utility being unable to extract this box. The box was created with packer 1.2.1 on the same box using the macOS boxcutter template with a modifiedcmtool.sh
. The only modifications to this script are to pre-install homebrew and salt.Here is the output from using the embedded
bsdtar
utility to unpack the box:Here is the same output using GNU tar:
This is a recent problem and is not exhibited with a macOS 10.12 box built from the same templates. I suspect this error is to due to the size of the macOS 10.11 box growing from recent security updates.
This may be a packer issue, but the above workaround applies to vagrant, so I figured I'd start here.
The text was updated successfully, but these errors were encountered: