VM spinup using libvirt

2019, Oct 17    

2021-03-10 Update: see this blog post for another (and better?) way.

I usually have some base VMs to clone from when I create new VMs. This includes some tedious manual steps like resetting passwords and hostnames.

To make things easier for me, I create a spinup script. It is located on github.

Requirements:

  • Root access on the virtualization host
  • Routed access to the new machine from the current host.

If you have that, look at the readme file for usage info.