This script streamlines the installation and configuration of the Cyber Dojo virtual environment using Vagrant and libvirt on Fedora-based systems.
Features
- Automated Setup: Handles installation of necessary packages (Git, Ansible, QEMU/KVM, libvirt, etc.).
- Vagrant Integration: Clones the Cyber Dojo repository, installs Vagrant plugins (vagrant-libvirt, vagrant-hostmanager), and launches the virtual environment.
- Error Handling: Includes basic error checks to identify potential issues during the setup process.
Prerequisites
- Fedora-based System: The script is primarily designed and tested on Fedora Linux. It may work on other distributions, but some adjustments might be needed.
- Root Privileges: The script requires root access (sudo) to install packages and manage system services.
- KVM/libvirt: Ensure that your system has KVM (Kernel-based Virtual Machine) and libvirt virtualization platform installed and configured.
Installation
- Download:
- Make Executable: Give the script execution permissions:
chmod +x deploy_cyber_dojo.sh
- Run as Root: Execute the script with root privileges:
sudo ./deploy_cyber_dojo.sh
- Update variables: Custom vars are configured in ansible inventory folder under all.yml
- Generate custom enviorment: Run generate_company.py in the creation folder to generate custom environment
Opnsense firewall will have local port forwarding vm_config.vm.network "forwarded_port", guest: 443, host: 9443
Contributing
Contributions are welcome!
Acknowledgments