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 deploy saarctf servers #1

Open
holiday25 opened this issue Aug 29, 2024 · 4 comments
Open

Cannot deploy saarctf servers #1

holiday25 opened this issue Aug 29, 2024 · 4 comments

Comments

@holiday25
Copy link

a lot error with versions of packages and not full readme, and we do not know from what do we need start , and which version of vb, packer and packer plugin do we need to install to work it correctly

@holiday25
Copy link
Author

can u provide full guide how to deploy it

@MarkusBauer MarkusBauer changed the title Cannot deploy saaar-ctf srevers Cannot deploy saaar-ctf servers Sep 2, 2024
@MarkusBauer MarkusBauer changed the title Cannot deploy saaar-ctf servers Cannot deploy saarctf servers Sep 2, 2024
@MarkusBauer
Copy link
Owner

I just pushed our updates from last year's iteration, which includes new server setup / infrastructure files based on Ansible and Packer.
The new maintainers also decided to use libvirt instead of virtualbox this time, you might have more luck with that. Not sure if and in which state the old virtualbox approach survived.

I'm not aware of any specific versions we require for the build process. I use packer v1.11.2 and ansible 2.16.10, but any non-ancient version should work. Plugin versions should be fixed in the .hcl files.

From a quick look, documentation seems to be a bit behind with the recent changes. From memory, the necessary steps are:

  • create yourself a config .git and configure a CTF (first half of the documentation should still be valid)
  • create a global-variables.pkrvars.hcl (start from example-global-variables.pkrvars.hcl)
  • run the 4 packer build commands from main README
  • configure a network and start VMs (here you'll have to adapt the virtualbox instructions, until we have more docs)

Hope this helps you
Best
Markus

@holiday25
Copy link
Author

hey thanks for update but u remove debian folder and i wanted to deploy it locally not in hcloud, so can u remove depeendency on hcloud token

@MarkusBauer
Copy link
Owner

The debian folder is not necessary anymore, because libvirt provides pre-installed debian images. Just leave the hcloud_token empty, default is local deployment.

I also updated parts of the documentation. The build instructions on the main readme should work now, and here's some light documentation on how to deploy a test setup: https://github.com/MarkusBauer/saarctf-servers/blob/master/libvirt-test-setup/README.md

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

2 participants