When trying to export a virtual machine via the RHEV (Red Hat Enterprise Virtualization), either via the API or via the RHEVM admin console, you might encounter the error message “Cannot export VM. VM with the same identifier already exists”.
This is thrown when you are trying to export a VM to a location which already have the VM there, perhaps an older copy of the VM.
If you are doing this via the RHEVM admin console, simply select “force override”, to overwrite any existing VM there.
Now, if this is the API, then you must specify this via the action command, via an exclusive command:
<action><storage_domain><name>*STORAGE DOMAIN TO EXPORT TO*</name></storage_domain><exclusive>true</exclusive><discard_snapshots>false</discard_snapshots></action>
The documentation says that you should use overwrite, but this is wrong/a bug, and is confirmed by Red Hat.
There is also another reason which can trigger this, and which is in my eyes, a bug. If the VM already exist on the export domain, but with another name, then you will get this error no matter what. The only work around i know about so far is to make sure that the names are correct both places. I have contacted Red Hat to get this checked up.