-
Uses MongoDB to save the data for running VMS.
-
Performs ssh based on public/private key generated at the start of the script. We only have to enter password twice, i.e. once for saving the public key to the machine using ssh-copy-id and again during scp of image file to machine.
-
Gets physical machines from src/pm_file.
-
Gets Images from src/image_file.
-
Gets instance types from src/flavor_file.
-
Uses Libvirt to create VM's by first connecting to "qemu:user@ip/system", then defining XML of domain, creating domain.
-
Destroys VM using libvirt's, domain.destroy() and then undefines the xml by domain.undefine()