A python script(on c7host) called vmarchiver.py that will make a complete backup of a single VM the
Question:
A python script(on c7host) called vmarchiver.py that will make a complete backup of a single VM the user specifies. The specific details of how it works are below: When this script is run, it will present the user with list of the names of all VMs on the current machine (Note: The --name option for the virsh list command will prove helpful for this), and ask the user to enter then name of the VM they would like to archive. If the answer the user provides does not match the name of one of the VMs present on the current machine, the script will display a message to that effect, and prompt the user to enter the name of the VM they would like to archive. It will keep doing this until the user enters a valid name. Once the user enters the name of a VM, the script will create a tar archive that contains that VM's xml and qcow2 files, compressed using xzip. Note, you must obtain the location of the qcow2 image file from the xml file. Do not just assume it is in /var/lib/libvirt/images, or that it is named after the VM. The archive that is created should be named after the VM and the current date (e.g. vm1-20220131), and should use an extension appropriate to the compression type.
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill