Hi, I am trying to convert from esx server to local directory a VM names CSB, Its build from source 77b371b18b6a7ad37105a595931514f542a04396 When running: LIBGUESTFS_BACKEND=direct ./run ./v2v/virt-v2v -ic "esx://root@10.35.5.45/?no_verify=1" -o local -of raw -os /tmp/v2v CSB I get the following: --------------------------------------------------------------------------- [ 0.0] Opening the source -i libvirt -ic esx://root@10.35.5.45/?no_verify=1 CSB Enter root's password for 10.35.5.45: Enter host password for user 'root': [ 4.0] Creating an overlay to protect the source from being modified qemu-img: /tmp/v2vovl2305ba.qcow2: Could not open 'json: { "file.cookie" : "vmware_soap_session=\"52d44642-3451-51db-dc36-7621bbc387bd\"", "file.sslverify" : "off", "file.driver" : "https", "file.url" : "https://10.35.5.45/folder/CSB/CSB-flat.vmdk?dcPath=ha-datacenter&dsName=datastore1", "file.timeout" : 60 }': Unknown driver 'https': No such file or directory virt-v2v: error: qemu-img command failed, see earlier errors If reporting bugs, run virt-v2v with debugging enabled and include the complete output: virt-v2v -v -x [...] --------------------------------------------------------------------------- As you can see first I am propmt twice for roots password, I am able to connect with the same uri via 'vish -c' cli. Thanks, Shahar Havivi.
On Tue, Sep 16, 2014 at 04:04:02PM +0300, Shahar Havivi wrote:> Hi, > > I am trying to convert from esx server to local directory a VM names CSB, > Its build from source 77b371b18b6a7ad37105a595931514f542a04396 > > When running: > LIBGUESTFS_BACKEND=direct ./run ./v2v/virt-v2v -ic "esx://root@10.35.5.45/?no_verify=1" -o local -of raw -os /tmp/v2v CSB > > I get the following: > --------------------------------------------------------------------------- > [ 0.0] Opening the source -i libvirt -ic esx://root@10.35.5.45/?no_verify=1 CSB > Enter root's password for 10.35.5.45: > Enter host password for user 'root': > [ 4.0] Creating an overlay to protect the source from being modified > qemu-img: /tmp/v2vovl2305ba.qcow2: Could not open 'json: { "file.cookie" : "vmware_soap_session=\"52d44642-3451-51db-dc36-7621bbc387bd\"", "file.sslverify" : "off", "file.driver" : "https", "file.url" : "https://10.35.5.45/folder/CSB/CSB-flat.vmdk?dcPath=ha-datacenter&dsName=datastore1", "file.timeout" : 60 }': Unknown driver 'https': No such file or directory > virt-v2v: error: qemu-img command failed, see earlier errorsThis error happens because you need to patch qemu-kvm-rhev. The patches aren't in our qemu-kvm-rhev yet (see rhvirt-patches for current status), but I have a patched version of qemu here: https://www.redhat.com/archives/libguestfs/2014-May/msg00090.html> If reporting bugs, run virt-v2v with debugging enabled and include the > complete output: > > virt-v2v -v -x [...] > --------------------------------------------------------------------------- > > > As you can see first I am propmt twice for roots password,Yes, known bug, of sorts. It's documented in the manual that it will ask for the password twice. We can't really fix it because libvirt doesn't talk to everyone else. 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
On 16.09.14 14:21, Richard W.M. Jones wrote:> On Tue, Sep 16, 2014 at 04:04:02PM +0300, Shahar Havivi wrote: > > Hi, > > > > I am trying to convert from esx server to local directory a VM names CSB, > > Its build from source 77b371b18b6a7ad37105a595931514f542a04396 > > > > When running: > > LIBGUESTFS_BACKEND=direct ./run ./v2v/virt-v2v -ic "esx://root@10.35.5.45/?no_verify=1" -o local -of raw -os /tmp/v2v CSB > > > > I get the following: > > --------------------------------------------------------------------------- > > [ 0.0] Opening the source -i libvirt -ic esx://root@10.35.5.45/?no_verify=1 CSB > > Enter root's password for 10.35.5.45: > > Enter host password for user 'root': > > [ 4.0] Creating an overlay to protect the source from being modified > > qemu-img: /tmp/v2vovl2305ba.qcow2: Could not open 'json: { "file.cookie" : "vmware_soap_session=\"52d44642-3451-51db-dc36-7621bbc387bd\"", "file.sslverify" : "off", "file.driver" : "https", "file.url" : "https://10.35.5.45/folder/CSB/CSB-flat.vmdk?dcPath=ha-datacenter&dsName=datastore1", "file.timeout" : 60 }': Unknown driver 'https': No such file or directory > > virt-v2v: error: qemu-img command failed, see earlier errors > > This error happens because you need to patch qemu-kvm-rhev. The > patches aren't in our qemu-kvm-rhev yet (see rhvirt-patches for > current status), but I have a patched version of qemu here: > > https://www.redhat.com/archives/libguestfs/2014-May/msg00090.htmlI am using upstream qemu while using this local variables: export PATH=/home/shahar/git/qemu:$PATH export LIBGUESTFS_HV=/home/shahar/git/qemu/x86_64-softmmu/qemu-system-x86_64 Is that sufficient?> > > If reporting bugs, run virt-v2v with debugging enabled and include the > > complete output: > > > > virt-v2v -v -x [...] > > --------------------------------------------------------------------------- > > > > > > As you can see first I am propmt twice for roots password, > > Yes, known bug, of sorts. It's documented in the manual that it will > ask for the password twice. We can't really fix it because libvirt > doesn't talk to everyone else. > > 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