To copy a VM while it is still running:
- Create a snapshot
- Export as backup
- Import the backup
Create a Snapshot
- ssh into XenServer
- run xe vm-snapshot vm="VM Name" new-name-label="Name the snapshot"
- when it completes write down the UUID returned
- ssh into XenServer
- xe template-export template-uuid="UUID from step 3 above" filename="Name the .xva file"
- View progress in XenCenter
- ssh into XenServer
- xe vm-import filename="Name the .xva file to import" sr-uuid="SR to restore it to"
Use df -ha to view existing disks and available space
Use xe sr-list to find the sr-uuid needed in Import the Backup step 2.
No comments:
Post a Comment