
--_0a5fb4ab-b306-4e63-b96f-31b58ad0d763_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I installed ovirt on a machine that was already hosting KVM virtual machine= s. I am now trying to migrate those VMs over to RHEV format=2C but I am rec= eiving SASL authentication errors using virt-v2v. I am not being prompted for credentials upon running the command: virt-v2v Windows7.xml -o rhev -os host.domain.net:/home/images --network ov= irtmgmt Windows7=0A= The error is: virt-v2v: Failed to connect to qemu:///system: libvirt error code: 45=2C me= ssage: authentication failed: Failed to step SASL negotiation: -7 (SASL(-7)= : invalid parameter supplied: Unexpectedly missing a prompt result)=0A= This has been driving me crazy all night. Does anyone know anything about t= his? = --_0a5fb4ab-b306-4e63-b96f-31b58ad0d763_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <html> <head> <style><!-- .hmmessage P { margin:0px=3B padding:0px } body.hmmessage { font-size: 12pt=3B font-family:Calibri } --></style></head> <body class=3D'hmmessage'><div dir=3D'ltr'><span style=3D"color: rgb(51=2C = 51=2C 51)=3B font-family: 'Helvetica Neue'=2C Helvetica=2C Arial=2C sans-se= rif=3B font-size: 15px=3B line-height: 20px=3B">I installed ovirt on a mach= ine that was already hosting KVM virtual machines. I am now trying to migra= te those VMs over to RHEV format=2C but I am receiving SASL authentication = errors using virt-v2v.</span><div><font color=3D"#333333" face=3D"Helvetica= Neue=2C Helvetica=2C Arial=2C sans-serif"><span style=3D"font-size: 15px= =3B line-height: 20px=3B"><br></span></font></div><div><span style=3D"color= : rgb(51=2C 51=2C 51)=3B font-family: 'Helvetica Neue'=2C Helvetica=2C Aria= l=2C sans-serif=3B font-size: 15px=3B line-height: 20px=3B">I am not being = prompted for credentials upon running the command:</span><font color=3D"#33= 3333" face=3D"Helvetica Neue=2C Helvetica=2C Arial=2C sans-serif"><span sty= le=3D"font-size: 15px=3B line-height: 20px=3B"><br></span></font><div><span= style=3D"color: rgb(51=2C 51=2C 51)=3B font-family: 'Helvetica Neue'=2C He= lvetica=2C Arial=2C sans-serif=3B font-size: 15px=3B line-height: 20px=3B">= <br></span></div><div><pre style=3D"margin-top: 0px=3B margin-bottom: 10px= =3B padding: 5px=3B border: 0px=3B font-size: 13px=3B vertical-align: basel= ine=3B overflow: auto=3B width: auto=3B max-height: 600px=3B font-family: C= onsolas=2C Menlo=2C Monaco=2C 'Lucida Console'=2C 'Liberation Mono'=2C 'Dej= aVu Sans Mono'=2C 'Bitstream Vera Sans Mono'=2C 'Courier New'=2C monospace= =2C serif=3B background-color: rgb(238=2C 238=2C 238)=3B word-wrap: normal= =3B color: rgb(51=2C 51=2C 51)=3B line-height: 20px=3B"><code style=3D"marg= in: 0px=3B padding: 0px=3B border: 0px=3B vertical-align: baseline=3B font-= family: Consolas=2C Menlo=2C Monaco=2C 'Lucida Console'=2C 'Liberation Mono= '=2C 'DejaVu Sans Mono'=2C 'Bitstream Vera Sans Mono'=2C 'Courier New'=2C m= onospace=2C serif=3B color: rgb(34=2C 34=2C 34)=3B">virt-v2v Windows7.xml -= o rhev -os host.domain.net:/home/images --network ovirtmgmt Windows7=0A= </code></pre></div><div><code style=3D"margin: 0px=3B padding: 0px=3B borde= r: 0px=3B vertical-align: baseline=3B font-family: Consolas=2C Menlo=2C Mon= aco=2C 'Lucida Console'=2C 'Liberation Mono'=2C 'DejaVu Sans Mono'=2C 'Bits= tream Vera Sans Mono'=2C 'Courier New'=2C monospace=2C serif=3B color: rgb(= 34=2C 34=2C 34)=3B"><br></code></div></div><div><code style=3D"margin: 0px= =3B padding: 0px=3B border: 0px=3B vertical-align: baseline=3B font-family:= Consolas=2C Menlo=2C Monaco=2C 'Lucida Console'=2C 'Liberation Mono'=2C 'D= ejaVu Sans Mono'=2C 'Bitstream Vera Sans Mono'=2C 'Courier New'=2C monospac= e=2C serif=3B color: rgb(34=2C 34=2C 34)=3B"><br></code></div><div><code st= yle=3D"margin: 0px=3B padding: 0px=3B border: 0px=3B vertical-align: baseli= ne=3B font-family: Consolas=2C Menlo=2C Monaco=2C 'Lucida Console'=2C 'Libe= ration Mono'=2C 'DejaVu Sans Mono'=2C 'Bitstream Vera Sans Mono'=2C 'Courie= r New'=2C monospace=2C serif=3B color: rgb(34=2C 34=2C 34)=3B"><span style= =3D"color: rgb(51=2C 51=2C 51)=3B font-family: 'Helvetica Neue'=2C Helvetic= a=2C Arial=2C sans-serif=3B font-size: 15px=3B line-height: 20px=3B">The er= ror is:</span></code></div><div><code style=3D"margin: 0px=3B padding: 0px= =3B border: 0px=3B vertical-align: baseline=3B font-family: Consolas=2C Men= lo=2C Monaco=2C 'Lucida Console'=2C 'Liberation Mono'=2C 'DejaVu Sans Mono'= =2C 'Bitstream Vera Sans Mono'=2C 'Courier New'=2C monospace=2C serif=3B co= lor: rgb(34=2C 34=2C 34)=3B"><span style=3D"color: rgb(51=2C 51=2C 51)=3B f= ont-family: 'Helvetica Neue'=2C Helvetica=2C Arial=2C sans-serif=3B font-si= ze: 15px=3B line-height: 20px=3B"><br></span></code></div><div><code style= =3D"margin: 0px=3B padding: 0px=3B border: 0px=3B vertical-align: baseline= =3B font-family: Consolas=2C Menlo=2C Monaco=2C 'Lucida Console'=2C 'Libera= tion Mono'=2C 'DejaVu Sans Mono'=2C 'Bitstream Vera Sans Mono'=2C 'Courier = New'=2C monospace=2C serif=3B color: rgb(34=2C 34=2C 34)=3B"><pre style=3D"= margin-top: 0px=3B margin-bottom: 10px=3B padding: 5px=3B border: 0px=3B fo= nt-size: 13px=3B vertical-align: baseline=3B overflow: auto=3B width: auto= =3B max-height: 600px=3B font-family: Consolas=2C Menlo=2C Monaco=2C 'Lucid= a Console'=2C 'Liberation Mono'=2C 'DejaVu Sans Mono'=2C 'Bitstream Vera Sa= ns Mono'=2C 'Courier New'=2C monospace=2C serif=3B background-color: rgb(23= 8=2C 238=2C 238)=3B word-wrap: normal=3B color: rgb(51=2C 51=2C 51)=3B line= -height: 20px=3B"><code style=3D"margin: 0px=3B padding: 0px=3B border: 0px= =3B vertical-align: baseline=3B font-family: Consolas=2C Menlo=2C Monaco=2C= 'Lucida Console'=2C 'Liberation Mono'=2C 'DejaVu Sans Mono'=2C 'Bitstream = Vera Sans Mono'=2C 'Courier New'=2C monospace=2C serif=3B color: rgb(34=2C = 34=2C 34)=3B">virt-v2v: Failed to connect to qemu:///system: libvirt error = code: 45=2C message: authentication failed: Failed to step SASL negotiation= : -7 (SASL(-7): invalid parameter supplied: Unexpectedly missing a prompt r= esult)=0A= </code></pre><div><code style=3D"margin: 0px=3B padding: 0px=3B border: 0px= =3B vertical-align: baseline=3B font-family: Consolas=2C Menlo=2C Monaco=2C= 'Lucida Console'=2C 'Liberation Mono'=2C 'DejaVu Sans Mono'=2C 'Bitstream = Vera Sans Mono'=2C 'Courier New'=2C monospace=2C serif=3B color: rgb(34=2C = 34=2C 34)=3B"><br></code></div><div><code style=3D"margin: 0px=3B padding: = 0px=3B border: 0px=3B vertical-align: baseline=3B font-family: Consolas=2C = Menlo=2C Monaco=2C 'Lucida Console'=2C 'Liberation Mono'=2C 'DejaVu Sans Mo= no'=2C 'Bitstream Vera Sans Mono'=2C 'Courier New'=2C monospace=2C serif=3B= color: rgb(34=2C 34=2C 34)=3B"><br></code></div><div><code style=3D"margin= : 0px=3B padding: 0px=3B border: 0px=3B vertical-align: baseline=3B font-fa= mily: Consolas=2C Menlo=2C Monaco=2C 'Lucida Console'=2C 'Liberation Mono'= =2C 'DejaVu Sans Mono'=2C 'Bitstream Vera Sans Mono'=2C 'Courier New'=2C mo= nospace=2C serif=3B color: rgb(34=2C 34=2C 34)=3B"><span style=3D"color: rg= b(51=2C 51=2C 51)=3B font-family: 'Helvetica Neue'=2C Helvetica=2C Arial=2C= sans-serif=3B font-size: 15px=3B line-height: 20px=3B">This has been drivi= ng me crazy all night. Does anyone know anything about this?</span></code><= /div></code></div> </div></body> </html>= --_0a5fb4ab-b306-4e63-b96f-31b58ad0d763_--

