To use a custom configuration create a tfvars file, e.g. custom.tfvars
.
Make sure to use the uri (libvirt_uri
) to connect to qemu and a
network bridge named br0
does exist.
The machines
contains all VMs to be created. The main
VM
is mandatory, because all other nodes connect to it.
For all configuration options see variables.tf
@todo: Add example tvars file.
Apply using defined variables in custom.tfvars
.
Delete all VMs and destroy its resources.
tofu destroy -var-file="custom.tfvars" -auto-approve
virsh console <vm-name>
To exit virsh console after logout: ctrl
+alt
+6
Username: k3s
Password: password