Install VM with GraalVM on KVM using Terraform.
Edit terraform.tfvars
file. Especially important fields to be edited are:
vm_ssh_private_key_location
- Location of SSH private key that will be used to SSH into VMvm_image_location
- Location of and image that will be installed on VMvm_ram
- Amount of RAM that will be available to VMvm_cpu
- Number of vCPU that will be available to VM
To create VM use the following command where main.tf
file is located:
terraform apply
When asked enter yes
to confirm execution.
After creation ssh.sh
file will be created for easier access to VM. Use it with command:
./ssh.sh
To destroy all created resources use command:
terraform destroy
And when asked enter yes
to confirm destruction.