-
Notifications
You must be signed in to change notification settings - Fork 49
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
Run custom box using mech #45
Comments
I haven’t tried this too much, but I think you need to give it the name as well (during init). Create a new directory and inside it do: mech init windows_2008_r2 /some/path/to/windows_2008_r2_vmware Please let me know if this works. |
Hi, I have attempted this. I can say that this does not work, even with the --name option. Simply put, the same output occurs:
And for without the --name option,
Here is the generated Mechfile (ran without --name):
|
You should use See https://github.com/mechboxes/mech/blob/master/mech/mech.py#L206 for syntax or use |
It appears there is an issue with the
But a vmx file IS there.
|
It looks like this should be working from a glance at this function, but I haven't fully stepped through it yet. https://github.com/mechboxes/mech/blob/master/mech/utils.py#L324 |
OK, it looks like the This was under Python 3.6.8 on Ubuntu 18.04 (using Pyenv to manage versions but that shouldn't matter in this case). |
Urrggggh, got the box added, but had to supply a path to the box again when doing |
Looks like this project is currently lacking any unit or integration tests which makes trying to troubleshoot a game of cat and mouse and quite likely to lead to unintended side effects if any changes are made to how things work. I was really excited about having a Python alternative to Vagrant that doesn't cost a bunch of money, but not having any tests makes it very hard to recommend or even to try to contribute because I'll have no idea what I'm breaking when I try to fix things. |
So it looks like the trouble is related to local |
@espoelstra Do you have a pull request for this issue . I would try it :) . It seems that there is an issue with some freebsd images . I can't import them . Than I started to build my own box , but now I can't add it .... . |
Hi,
I have created .box using packer and i have stored it on my local system. How can use it using mech
error what i am getting.
$ mech init windows_2008_r2_vmware.box
Initializing mech
A
Mechfile
has been initialized and placed in this directory. Youare now ready to
mech up
your first virtual environment!$ mech up
Provided box name is not valid
Loading metadata for box 'windows_2008_r2_vmware'
Bad response from HashiCorp's Vagrant Cloud API: 404 Client Error: Not Found for url: https://app.vagrantup.com/windows_2008_r2_vmware/boxes/boxes
$ mech start
Provided box name is not valid
Loading metadata for box 'windows_2008_r2_vmware'
Bad response from HashiCorp's Vagrant Cloud API: 404 Client Error: Not Found for url: https://app.vagrantup.com/windows_2008_r2_vmware/boxes/boxes
The text was updated successfully, but these errors were encountered: