On Thu, Jan 17, 2019 at 4:53 PM Gianluca Cecchi <gianluca.cecchi@gmail.com> wrote:
Hello,
I have two different oVirt 4.2 environments and I want to migrate some big VMs from one to another. 
I'm not able to detach and attach the block based domain where are the disks of source.
And I cannot use export domain functionality.

you can export them to ova on some device that can later be mounted to the destination environment.
this is similar to the export domain functionality - but you didn't specify why the export domain functionality is not applicable for you.
 
But the 2 environments, both hosts and engines, are able to communicate.

in this case, you can optimize the above with [1] - export the vm as ova on one of the hosts that is installed with the ovirt-sdk and upload the ova from that host to the destination environment.
 
Can I use in some way the import Virtual Machine functionality with the "KVM(via Libvirt)" source type?

I don't think it is possible - you'll need the VM to be configured but not running on the host (in this case, the engine asks vdsm to destroy the vm).
and anyway I wouldn't do that - it is targeted for importing from foreign environments. one of the side effects is that you'll lose the oVirt-specific configuration of the vm.

Or is there (eventually via command line) a way to use virt-v2v in this case?

virt-v2v is just an overkill for this scenario.

[1] https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/upload_ova_as_vm.py
 
Thanks,
Gianluca
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/XIVXJW2WURWX6HDG3VM5DMOCRHNYHCZ2/