RHEV import to different datacenter
I exported a RHEL5 guest from a RHEV 3.0 datacenter, detached the export domain, attached the export domain to a second datacenter, activated, etc.
At that point, I would like to import the VM to the second datacenter, but I get an error about needing to delete the VM from the 1st datacenter.
Is there a workaround for cloning this VM into the second datacenter?
Responses
Hello,
I had the same issue, but did not get it solved. It is not possible to do under the same RHEVM,
because the UUID follows the VM. - You can do it, if datacenter 2 is managed by another RHEVM,
or you can delete the VM in datacenter 1 after you exported it to the new domain before you import to
datacenter 2 - (but that is a bit risky i think)
br,
Peter Calum
Haven't tried doing this (and I'm pretty sure there's more than a single location to be hacked), but even if it works, what you will receive is a kind of a splitbrain - the imported VM will have the same MAC/IP/etc as the existing one. You will need to either hack the exported VM defs and change all the unique attributes, or let RHEV deal with this, and clone the VM before you export it, delete the clone, and then import it.
I'm running into this exact same problem but with trying to import from an export domain that has been detached from one data center on one RHEVM and attached to another data center on an entirely different RHEVM. Has anyone had any success with this??
If you check the last comment on this thread you will get an unsupported way to achieve this. For a supported method, you have to explore any of the below options.
1 - Delete the source vm from the source DC (if possible) and then import it to new dc.
2- If #1 cannot be done. Create a template of the original vm in the original DC. Then create a new vm from that template. Export the new vm, remove it from source dc and import to destination dc.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
