[Libguestfs] virt-p2v migration

cmc iucounu at gmail.com
Fri Feb 3 19:53:05 UTC 2017


with regard to ssh timeouts on the conversion server, there weren't
any set, nor were there any timeout env variables. I could not see any
ssh drops in /var/log/messages, or anything in the vdsm log

Thanks

On Fri, Feb 3, 2017 at 7:29 PM, cmc <iucounu at gmail.com> wrote:
> Looking on our firewall, it will timeout inactive connections after 15
> minutes of inactivity. I'm guessing there is no keepalive in the
> control connections.
>
> Thanks,
>
> Cam
>
> On Wed, Feb 1, 2017 at 6:38 PM, cmc <iucounu at gmail.com> wrote:
>> Ok, thanks Rich, I will take a look and get back to you.
>>
>> On Wed, Feb 1, 2017 at 5:13 PM, Richard W.M. Jones <rjones at redhat.com> wrote:
>>> On Wed, Feb 01, 2017 at 04:57:24PM +0000, cmc wrote:
>>>> Hi,
>>>>
>>>> I've been trying to migrate a physical host with two disks (the first,
>>>> sda, is the OS disk and the second, sdb, is a data disk) into a VM,
>>>> and it always fails on the second disk. The first disk, the OS disk,
>>>> migrates fine, but when it starts on the second it fails almost
>>>> straightaway with the following error:
>>>>
>>>> (0.00/100%)^Mqemu-img: Could not open '/var/tmp/v2vovl811e67.qcow2':
>>>> Could not open backing file: Failed to connect socket: Connection
>>>> refused
>>>>
>>>> I can't see this backing file, but it may be deleted when the process
>>>> fails, as unfortunately it cleans up and deletes not only the
>>>> successfully migrated sda and associated files, but I suspect the
>>>> second as well. Most of the rest of the log can be seen at:
>>>>
>>>> http://theninthdimension.blogspot.co.uk/2017/02/virt-p2v-error.html
>>>
>>> What's actually happening is when the conversion server tries to
>>> connect to the second disk, the ssh connection has been dropped, hence
>>> the "backing file" (in fact an NBD server) cannot be connected to.
>>>
>>> Refer to the second diagram here:
>>>
>>>   http://libguestfs.org/virt-p2v.1.html#how-virt-p2v-works
>>>
>>> I don't know why the second connection has been dropped.  Does the
>>> conversion server have ssh timeouts enabled?  Or bash timeouts?  You
>>> can check ClientAlive* settings in /etc/ssh/sshd_config.  Also look
>>> for TMOUT or TIMEOUT environment variables on the conversion server.
>>> You can also look in the logs on the conversion server to see if the
>>> ssh connection was dropped or forced to close, and why.
>>>
>>> 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