On Fri, Jul 27, 2018 at 4:28 PM, Luca 'remix_tj' Lorenzetto < lorenzetto.l...@gmail.com> wrote:
> Hello, > > i migrated a vm from plain kvm to ovirt fc storage domain by creating > an empty disk of the required size and using qemu-img for converting > from the image file to the device. > > Worked well. > > Luca > > Thanks for the hint Lorenzo! In my case both source and target are plain qemu/kvm environments basically managed with virt-manager/virsh The source image: [root@skull01 ~]# qemu-img info /images/w7/w7.img image: /images/w7/w7.img file format: raw virtual size: 49G (52613349376 bytes) disk size: 49G [root@skull01 ~]# It was simpler than expected, after creating from inside virt-manager of the new environment a new disk (so it translates into a new lv) of 50Gb in size, I have now: [root@skull01 ~]# lvs data/w7 LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert w7 data -wi-ao---- 50.00g [root@skull01 ~]# And then: [root@skull01 ~]# time qemu-img convert -f raw -O raw /images/w7/w7.img /dev/data/w7 real 13m27.934s user 0m5.312s sys 0m51.342s [root@skull01 ~]# At the end of the convert I defined the new domain with virsh define w7.xml using as input the xml file of the original system and adjusted the new obtained xml file with "virsh edit w7" Mainly the differences between new and original xml files become: 42,44c43,45 < <disk type='block' device='disk'> < <driver name='qemu' type='raw' cache='none' io='native'/> < <source dev='/dev/data/w7'/> --- > <disk type='file' device='disk'> > <driver name='qemu' type='raw' cache='none'/> > <source file='/var/lib/libvirt/images/w7.img'/> 72c73 < <source network='nat'/> --- > <source network='default'/> The target environment didn't complain after starting the guest, apart from asking to confirm the new network to be a home one or a public one... not understood exactly why, but I'm on the go now Thanks again, Gianluca
_______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@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/UJDOJVZNLULOSB5XOJQ6QFVP2XO4VZQA/