Nicolas Ecarnot
2014-Nov-19 11:58 UTC
Re: [Libguestfs] virt-v2v: Died at /usr/bin/virt-p2v-server line 411
Le 19/11/2014 10:47, Richard W.M. Jones a écrit :> On Wed, Nov 19, 2014 at 09:08:36AM +0100, Nicolas Ecarnot wrote: >> I tried to use the virt-p2v-make-disk, but it failed to connect to a >> libvirt socket (obviously, there is none running in this VM.) > > To avoid libvirt problems, do: > > export LIBGUESTFS_BACKEND=direct > > Why don't you use the ISO? Burn it onto a CD and boot it. > > Rich. >OK Richard, I promised I would wait a day before getting back to this issue, but you know how to tease a sysadmin ;) Well, I did boot your iso file as a CD, and now it is booting and I get the very last version of virt-p2v (Wow, lots of additionnal options : great!). I can confirm the ssh test connexion is useful and always working. I like the new fields I can fill to (try to) direct the flow towards a real oVirt/RHEV NFS storage domain. But it is now failing with an error message telling it can not connect to the local socket /var/run/libvirt/libvirt-sock. I guess this is related to your previous answer : On 19/11/2014 10:47, Richard W.M. Jones wrote : > On Wed, Nov 19, 2014 at 09:08:36AM +0100, Nicolas Ecarnot wrote: >> I tried to use the virt-p2v-make-disk, but it failed to connect to a >> libvirt socket (obviously, there is none running in this VM.) > > To avoid libvirt problems, do: > > export LIBGUESTFS_BACKEND=direct But in this use case, I don't know where to set this variable? I'd be glad to set it on the source machine, before running the virt-p2v GUI. But the usual alt-F1 or alt-F2 does not give me a shell prompt anymore. Instead, a quickly blinking message shows it is trying to (systemctl) start the service and fails. I'd be glad to set it in the conversion server, but where and when? In case this could be useful, here is below the versions implied : - virt-v2v: libguestfs 1.28.1 (x86_64) - virt-p2v-20141119 At this point, I guess I have something to do on the conversion server...? -- Nicolas Ecarnot
Richard W.M. Jones
2014-Nov-19 12:03 UTC
Re: [Libguestfs] virt-v2v: Died at /usr/bin/virt-p2v-server line 411
On Wed, Nov 19, 2014 at 12:58:11PM +0100, Nicolas Ecarnot wrote:> But it is now failing with an error message telling it can not > connect to the local socket /var/run/libvirt/libvirt-sock.This is basically a libvirt bug that you have to solve separately. I'm guessing that basic commands such as `virsh nodeinfo' also fail. I don't know what the reason for that will be, but you can ask the libvirt users list to help you fix it.> > To avoid libvirt problems, do: > > > > export LIBGUESTFS_BACKEND=direct > > But in this use case, I don't know where to set this variable?I believe it will work if you put this into root's .bash_profile or .bashrc (ie. /root/.bash_profile). Given the amount of trouble that libvirt causes us, it's a reasonable feature request to add a tick box or something to allow the backend to be adjustable from the GUI. See the FAQ for how to file feature requests. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-builder.1.html
Nicolas Ecarnot
2014-Nov-19 13:41 UTC
Re: [Libguestfs] virt-v2v: Died at /usr/bin/virt-p2v-server line 411
Le 19/11/2014 13:03, Richard W.M. Jones a écrit :> On Wed, Nov 19, 2014 at 12:58:11PM +0100, Nicolas Ecarnot wrote: >> But it is now failing with an error message telling it can not >> connect to the local socket /var/run/libvirt/libvirt-sock. > > This is basically a libvirt bug that you have to solve separately. > I'm guessing that basic commands such as `virsh nodeinfo' also fail. > > I don't know what the reason for that will be, but you can ask the > libvirt users list to help you fix it. > >>> To avoid libvirt problems, do: >>> >>> export LIBGUESTFS_BACKEND=direct >> >> But in this use case, I don't know where to set this variable? > > I believe it will work if you put this into root's .bash_profile or > .bashrc (ie. /root/.bash_profile).PROGRESS ! I added the setting above into the root profile, and now, things are beginning to move. The first server I have to convert is a production server, so I can not easily halt it to run many test conversion. So these days I'm trying to convert a VM (and I don't know if this is possible though I don't see why it wouldn't be). When trying to p2v an Oracle Linux 7.0 VM, it ran very verbosely then failed saying it was not a kind of OS it knows how to convert. When trying to p2v a old windows XP VM, it ran the same long way then failed telling that no root device was found in this operating system image. As I read in detail the very long log, I saw different things failing, and amongst them, the issue telling that the 36:36 permissions on the NFS export share will prevent the import into RHEV. I don't know if it is an issue at this point. Anyway, I don't see any image coming into this nfs subtree at present. Asap, I will try to run a P2V on the windows 2003 server source - the one I'm struggling for for weeks, and let you know. Stay tuned. PS : Thank you Richard for your support. -- Nicolas Ecarnot
Reasonably Related Threads
- Re: virt-v2v: Died at /usr/bin/virt-p2v-server line 411
- Re: virt-v2v: Died at /usr/bin/virt-p2v-server line 411
- Re: virt-v2v: Died at /usr/bin/virt-p2v-server line 411
- Re: virt-v2v: Died at /usr/bin/virt-p2v-server line 411
- Re: virt-v2v: Died at /usr/bin/virt-p2v-server line 411