On Mon, Mar 25, 2024 at 9:21 AM Shafi Mohammed <shafiontherise(a)gmail.com>
wrote:
Hi Guys ,
I am writing a tool to migrate VMs from KVM to Ovirt .
I created a storage domain and tried to expose it to NBD server to write
the data from the source Vm disk . But im facing a nbd permission issue .
Even a copy or write is restricted .
Actual Command
qemu-nbd -f qcow2 /rhev/data-center/mnt/192.168.108.27:
_storage/d62b04f8-973f-4168-9e69-1f334a4968b6/images/cd6b9fc4-ef8a-4f40-ac8d-f18d355223d0/d2a57e6f-029e-46cc-85f8-ce151d027dcb
*qemu-nbd: Failed to blk_new_open
'/rhev/data-center/mnt/192.168.108.27:_storage/d62b04f8-973f-4168-9e69-1f334a4968b6/images/cd6b9fc4-ef8a-4f40-ac8d-f18d355223d0/d2a57e6f-029e-46cc-85f8-ce151d027dcb':
Could not open
'/rhev/data-center/mnt/192.168.108.27:_storage/d62b04f8-973f-4168-9e69-1f334a4968b6/images/cd6b9fc4-ef8a-4f40-ac8d-f18d355223d0/d2a57e6f-029e-46cc-85f8-ce151d027dcb':
Permission denied *
Please suggest me if Ovirt has any API to open a disk from a
storage domain and write data to it
just out of curiosity, did you look at the built-in functionality of
importing VMs from KVM via Libvirt?
https://www.ovirt.org/develop/release-management/features/virt/KvmToOvirt...
_______________________________________________
Devel mailing list -- devel(a)ovirt.org
To unsubscribe send an email to devel-leave(a)ovirt.org
Privacy Statement:
https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct:
https://www.ovirt.org/community/about/community-guidelines/
List Archives:
https://lists.ovirt.org/archives/list/devel@ovirt.org/message/76KMPY2W7VP...