With the right tools, you can automate such environments quite easily. For example, use Ansible to spin up the VMs and tear them down again after the training.
With some additional work around that, you can make sure that each instance gets a different IP address on the network.
Rough outline...