This code enables the export of a VM from RHEV to another format. In this scenario, you might not have your entire hybrid cloud managed by CloudForms and you need to move your VM from RHEV to another virtual infrastructure or cloud. This automate code…
- Exports the virtual machine
- Converts it to an OVA for RHEV, vmdk for VMware, or Qcow2 for OpenStack.
- Creates a folder in the export storage domain share based on the user name logged into CloudForms
- Places the exported VM in that folder
- Deletes the VM from the export storage domain
Note: This requires CFME 5.3 or better.
Note2: You must install qemu-img on your CloudForms appliance
Note3: This code mounts the export storage domain as NFS
###Obtain Automate Code
- Clone repository
- Compress the POC folder as a ZIP archive
###Integration
- Install and configure CloudForms
- Login
- Navigate to “Automate” —> Import/Export
- Click browse
- Navigate to the zipped archive
- Upload the archive
- Navigate to “Automate” —> “Explorer”
- Ensure the POC domain is enabled
- Navigate to “Automate” —> “Customization” and the “Buttons” accordionan on the left
- Create a button group named “Export” under “VM and Instance”
- Create three buttons
a. “Export for RHEV” —> System/Process/Request Request—>Export
b. “Export for VMware” —> System/Process/Request Request—>ExportVmdk
c. “Export for OpenStack” —> System/Process/Request Request—>ExportQcow2