Tomáš Golembiovský
2018-May-22 14:33 UTC
[Libguestfs] vmx+ssh conversion failure -- read failed: would block
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 errorFull 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? Tomas -- Tomáš Golembiovský <tgolembi@redhat.com>
Richard W.M. Jones
2018-May-22 17:40 UTC
Re: [Libguestfs] vmx+ssh conversion failure -- read failed: would block
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
Reasonably Related Threads
- [PATCH] v2v, p2v: rename rhvm network to ovirtmgmt (RHBZ#1429491)
- libguestfs error: bridge 'virbr0' not found
- Installing from source (git, hg) on a fresh debian box
- Virtio: 32bit CentOS 6.4 on VirtualBox to oVirt on Fedora 19 64bit via virt-v2v
- [PATCH] v2v: Fix parsing of OVA files and documentation for --network and --bridge (RHBZ#1559027).