VMware vSphere

 View Only
  • 1.  wget command returning 404 Not Found error

    Posted Oct 07, 2010 04:06 AM

    I am trying to copy a file from a datastore into my one of the directories in my Ubuntu VM.

    The path to the file in the datastore (datastore1) is,

    software/Ubuntu/Ubuntu/EnterpriseRepository_11.1.1.3.0 and the filename is OER111130_generic.zip

    The command I give in the Ubuntu terminal shell is,

    wget --http-user=root --http-password=vmpwd 'http://172.18.12.20/software/Ubuntu/Ubuntu/EnterpriseRepository_11.1.1.3.0/OER111130_generic.zip dsName=datastore1' --no-check-certificate

    It is returning with this error

    HTTP request sent, awaiting response.. 404 Not Found



  • 2.  RE: wget command returning 404 Not Found error

    Posted Oct 07, 2010 04:12 AM

    You can try it like this

    https://Dave

    VMware Communities User Moderator

    Now available - vSphere Quick Start Guide

    Do you have a system or PCI card working with VMDirectPath? Submit your specs to the Unofficial VMDirectPath HCL.



  • 3.  RE: wget command returning 404 Not Found error

    Posted Oct 07, 2010 06:24 PM

    Thanks, but what are these characters "ha%2ddatacenter"

    the ha%2d etc. should they be included. So, it should read,

    'http://172.18.12.20/folder/OER111130_generic.zip?dcPath=/Ubuntu/Ubuntu/EnterpriseRepository_11.1.1.3.0/OER111130_generic.zip?dsName=datastore1'



  • 4.  RE: wget command returning 404 Not Found error

    Posted Oct 07, 2010 06:46 PM

    ha-datacenter is the object that you're browsing. %2d is the escape character for - and ensure that the URL doesn't get misinterpreted. If you have any spaces those get replaced with %20 and hyphens with %5f.




    Dave

    VMware Communities User Moderator

    Now available - vSphere Quick Start Guide

    Do you have a system or PCI card working with VMDirectPath? Submit your specs to the Unofficial VMDirectPath HCL.



  • 5.  RE: wget command returning 404 Not Found error

    Posted Oct 07, 2010 04:15 AM

    One more update. The 404 error is the last one being reported, immediately after the command, I get this msg,

    Connecting to 172.18.12.20:80... connected.

    HTTP request sent, awaiting response... 301 Moved Permanently



  • 6.  RE: wget command returning 404 Not Found error

    Posted Oct 07, 2010 06:48 PM

    As mentioned about, unless you've made some configuration changes to ESXi, this connection has to be made over https. You're connectiong over http and ESXi is redirecting the request to https.




    Dave

    VMware Communities User Moderator

    Now available - vSphere Quick Start Guide

    Do you have a system or PCI card working with VMDirectPath? Submit your specs to the Unofficial VMDirectPath HCL.



  • 7.  RE: wget command returning 404 Not Found error

    Posted Oct 08, 2010 05:32 PM

    After using this command,

    wget ---no-check-certificate -http-user=root --http-password=vmpwd 'https://172.18.12.20/folder/Ubuntu/Ubuntu/EnterpriseRepository_11.1.1.3.0/OER111130_generic.zip dsName=datastore1'

    I get some messages including 301 and 401 back but towards the end it says connected and waiting for response and just waits and nothing seems to happen but it is no longer returning a 404 and terminating.



  • 8.  RE: wget command returning 404 Not Found error

    Posted Oct 08, 2010 07:07 PM

    If I use the following it works fine

    wget --no-check-certificate --http-user=root --http-password=****** 'https://esx01/folder/Ubuntu%2fUbuntu%2fEnterpriseRepository_11.1.1.3.0/VMware-VMvisor-InstallerCD-3.5.0_Update_4-153875.i386.iso?dcPath=ha%2ddatacenter&dsName=ESX01%5flocal'   -O ESXi3.5.iso 

    It works fine without the -O option but it just doesn't save the right file name if I exclude it. I could also run it substituting %2f with / (so /Ubuntu/Ubuntu/Ent.. was fine). Note the differences in syntax after the file name. I have ?dcPath=ha%2ddatacenter&dsName=ESX01%5flocal'




    Dave

    VMware Communities User Moderator

    Now available - vSphere Quick Start Guide

    Do you have a system or PCI card working with VMDirectPath? Submit your specs to the Unofficial VMDirectPath HCL.