VMware Cloud Community
vlrk
Contributor
Contributor

Network File Copy with tlsv1.2 ESXI 6.7 U1

Hi

I was using the curl to upload the virtual disk and then spawn the VM in the host using the disks.

My ESXi host versoin is <= 6.5 ,below was the command which is working fine for these versions.

cat /home/rk/000585f3-7d38-f1d2-0005-85f37d38f1d2/test.disk1.vmdk|curl -T - --fail -v --insecure --request POST --header "Connection: Keep-Alive" --header "Content-Type: application/x-vnd.vmware-streamVmdk"

I have recently updated one of my host from ESXi 6.5 to 6.7 U1 , where the protocol support has been restricted to tlsv1.2 . I have updated the curl to 7.65-1 and openssl to 1.0.2r.

Updated the command "cat /home/rk/test.disk1.vmdk|curl -T --tlsv1.2 --fail -v --insecure --request POST --header "Connection: Keep-Alive" --header "Content-Type: application/x-vnd.vmware-streamVmdk" https://10.65.218.107/nfc/52492229-f05d-7642-df72-ee39eca0f717/disk-0.vmdk"

Response is as below.

> POST /nfc/52492229-f05d-7642-df72-ee39eca0f717/disk-0.vmdk HTTP/1.1

> Host: 10.126.129.101

> User-Agent: curl/7.65.1
> Accept: */*
> Transfer-Encoding: chunked
> Connection: Keep-Alive
> Content-Type: application/x-vnd.vmware-streamVmdk
> Expect: 100-continue
>
* Mark bundle as not supporting multiuse
* The requested URL returned error: 404 Not Found
* Closing connection 0
* TLSv1.2 (OUT), TLS alert, close notify (256):
curl: (22) The requested URL returned error: 404 Not Found

Any idea , what might be missing here ?. or any specific debugging logs which can be usefull in trouble shooting.

thanks

Rama Kanth

Reply
0 Kudos
1 Reply
continuum
Immortal
Immortal

May I ask for the reason to upload vmdks via cat + curl - when you could also use ddrescue + sshfs ?
ddrescue + sshfs can handle errors in the vmdk-file and can be resumed at any time in case the network  connection dies during the upload.


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

Reply
0 Kudos