- tested on Linux
Install the following technology:
| Technology | URL to Download | Version |
|---|---|---|
| VirtualBox | https://www.virtualbox.org/wiki/Downloads | 5.2.34+ |
| Vagrant | https://www.vagrantup.com/downloads.html | 2.0.2+ |
| Vagrant Disk Plugin | https://github.com/sprotheroe/vagrant-disksize | 0.1.3+ |
- NOTE: 8GB RAM is required for the VM
-
In the project root directory:
cp vagrant-values.yaml-template vagrant-values.yaml -
Configure access to the OpenStack cloud.
-
Edit a vagrant-values.yaml file with the following variables using values obtained from the previous step.
# The URL of OpenStack Identity service API. osAuthUrl: <OS_AUTH_URL> # The ID of application credentials to authenticate at the OpenStack cloud platform. osApplicationCredentialId: <OS_APPLICATION_CREDENTIAL_ID> # The ID of application credentials secret to authenticate at the OpenStack cloud platform. osApplicationCredentialSecret: <OS_APPLICATION_CREDENTIAL_SECRET>
-
Configure access to the VM of the OpenStack cloud that has direct access to the virtual network dedicated to sandboxes (i.e.
Proxy Jump host).-
Obtain access to the VM, i.e.:
- hostname
- username
- passwordless SSH key
-
Edit an vagrant-values.yaml file with the following variables using values obtained from the previous step.
# The Proxy Jump host IP address or hostname. proxyHost: <hostname> # The name of the user on the Proxy Jump host. proxyUser: <username> # base64 -w0 encoded content of private SSL key used for communication with Proxy Jump host. proxyKey: <single-line-base64-passwordless-ssh-key>
-
Insert the content of the public part of the key to
~/.ssh/authorized_keysfile of the user, specified in the previous step on the VM (i.e.Proxy Jump) and put following line to sudoers, where user has value of proxyUser:user ALL=(ALL:ALL) NOPASSWD:ALL
-
-
Configure DNS servers accessible from Proxy Jump in vagrant-values.yaml
# The list of IP addresses to custom DNS servers. dnsNameServers:
-
Create and connect to the virtual machine.
$ vagrant box update $ vagrant up
-
Authenticate with default user credentials and use the services running on https://172.19.0.22/.
- Admin users: [crczp-admin]
- Regular users: [crczp-user, john.doe, jane.doe]
- Password for all of them: password
-
Add SB Definitions
-
demo-training
- URL:
https://github.com/cyberrangecz/library-demo-training.git - Revision:
master
- URL:
-
demo-training-adaptive
- URL:
https://github.com/cyberrangecz/library-demo-training-adaptive.git - Revision:
master
- URL:
-
junior-hacker
- URL:
https://github.com/cyberrangecz/library-junior-hacker.git - Revision:
master
- URL:
-
junior-hacker-adaptive
- URL:
https://github.com/cyberrangecz/library-junior-hacker-adaptive.git - Revision:
master
- URL:
-
locust-3302
- URL:
https://github.com/cyberrangecz/library-locust-3302.git - Revision:
master
- URL:
-
secret-laboratory
- URL:
https://github.com/cyberrangecz/library-secret-laboratory.git - Revision:
master
- URL:
-
-
Upload demo Training Definitions that can be found in the
training-definitions/directory.- Linear:
linear-training.json. - Adaptive:
adaptive-training.json.
- Linear: