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

Vagrant base boxes don't exist #337

Open
zack-r-s opened this issue Nov 10, 2024 · 6 comments
Open

Vagrant base boxes don't exist #337

zack-r-s opened this issue Nov 10, 2024 · 6 comments

Comments

@zack-r-s
Copy link

The project is built successfully, however, the base box for default scenario does not exist. I have tried a few scenarios with the same result. Upon checking the URL: app.vagrantcloud is migrating to Hashicorp Cloud, and the Secgen HC repo has no versions available for any of the boxes, so there is nothing to download. I have also noted that the Bookworm base module references the Stretch box in the URL. IS there a current work-around or fix planned? It seems to me that all base images now need to be build from scratch locally.

Project files created.
Building project: /home/zacks/SecGen/projects/SecGen20241110_001057
Loading vagrant (up) in /home/zacks/SecGen/projects/SecGen20241110_001057
Bringing machine 'escalation' up with 'virtualbox' provider...
==> escalation: Box 'modules_bases_debian_stretch_server' could not be found. Attempting to find and install...
    escalation: Box Provider: virtualbox
    escalation: Box Version: >= 0
==> escalation: Box file was not detected as metadata. Adding it directly...
==> escalation: Adding box 'modules_bases_debian_stretch_server' (v0) for provider: virtualbox
    escalation: Downloading: https://app.vagrantup.com/secgen/boxes/debian_stretch_server/versions/1.3/providers/virtualbox.box
Download redirected to host: vagrantcloud.com
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

The requested URL returned error: 400 Bad Request
Non-zero exit status...
Error provisioning VMs, destroying VMs and exiting SecGen.
Loading vagrant (destroy -f) in /home/zacks/SecGen/projects/SecGen20241110_001057
==> escalation: VM not created. Moving on...
@cliffe
Copy link
Owner

cliffe commented Nov 10, 2024

Thanks for bringing this to our attention. I was under the impression that the migration was going to happen automatically. We'll look into this over the next week.

@zack-r-s
Copy link
Author

Great, thanks!

@krishh547
Copy link

The same issue here also, Download link for all secgen boxes not found. Can you please provide secgen base boxes

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'secgen/debian_stretch_server' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: 9.5.0
==> default: Loading metadata for box 'secgen/debian_stretch_server'
default: URL: https://vagrantcloud.com/api/v2/vagrant/secgen/debian_stretch_server
The box you're attempting to add doesn't support the provider
you requested. Please find an alternate box or use an alternate
provider. Double-check your requested provider to verify you didn't
simply misspell it.

If you're adding a box from HashiCorp's Vagrant Cloud, make sure the box is
released.

Name: secgen/debian_stretch_server
Address: https://vagrantcloud.com/api/v2/vagrant/secgen/debian_stretch_server
Requested provider: virtualbox (amd64)

Screenshot 2024-11-13 130158

@cliffe
Copy link
Owner

cliffe commented Nov 14, 2024

Hi @zack-r-s @krishh547 I've managed to recover our Vagrant base boxes. They should all be available again now.

However, keep in mind that we are aware that the Virtualbox bases are a bit out of date.

To get everything working great you should provision some VMs, and then for Debian Buster and Debian Bookworm bases it will actually pull down Debian Stretch (an older version) -- you then need to run updates on the base VM (open the VM up in your .vagrant directory) to bring it to the correct matching version of Debian. After that all the scenarios using those Debian versions (i.e. most of them) should work correctly.

@krishh547
Copy link

Thanks, Cliffe. Will try this.

@Luckytrang2010
Copy link

I have a similar problem here except I got a 501 instead of a 400:

Project files created.
Building project: /home/tux/Downloads/SecGen/secgen/projects/SecGen20241126_185100
Loading vagrant (up) in /home/tux/Downloads/SecGen/secgen/projects/SecGen20241126_185100
Bringing machine 'escalation' up with 'virtualbox' provider...
==> escalation: Box 'modules_bases_debian_stretch_server' could not be found. Attempting to find and install...
    escalation: Box Provider: virtualbox
    escalation: Box Version: >= 0
There was an error while downloading the metadata for this box.
The error message is shown below:

The requested URL returned error: 501
Non-zero exit status...
Error provisioning VMs, destroying VMs and exiting SecGen.
Loading vagrant (destroy -f) in /home/tux/Downloads/SecGen/secgen/projects/SecGen20241126_185100

Any updates on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants