This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revisionBoth sides next revision |
home_server:home_server_setup:kvm [2023-07-29 Sat wk30 15:08] – [KVM Offline Backup] baumkp | home_server:home_server_setup:kvm [2023-07-29 Sat wk30 15:25] – [KVM Offline Backup] baumkp |
---|
<fc #ff0000>Note this only works on VMs that are shut down</fc> | <fc #ff0000>Note this only works on VMs that are shut down</fc> |
-''sudo virsh list --all'' to list all KVM virtual machines. | -''sudo virsh list --all'' to list all KVM virtual machines. |
-''sudo virsh dumpxml VM_name | grep -i "source file"'' to list the VM source file location noted in the VM XML file. | -''%%sudo virsh dumpxml VM_name | grep -i "source file"%%'' to list the VM source file location noted in the VM XML file. |
-''sudo virsh dumpxml vm-name > /path/to/xm_file.xml'' to archive/backup the VM XML definition file. | -''sudo virsh dumpxml vm-name > /path/to/xm_file.xml'' to archive/backup the VM XML definition file. |
-''sudo cp -p /working/path/VM_image.qcow2 /path/to/'' to archive/move the VM file. | -''sudo cp -p /working/path/VM_image.qcow2 /path/to/'' to archive/move the VM file. |