[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] virt-v2v: Died at /usr/bin/virt-p2v-server line 411



On Wed, Nov 19, 2014 at 10:05:53PM +0100, Nicolas Ecarnot wrote:
> Nov 19 21:54:52 serv-p2v-adm1 sshd[2727]: pam_unix(sshd:session):
> session opened for user root by (uid=0)
> Nov 19 21:54:53 serv-p2v-adm1 sshd[2725]: channel 2: open failed:
> connect failed: Connection refused
> Nov 19 21:54:53 serv-p2v-adm1 sshd[2727]: Received disconnect from
> 192.168.49.5: 11: disconnected by user
> Nov 19 21:54:53 serv-p2v-adm1 sshd[2725]: Received disconnect from
> 192.168.49.5: 11: disconnected by user
[...]
>
> Indeed, I see "Connection refused".
> Let's investigate on this.
> 
> On the conversion server (serv-p2v-adm1), before running all this, I
> did a "iptables -F" (and a restart of NFS - not knowing if it was
> needed), so I have no rule in iptables now.
> 
> Do I have to find a way to increase the verbosity of sshd in
> /var/log/secure?

You might want to check that sshd allows port forwarding
('AllowTcpForwarding yes' in /etc/ssh/sshd_config).

It would be useful to know what the actual sshd failure is.

This is how ssh is invoked on the virt-p2v side:

https://github.com/libguestfs/libguestfs/blob/master/p2v/ssh.c#L174
plus
https://github.com/libguestfs/libguestfs/blob/master/p2v/ssh.c#L595

> Another point : as I wrote it before, I have no way to get a shell
> prompt on the source machine, because alt-F1 leads to a blinking
> screen trying to run virt-p2v and failing and respawning.
> I nmap'd this source host, and saw that ssh was open.
> In order to run the action step by step, is there a way to connect
> to this root account? What password? (already tried
> secret/p2v/root/password/PASSWORD/redhatrulez but that did not the
> trick)

I'm fairly sure the root account is disabled, and sshd isn't supposed
to be running, but apparently it is (a bug).  It's also a bug that
there is no shell on another other virtual console, but TBH I don't
know how to fix that ...

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]