[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libguestfs
Subject:    Re: [Libguestfs] [PATCH v2 0/3] rhv-upload: Support import to qcow2 disk
From:       Nir Soffer <nsoffer () redhat ! com>
Date:       2019-11-27 22:03:38
Message-ID: CAMRbyysgXF1P8S5uZ6KpPTjZDNohw9AVdN_-kj0KeER8wwFN9g () mail ! gmail ! com
[Download RAW message or body]

I pushed this series as:
https://github.com/libguestfs/virt-v2v/commit/48455a9185543bd6273fa881184caa10f01b606f


On Tue, Nov 26, 2019 at 5:07 AM Nir Soffer <nirsof@gmail.com> wrote:
> 
> Add support for qcow2 disk format, enabled by imageio NBD backend in RHV 4.3.
> To use this feature manually, you can run virt-v2v with "-of qcow2".
> 
> Here is example run:
> 
> Source disk:
> 
> $ qemu-img info /var/tmp/fedora-30.img
> image: /var/tmp/fedora-30.img
> file format: raw
> virtual size: 6 GiB (6442450944 bytes)
> disk size: 1.15 GiB
> 
> virt-v2v:
> 
> $ ./run virt-v2v \
> -v \
> -i disk /var/tmp/fedora-30.img \
> -o rhv-upload \
> -oc https://engine/ovirt-engine/api \
> -op /var/tmp/engine-password \
> -on v2v \
> -os nfs1-export2 \
> -of qcow2 \
> -oa sparse \
> -oo rhv-cafile=/etc/pki/vdsm/certs/cacert.pem \
> -oo rhv-cluster=fc30 \
> -oo rhv-direct=true
> 
> ...
> [  71.2] Copying disk 1/1 to qemu URI json:{ "file.driver": "nbd", "file.path": \
> "/home/nsoffer/src/virt-v2v/tmp/rhvupload.6EmoNE/nbdkit0.sock", "file.export": "/" \
> } (qcow2) overlay file: /home/nsoffer/src/virt-v2v/tmp/v2vovl7fefa6.qcow2
> overlay device name: sda
> overlay virtual disk size: 6442450944
> overlay source qemu URI: /var/tmp/fedora-30.img
> target estimated size: 2456662831
> target actual size: None
> 
> target file: [qemu] json:{ "file.driver": "nbd", "file.path": \
> "/home/nsoffer/src/virt-v2v/tmp/rhvupload.6EmoNE/nbdkit0.sock", "file.export": "/" \
> } target format: qcow2
> ...
> qemu-img 'convert' '-p' '-n' '-f' 'qcow2' '-O' 'raw' '-S' '64k' \
> '/home/nsoffer/src/virt-v2v/tmp/v2vovl7fefa6.qcow2' 'json:{ "file.driver": "nbd", \
> "file.path": "/home/nsoffer/src/virt-v2v/tmp/rhvupload.6EmoNE/nbdkit0.sock", \
>                 "file.export": "/" }'
> ...
> 
> Target disk:
> 
> $ qemu-img info /rhev/data-center/82a445b6-b5e0-43c3-b761-cc6ef972e163/55255570-983a \
> -4d82-907a-19b964abf7ed/images/f5325b5a-22e4-4a80-ad15-f68378c42dde/ab4587de-3ddf-4178-8cc0-1a09449c970d
>                 
> image: /rhev/data-center/82a445b6-b5e0-43c3-b761-cc6ef972e163/55255570-983a-4d82-907 \
> a-19b964abf7ed/images/f5325b5a-22e4-4a80-ad15-f68378c42dde/ab4587de-3ddf-4178-8cc0-1a09449c970d
>  file format: qcow2
> virtual size: 6 GiB (6442450944 bytes)
> disk size: 1.17 GiB
> cluster_size: 65536
> Format specific information:
> compat: 1.1
> lazy refcounts: false
> refcount bits: 16
> corrupt: false
> 
> Nir Soffer (3):
> rhv-upload: Log params for easier debugging
> v2v: Add output#tranfer_format method
> rhv-upload: Support qcow2 disk format
> 
> v2v/output_rhv_upload.ml |  7 ++++---
> v2v/rhv-upload-plugin.py | 20 ++++++++++++++++++++
> v2v/types.ml             |  1 +
> v2v/types.mli            |  4 ++++
> v2v/v2v.ml               |  2 +-
> 5 files changed, 30 insertions(+), 4 deletions(-)
> 
> --
> 2.21.0
> 


_______________________________________________
Libguestfs mailing list
Libguestfs@redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic