Skip to content

Instantly share code, notes, and snippets.

@SamEureka
Last active May 17, 2022 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SamEureka/f337c9a1263bcf9958f396d8d3ca1427 to your computer and use it in GitHub Desktop.
Save SamEureka/f337c9a1263bcf9958f396d8d3ca1427 to your computer and use it in GitHub Desktop.
Migrate Libvirt VM using virsh migrate

Get the from virsh list It might be diferent from the display name in virt-manager.

virsh migrate --auto-converge --copy-storage-all --persistent --verbose <name> qemu+ssh://<new host>/system
  • Use the --undefinesource flag to delete the origial VM after migration.
  • Both new and old host need to have ssh root access setup with keys. They also need to resolve in DNS if host names are used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment