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

Make build fail #136

Closed
zhenik opened this issue Jul 15, 2020 · 6 comments
Closed

Make build fail #136

zhenik opened this issue Jul 15, 2020 · 6 comments
Labels
stage/help-wanted Extra attention is needed type/bug Something isn't working

Comments

@zhenik
Copy link
Contributor

zhenik commented Jul 15, 2020

Steps to reproduce

It happens on new VDIs.
People faced with it: @AditiSharma77 and @nsinha17

Log

$ make build
(cd packer; rm -rf output-hashistack; packer build -force .)
vagrant.hashistack: output will be in this color.

==> vagrant.hashistack: Creating a Vagrantfile in the build directory...
==> vagrant.hashistack: Adding box using vagrant box add ...
    vagrant.hashistack: (this can take some time if we need to download the box)
==> vagrant.hashistack: Calling Vagrant Up (this can take some time)...
==> vagrant.hashistack: destroying Vagrant box...
==> vagrant.hashistack: Deleting output directory...
Build 'vagrant.hashistack' errored: strconv.Atoi: parsing "": invalid syntax

==> Some builds didn't complete successfully and had errors:
--> vagrant.hashistack: strconv.Atoi: parsing "": invalid syntax

==> Builds finished but no artifacts were created.
Makefile:8: recipe for target 'build' failed
make: *** [build] Error 1
@zhenik zhenik added type/bug Something isn't working stage/help-wanted Extra attention is needed labels Jul 15, 2020
@zhenik
Copy link
Contributor Author

zhenik commented Jul 15, 2020

hashicorp/packer#9564

@zhenik
Copy link
Contributor Author

zhenik commented Jul 16, 2020

Further investigation

--debug flag of vagrant cli, shows

2020/07/15 11:13:19 packer-builder-vagrant plugin: [vagrant driver] stderr: Stderr: VBoxManage: error: VT-x is not available (VERR_VMX_NO_VMX)

After installation of vboxmanage could not find provider, (provider VirtualBox was installed but not loaded).
The reason was that VDI has not enabled virtualization

Check virtualisation

lscpu -> verify that virtualisation is enabled.

@pdmthorsrud
Copy link
Contributor

pdmthorsrud commented Jul 17, 2020

Seems like this won't be a problem on MacOS. Searching for a way to enable virtualisation I get this page that suggests it should be enabled by default. I'll update the README to include info about virtualization

@pdmthorsrud
Copy link
Contributor

@zhenik Can we close this issue, considering this is not something we can fix?

@zhenik
Copy link
Contributor Author

zhenik commented Jul 17, 2020

@zhenik Can we close this issue, considering this is not something we can fix?

@AditiSharma77 could follow this thread, please.

@AditiSharma77
Copy link

I think we can close this issue . Agree #139

@zhenik zhenik closed this as completed Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage/help-wanted Extra attention is needed type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants