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

Cannot add local box in WSL #9492

Closed
Crisfole opened this issue Feb 20, 2018 · 4 comments
Closed

Cannot add local box in WSL #9492

Crisfole opened this issue Feb 20, 2018 · 4 comments

Comments

@Crisfole
Copy link

After finally packing up a box for use on windows in the WSL I went to add the box and got a bunch of red text. It worked from git bash, so I do not have debug output for you.

Vagrant version

$ vagrant -v
Vagrant 2.0.2
$ vagrant.exe -v
Vagrant 2.0.2

Host operating system

Windows 10 up to date as of 2/20

Guest operating system

N/A

Vagrantfile

N/A

Debug output

Unavailable:

$ vagrant box add --name client/ubuntu-14.04--hyperv build/ubuntu-14.04-amd64.box
==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'natera/ubuntu-14.04--hyperv' (v0) for provider:
    box: Unpacking necessary files from: file:///c/Users/chris/client/build/ubuntu-14.04-amd64.box
The box failed to unpackage properly. Please verify that the box
file you're trying to add is not corrupted and that enough disk space
is available and then try again.
The output from attempting to unpackage (if any):

x Vagrantfile
x Virtual Hard Disks\\packer-hyperv-iso.vhdx: Can't create 'Virtual Hard Disks\\packer-hyperv-iso.vhdx'
x Virtual Machines\\BF34C03F-FAAE-474B-A46D-187DBE7620BC.VMRS: Can't create 'Virtual Machines\\BF34C03F-FAAE-474B-A46D-187DBE7620BC.VMRS'
x Virtual Machines\\BF34C03F-FAAE-474B-A46D-187DBE7620BC.vmcx: Can't create 'Virtual Machines\\BF34C03F-FAAE-474B-A46D-187DBE7620BC.vmcx'
x Virtual Machines\\BF34C03F-FAAE-474B-A46D-187DBE7620BC.vmgs: Can't create 'Virtual Machines\\BF34C03F-FAAE-474B-A46D-187DBE7620BC.vmgs'
x Virtual Machines\\box.xml: Can't create 'Virtual Machines\\box.xml'
x metadata.json
bsdtar: Error exit delayed from previous errors.

Expected behavior

The box gets added.

Actual behavior

Angry messages about failing to create folders with windows paths.

Steps to reproduce

  1. Execute command from output above with hyperv box packaged by Packer (also on WSL via symlink, which works great except colors)
@briancain briancain added the WSL label Feb 20, 2018
@chrisroberts
Copy link
Member

Hi there. Is the problem that the box cannot be added when you are running with WSL, but can be added when you are running outside the WSL? Can you also please run the box add command you show in the description with the --debug flag and provide a gist of the output?

Thanks!

@Crisfole
Copy link
Author

Correct, I added the box from git bash. I can't really re execute the code since I reset to factory...

@briancain
Copy link
Member

If you can reproduce this in the future, please open a new issue and provide debug output. Otherwise I'm going to close this. Thanks!

@ghost
Copy link

ghost commented Mar 30, 2020

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.

@ghost ghost locked and limited conversation to collaborators Mar 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants