VMware Cloud Community
Acrivi
Contributor
Contributor

Unable to query the live source machine - P2V Ubuntu server

Hello,

I'm getting this error when trying to convert a physical Ubuntu linux machine. (Picture attached).

We've tried everything on this post - VMware Knowledge Base  and all potential ideas from google!

I would appreciate if someone could look at the logs and tell us what we need to change in order to make this work.

Regards

0 Kudos
5 Replies
patanassov
VMware Employee
VMware Employee

Hello

From the log:

2018-08-08T16:42:33.942+01:00 error vmware-converter-worker[09676] [Originator@6876 sub=Default] Sysinfo Query failed with error [Converter Agent SysinfoQuery] ssh connection failed because of a bad username (root) or password or private key

Apart from wrong password (I suppose you have tried more than once), this may also mean disabled SSH root login on the source machine.

Check 'PermitRootLogin' in sshd_config.

HTH,

Plamen

0 Kudos
Acrivi
Contributor
Contributor

Hi Plamen,

Thanks for your response.

We have PermitRootLogin set to "yes".

We can login with root, and a normal user with sudo and no password.

This has to be something else.

Thanks

0 Kudos
Lalegre
Virtuoso
Virtuoso

From the machine where you are running Converter Standalone are you hable to connect to port 22 on Ubuntu.

Try to use telnet or another tool to try to connect port 22 or whichever you use for SSH.

0 Kudos
patanassov
VMware Employee
VMware Employee

Hi Acrivi,

Sorry for the so late response. Upon more careful examination of the log, a few things pop-up:

2018-08-08T16:42:25.484+01:00 error vmware-converter-worker[07828] [Originator@6876 sub=Default] No disks for volume with id '/dev/md0' and label ''

/dev/md0 is reported as "type loop", besides it is mounted twice and as the whole disk, despited it being partitioned.

-->   </volume>

-->   <volume mountPoint="/media/ftp" blockSizeInBytes="4096" capacityInBlocks="480650174" blocksFree="443803253" blocksUsed="36846921" devicePath="/dev/md0" fileSystemType="ext4" isBootVolume="false" label="">

-->    <extfsFeatures dirIndex="true" filetype="true" hasJournal="true" journalDev="false" resizeInode="true" sparseSuper="true" extent="true" flexBg="true" uninitBg="true" inodesCount="122093568"/>

-->   </volume>

-->   <volume mountPoint="/var/www" blockSizeInBytes="4096" capacityInBlocks="480650174" blocksFree="443803253" blocksUsed="36846921" devicePath="/dev/md0" fileSystemType="ext4" isBootVolume="false" label="">

-->    <extfsFeatures dirIndex="true" filetype="true" hasJournal="true" journalDev="false" resizeInode="true" sparseSuper="true" extent="true" flexBg="true" uninitBg="true" inodesCount="122093568"/>

-->   </volume>

...

-->   <disk type="loop" controllerType="scsi" bus="2147483647" deviceId="0" capacityInSectors="3906766720">

-->    <device path="/dev/md0" major="9" minor="0"/>

--><hwGeometry cylinders="488345840" heads="2" sectors="4"/>
--><biosGeometry cylinders="243184" heads="255" sectors="63"/>
--><partition number="1" type="primary" isActive="false" fileSystemType="ext4">
--> <device path="/dev/md0p1" major="0" minor="0"/>
--> <lba start="0" length="3906766720" end="3906766719"/>
--></partition>

-->   </disk>

From VMware vCenter Converter Standalone 6.2.0.1 Release Notes: "Converter cannot query Linux source when a volume is mounted more than once"

I am not sure whether converter will be fine with such disk, but it doesn't hurt to try.

First, unmount one of those volumes and try again.If this doesn't succeed, unmount both.

Additionally the error

2018-08-08T16:42:33.942+01:00 error vmware-converter-worker[09676] [Originator@6876 sub=Default] [Converter Agent SysinfoQuery] while trying to execute "C:\Program Files (x86)\VMware\VMware vCenter Converter Standalone\plink.exe -noprompt -stdin-pass-and-key <ConverterPrivateKeyEnd> -P 22 -thumbprint 80:17:0f:ca:cc:65:6f:4f:e7:7f:c8:f8:cd:d6:ae:60 root@192.168.1.180 sudo file -L /sbin/init" received error code (245) with result: Access denied

is very surprising. This command (file -L /sbin/init) is executed in order to asses the bitness of the source. It is executed prior to querying it, yet the query has succeeded (that Converter queries more than once is another story). Perhaps there is something that has allowed this execution once and then blocked it, I don't know.

HTH,

Plamen

0 Kudos
jamieduk2009
Contributor
Contributor

Im also in same boat, ssh user all setup and still it gives that error, cant i just image the sd card and mount that into vmware? that would be the best way, or provide a script that sets up the convertion from inside somehow as this stand alone crap dont work!i cant figure out the keys either its asking for a private key the sshd is not using a key and when i try use 1 it fails, theres no real step by step that works anywhere! why can you just accept a public key why does it have to be private this makes no sense!

0 Kudos