[ovirt-users] Re: [OT] transferring kvm raw mage from filesystem to lvm based
On Fri, Jul 27, 2018 at 6:37 PM Gianluca Cecchi wrote: > ... > > And then: > > [root@skull01 ~]# time qemu-img convert -f raw -O raw /images/w7/w7.img > /dev/data/w7 > When converting to raw format on block device, you should use -W option for up to 6.5x faster convert. See https://bugzilla.redhat.com/show_bug.cgi?id=1511891#c57 Nir > > real 13m27.934s > user 0m5.312s > sys 0m51.342s > [root@skull01 ~]# > ___ 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/OPLM2JEGPTWW36SQZG62XB6U6B3KNI3D/
[ovirt-users] Re: [OT] transferring kvm raw mage from filesystem to lvm based
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 < < < --- > > > 72c73 < --- > 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/
[ovirt-users] Re: [OT] transferring kvm raw mage from filesystem to lvm based
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 On Fri, Jul 27, 2018 at 4:22 PM Gianluca Cecchi wrote: > > Hello, > I have a windows 7 VM that is composed by a raw disk on filesystem on Fedora > 28. > I would like to transfer this VM to another environment, always based on same > version of Fedora 28, but where the storage is configured in virt-manager as > lvm based, so similar to what happens in oVirt block based storage domains. > I'm trying to figure how to transfer the image. > I presume I can create a new LV and then leave some bytes for the LVM header > into the created LV and then make a sort of dd with offset? > Anyone has any hint? > Thanks in advance, > 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/VDZ5R6HBNGOYVHMNWL4M6IMD5HGC22HO/ -- "E' assurdo impiegare gli uomini di intelligenza eccellente per fare calcoli che potrebbero essere affidati a chiunque se si usassero delle macchine" Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716) "Internet è la più grande biblioteca del mondo. Ma il problema è che i libri sono tutti sparsi sul pavimento" John Allen Paulos, Matematico (1945-vivente) Luca 'remix_tj' Lorenzetto, http://www.remixtj.net , ___ 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/I4F5MCTJG5F7FY4ATCW5NJQ3CXXQJ3CZ/