[Libguestfs] vmx+ssh conversion failure -- read failed: would block

Richard W.M. Jones rjones at redhat.com
Tue May 22 17:40:42 UTC 2018


On Tue, May 22, 2018 at 04:33:02PM +0200, Tomáš Golembiovský wrote:
> Hi,
> 
> I noticed some issues with the ssh transport mode where the virt-v2v
> would fail because of issue with libssh2. I see a lot of following
> errors before the conversion terminates:
> 
> > commandrvf: /usr/sbin/update-initramfs -v -c -k 4.9.0-4-amd64
> > read failed: would block (libssh2 error code: -37, sftp error code: 0)
> > /usr/sbin/mkinitramfs: 265: /usr/sbin/mkinitramfs: dirname: Exec format error
> 
> Full log attached. The command used to run the conversion was:
> 
> > '/usr/bin/virt-v2v' '-v' '-x' 'ssh://root@x.x.x.x/vmfs/volumes/datastore/tg-mini/tg-mini.vmx' '-of' 'raw' '--bridge' 'ovirtmgmt' '-i' 'vmx' '-it' 'ssh' '-o' 'rhv-upload' '-oc' 'https://ovirt-engine42.kvm/ovirt-engine/api' '-os' 'data' '-op' '/tmp/tmpAEJ9LA.v2v' '-oo' 'rhv-cafile=/etc/pki/vdsm/certs/cacert.pem' '-oo' 'rhv-cluster=Default' '-oo' 'rhv-direct' '-oa' 'sparse' '--bridge' 'VM Network:ovirtmgmt' '--bridge' 'TG_Network:testnet'
> 
> Is this bug in qemu or are we simply using it wrong?

Bug in qemu.

We really need Pino's libssh(1) qemu driver too :-/

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v




More information about the Libguestfs mailing list