while calling the sdk program , it throws 404 error. when i try to access the url https://<converterserver>:443/converter/sdk/ , it shows 404 not found in the browser as well.
How to enable the sdk webservice URL in convertermachine
$ java -cp $LOCALCLASSPATH SubmitWinP2VJob/Program 10.x.x.x service_xxx xxxx submitjob.properties
Failed to Connect to Converter Server.
(404)Not Found
AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (404)Not Found
faultActor:
faultNode:
faultDetail:
{}:return code: 404
Few possible situations (and fixes):
- there is no Converter server running on this machine - check for Converter installed and Converter server is running
- 443 is blocked by Converter server or your machine - unblock port 443
- Converter is installed in "Local mode" - reinstall or modify Converter and select "Client-server mode"
HTH
Few possible situations (and fixes):
- there is no Converter server running on this machine - check for Converter installed and Converter server is running
- 443 is blocked by Converter server or your machine - unblock port 443
- Converter is installed in "Local mode" - reinstall or modify Converter and select "Client-server mode"
HTH
Can you connect to this <IP> from Converter GUI, not to Local server but to Converter server? If so, the problem is in sample, if not - the problem is one of previous ones.
HTH
converter SDK throws the below SSH error. attached sample properties , here i've removed the servername, username and password. manually i can ssh with the mentioned user to the source server from my linux machine.
Executing operation 'QuerySource' from properties file 'xxxx.properties'
Failed to execute operation 'QuerySource' from file 'xxxx.properties'
null
AxisFault
faultCode: ServerFaultCode
faultSubcode:
faultString: Unable to SSH to the source machine. Check if a firewall is blocking access to the SSH daemon on the source machine.
faultActor:
faultNode:
faultDetail:
{urn:converter}ConverterSysinfoQueryConnTimedOutFaultFault:<description>[Converter Agent SysinfoQuery] ssh connection timed out</description>
Unable to SSH to the source machine. Check if a firewall is blocking access to the SSH daemon on the source machine.
I'm confused - what's happens with 404?
This is completely different error: Windows machine with Converter can not connect to your live Linux machine via SSH. Check not to set port, as well to test SSH from Windows machine to Linux source machine.
HTH
So read the manual in order to do required prerequisites for conversions.
Thanks . Fixed the ssh issue. changed the vlan and subnet in converter machine . now it's able to do query source . But failed to do convert operation . i didn't provide the thumbprint value. attaching the used properties file
It prompts for "proceed with connecting to the destination server" ?
When provided input as "N"
Executing operation 'Convert' from properties file 'xxxx.properties'
Live source machine certificate validation failed.
Live source machine: x.x.x.x
Certificate thumbprint: 0F:8D:AE:64:F1:35:C1:B6:5F:41:AD:9C:F4:E8:E0:55:32:EF:3F:38
Proceed with connecting to the destination server?
(Enter [y]es, [n]o or [c]ancel): > n
Destination vCenter or ESX server certificate validation failed.
Destination vCenter or ESX server: vcenter_name
Certificate thumbprint: 0F:8D:AE:64:F1:35:C1:B6:5F:41:AD:9C:F4:E8:E0:55:32:EF:3F:38
Proceed with connecting to the destination server?
(Enter [y]es, [n]o or [c]ancel): > n
Failed to execute operation 'Convert' from file 'xxxx.properties'
null
AxisFault
faultCode: ServerFaultCode
faultSubcode:
faultString: A specified parameter was not correct:
faultActor:
faultNode:
faultDetail:
{urn:converter}InvalidArgumentFault:<vim25:faultCause><vim25:fault xsi:type="ConverterSSLVerificationFault"><selfSigned>false</selfSigned><thumbprint>0F:8D:AE:64:F1:35:C1:B6:5F:41:AD:9C:F4:E8:E0:55:32:EF:3F:38</thumbprint><msg>Verification parameters:
PeerThumbprint: 0F:8D:AE:64:F1:35:C1:B6:5F:41:AD:9C:F4:E8:E0:55:32:EF:3F:38
ExpectedThumbprint:
ExpectedPeerName: vcentername
The remote host certificate has these problems:
* The host certificate chain is incomplete.
When provided input as "Y"
Executing operation 'Convert' from properties file 'xxxx.properties'
Live source machine certificate validation failed.
Live source machine: x.x.x.x
Certificate thumbprint: 0F:8D:AE:64:F1:35:C1:B6:5F:41:AD:9C:F4:E8:E0:55:32:EF:3F:38
Proceed with connecting to the destination server?
(Enter [y]es, [n]o or [c]ancel): > Y
Failed to execute operation 'Convert' from file 'xxxx.properties'
null
AxisFault
faultCode: ServerFaultCode
faultSubcode:
faultString: A specified parameter was not correct:
faultActor:
faultNode:
faultDetail:
{urn:converter}InvalidArgumentFault:<vim25:faultCause><vim25:fault xsi:type="ConverterSysinfoQueryBadThumbprintFault"><description>[Converter Agent SysinfoQuery] ssh connection to host x.x.x.x failed because the host thumbprint was different: client: 0F:8D:AE:64:F1:35:C1:B6:5F:41:AD:9C:F4:E8:E0:55:32:EF:3F:38, host: c0:9d:8f:09:37:b9:ac:54:6d:38:a0:b3:54:a9:f9:a8</description><hostname>x.x.x.x</hostname><thumbprint>c0:9d:8f:09:37:b9:ac:54:6d:38:a0:b3:54:a9:f9:a8</thumbprint></vim25:fault><vim25:localizedMessage>Unable to connect via SSH to the source machine 'x.x.x.x' because the host thumbprint 'c0:9d:8f:09:37:b9:ac:54:6d:38:a0:b3:54:a9:f9:a8' was not accepted.</vim25:localizedMessage></vim25:faultCause>
A specified parameter was not correct:
Ok, in your case there are 3 different thumbprints you'll need to do conversion:
- converter's server thumbprint to connect to server and execute commands.
- source machine's thumbprint to connect to source machine to query and convert it.
- VC/ESX's thumbprint to create destination VM
While the Converter's thumbprint are handled by SDK, other you'll need to fill in .properties file:
source.physical.thumbprint=
target.managed.thumbprint=
Of course you can extend the Java code to handle all cases you need.
HTH
i've filled the source server thumbprint. even then it failed as client thumbprint is not accepted.
Here is the properties snippet.
operation.count=1
operation#0=Convert
source.type=Physical
; Physical source
source.physical.address=x.x.x.x;
source.physical.username=user
source.physical.password=*****
source.physical.clientPrivateKey= ;
source.physical.ostype=linuxOs ;
source.physical.agentport=9089;
source.physical.thumbprint=c0:9d:8f:09:37:b9:ac:54:6d:38:a0:b3:54:a9:f9:a8
source.physical.reboot=false
bash-4.2$ java -cp $LOCALCLASSPATH SubmitWinP2VJob/Program <coverter IP > <username> < password> xxxx.properties
Executing operation 'Convert' from properties file 'xxxx.properties'
Live source machine certificate validation failed.
Live source machine: x.x.x.x
Certificate thumbprint: 0F:8D:AE:64:F1:35:C1:B6:5F:41:AD:9C:F4:E8:E0:55:32:EF:3F:38
Proceed with connecting to the destination server?
(Enter [y]es, [n]o or [c]ancel): > y
Failed to execute operation 'Convert' from file 'xxxxx.properties'
null
AxisFault
faultCode: ServerFaultCode
faultSubcode:
faultString: A specified parameter was not correct:
faultActor:
faultNode:
faultDetail:
{urn:converter}InvalidArgumentFault:<vim25:faultCause><vim25:fault xsi:type="ConverterSysinfoQueryBadThumbprintFault"><description>[Converter Agent SysinfoQuery] ssh connection to host x.x.x.x failed because the host thumbprint was different: client: 0F:8D:AE:64:F1:35:C1:B6:5F:41:AD:9C:F4:E8:E0:55:32:EF:3F:38, host: c0:9d:8f:09:37:b9:ac:54:6d:38:a0:b3:54:a9:f9:a8</description><hostname>x.x.x.x</hostname><thumbprint>c0:9d:8f:09:37:b9:ac:54:6d:38:a0:b3:54:a9:f9:a8</thumbprint></vim25:fault><vim25:localizedMessage>Unable to connect via SSH to the source machine 'x.x.x.x' because the host thumbprint 'c0:9d:8f:09:37:b9:ac:54:6d:38:a0:b3:54:a9:f9:a8' was not accepted.</vim25:localizedMessage></vim25:faultCause>
Few options for you:
- try the conversion with GUI from Windows machine and check all tumbprints - if they not match to yours then you'll need to correct them (don't use "local server" connect option).
- as your scenario is not tested, you'll need to fix source somehow.
HTH
With the source thumbprint query source gave result successfully with the source thumbprint (c0:9d:8f:09:37:b9:ac:54:6d:38:a0:b3:54:a9:f9:a8) but covert only throws the above error message.
Try same sample from Windows with Converter. If not succeeded then problem is in your settings (.properties). If succeeded then you'll need to debug and fix SDK code...
thanks . i tried the windows gui converter and explored the keys from the diagnostics logs. now it throws error as below. do i have to key in the esx host . how to select the esx host. there are more than 4 esx host in the VC for the particular DC .
; Managed target
target.managed.address=vcenter name; Target ESX or vCenter server name or IP, e.g 10.0.0.4
target.managed.thumbprint=0F:8D:AE:64:F1:35:C1:B6:5F:41:AD:9C:F4:E8:E0:55:32:EF:3F:38
target.managed.username=user
target.managed.password=********
; MoId of host as seen in MOB, e.g. 'host-2'. Leave empty for default
target.managed.host=
; MoId of resource pool as seen in MOB, e.g. 'resgroup-1'. Leave empty for default
target.managed.resourcepool=
; MoId of cluster compute resource as seen in MOB, e.g. 'domain-c4'. Leave empty for default
target.managed.cluster= cluster-moid
; MoId of VM folder as seen in MOB, e.g. 'group-v3'. Leave empty for default
target.managed.vmfolder=
null
AxisFault
faultCode: ServerFaultCode
faultSubcode:
faultString: A specified parameter was not correct:
faultActor:
faultNode:
faultDetail:
{urn:converter}InvalidArgumentFault:<vim25:faultCause><vim25:fault xsi:type="ConverterImportDestinationNoHostFault"><target/></vim25:fault><vim25:localizedMessage>Unable to find an ESX host for the destination virtual machine.</vim25:localizedMessage></vim25:faultCause>
This means that Converter doesn't see ESX at port 902.
The prerequisites are described in User's Manual, check it.
thanks . once the vmfolder name is given . it created the vm. but in the console it throws time out issue. how to increase the time out.
; nested exception is:
java.net.SocketTimeoutException: Read timed out
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.net.SocketTimeoutException: Read timed out
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.net.SocketTimeoutException: Read timed out
Probably Converter can't connect to VM in order to start conversion, check worker's log about details.
Thanks . Where to find the worker's log in converter machine or my linux box(where the conversion was triggered ?)
LOL, how you didn't understand that there is no Converter for Linux?!?
The SDK allows to send commands to the (*remote* in case of Linux) Converter server, and commands are executed on that server.
As worker is part of server, the logs are in the *Windows* box.