Exporting VM to xva using 'xe' command:
Importing .xva file to VM using 'xe' command:
#xe vm-import filename=/mnt/Export/<name of ova.xml> \\It imports the VM into default SR (Storage Repository) and returns uuid of imported VM on success.
#xe vm-import filename=/mnt/Export/<name of ova.xml> \\It imports the VM into default SR (Storage Repository) and returns uuid of imported VM on success.
Note: If multiple xenserver are in a pool, it selects default shared SR. To import into SR other than default one, execute following commands:
#xe sr-list \\To display list of Storage Repository and its details including uuid
#xe vm-import filename=/mnt/Export/<name of xva> force=true sr-uuid=<uuid of desitination SR> preserve=true \\Preserve=true preserves the original MAC address of the VM.
Note: To check md5 checksum of exported/downloaded file before importing: http://www.thomas-krenn.com/en/wiki/Using_Md5sum_und_sha1sum_for_Checking_Downloaded_Files
No comments:
Post a Comment