On Sat, Nov 30, 2013 at 7:08 PM, Maurice James wrote:
I installed ovirt on a machine that was already hosting KVM virtual machines. I am now trying to migrate those VMs over to RHEV format, but I am receiving SASL authentication errors using virt-v2v.
I am not being prompted for credentials upon running the command:
virt-v2v Windows7.xml -o rhev -os host.domain.net:/home/images --network ovirtmgmt Windows7
The error is:
virt-v2v: Failed to connect to qemu:///system: libvirt error code: 45, message: authentication failed: Failed to step SASL negotiation: -7 (SASL(-7): invalid parameter supplied: Unexpectedly missing a prompt result)
This has been driving me crazy all night. Does anyone know anything about this?
Hi, I made some tests as I could need something similar in the near future... This is what I found from my tests You need authentication for libvirt after oVirt configuration took place on your server. So you can create a user for libvirt and try then the commands with that user credentials. It worked for me in the past to try to start a VM directly from libvirt on an all-in-one system to debug problems. So: # saslpasswd2 -a libvirt virshuser Password: <define a password> probably the disks of your pre-existing vm should be put with these permissions chown vdsm.kvm /var/lib/libvirt/images/testvm.img chmod 0660 /var/lib/libvirt/images/testvm.img try to see eventually if you can start your vm now: # virsh start testvm I have an AIO install with fedora 19 and oVirt 3.3.1 stable Actually I have not a kvm infra but I created one fake in the sense that I created a storage pool and a disk inside it [root@tekkaman ~]# cat pool.xml <pool type="dir"> <name>virtimages</name> <target> <path>/var/lib/libvirt/images</path> </target> </pool> virsh pool-create pool.xml I copied an image (fedora19) inside it and refreshed the pool virsh pool-refresh virtimages virsh vol-list --pool virtimages [root@tekkaman ~]# virsh vol-list --pool virtimages Please enter your authentication name: virshuser Please enter your password: Name Path ----------------------------------------- testvm.img /var/lib/libvirt/images/testvm.img I define a basic VM with test.img as a disk virsh define test.xml [root@tekkaman ~]# virsh list --all Please enter your authentication name: virshuser Please enter your password: Id Name State ---------------------------------------------------- 2 f19 running - test shut off NOTE: the f19 above is a fedora 19 vm running inside oVirt itself, while test is the VM just created with virsh commands Now, even if I don't now if it is still required in f19 export LIBGUESTFS_ATTACH_METHOD=appliance and also if you want to debug virt-v2v (used to debug, see below my workaround due to a permission error otherwise...) export LIBGUESTFS_DEBUG=1 Now you can run virt-v2v -ic qemu://virshuser@tekkaman.localdomain.local/system -o rhev -os tekkaman.localdomain.local:/data/export_domain --network ovirtmgmt test tekkaman.localdomain.local is my server from which I run the comamnds that is both oVirt AIO (so engine+hypervisor) and now is also source for the KVM vm I want to put into oVirt export domain NOTE: the command will not ask a password.. donna if it is a bug or not... During virt-v2v, the export domain is mounted locally under /tmp/<random_path> (eg. /tmp/f6X_Ea809r/) For some reason the permissions are not ok for virt-v2v and give an error of permission denied attempting to open the disk. You cannot directly change the permissions under /tmp, you have to do on the local path of the export domain. In my case it is on the very same server under /data/export_domain path SO I did these tricks below to the temporarily created dir to have virt-v2v able to complete. And now I see the imported VM under export domain 'VM import" sub-tab in webadmin page [root@tekkaman ~]# ll /data/export_domain/44327985-44c5-4e17-9396-1469b191fafc/ total 32 drwxr-xr-x. 2 vdsm kvm 4096 May 1 2013 dom_md drwxr-xr-x. 4 vdsm kvm 4096 May 1 2013 images drwxr-xr-x. 4 vdsm kvm 4096 May 1 2013 master drwx------. 3 vdsm kvm 4096 Dec 1 00:33 v2v.ISfFuM4P root@tekkaman ~]# chmod 770 /data/export_domain/44327985-44c5-4e17-9396-1469b191fafc/v2v.ISfFuM4P/ [root@tekkaman ~]# ll /data/export_domain/44327985-44c5-4e17-9396-1469b191fafc/v2v.ISfFuM4P/ total 8 drwxr-xr-x. 2 vdsm kvm 4096 Dec 1 00:33 a7a38c80-2862-46a3-833a-93394d916c5d [root@tekkaman ~]# chmod 775 /data/export_domain/44327985-44c5-4e17-9396-1469b191fafc/v2v.ISfFuM4P/a7a38c80-2862-46a3-833a-93394d916c5d/ [root@tekkaman ~]# ll /data/export_domain/44327985-44c5-4e17-9396-1469b191fafc/v2v.ISfFuM4P/a7a38c80-2862-46a3-833a-93394d916c5d/ total 1912208 -rw-r--r--. 1 vdsm kvm 8589934592 Dec 1 00:33 2ada28ad-e98c-4ff8-afb2-280dcb72c1c4 [root@tekkaman ~]# chmod 664 /data/export_domain/44327985-44c5-4e17-9396-1469b191fafc/v2v.ISfFuM4P/a7a38c80-2862-46a3-833a-93394d916c5d/2ada28ad-e98c-4ff8-afb2-280dcb72c1c4 [root@tekkaman ~]# ll /data/export_domain/44327985-44c5-4e17-9396-1469b191fafc/v2v.ISfFuM4P/a7a38c80-2862-46a3-833a-93394d916c5d/ total 2301332 -rw-rw-r--. 1 vdsm kvm 8589934592 Dec 1 00:34 2ada28ad-e98c-4ff8-afb2-280dcb72c1c4 You have to do these steps during the initial phase when there is the copy of the image and you have the ==== progress bars.. HIH, Gianluca
participants (2)
-
Gianluca Cecchi
-
Maurice James