Virsh: Moving a VM image to a new machine. 
1.- rsync .img image file to new machine.
2.- Output the xml definition file in the source machine:
[acool@oldmachine ~]$sudo virsh dumpxml VMNAME > VMNAME.xml

3.- Adjust path of .img file image in xml file as needed.
4.- On the destination machine define the new VM:
[acool@newmachine ~]$sudo virsh define VMNAME.xml

5.- Start VM.

Big shout-out to dyasny.

[ view entry ] ( 1352 views )   |  print article

<<First <Back | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | Next> Last>>


2025 By Angel Cool