VMware ESX 4 – use cURL to grab files

I need to quickly download an ISO image to my new VMware ESX 4 box and discovered that the cURL utility is now included — pretty handy.

If you have not used cURL, it is similar to wget.  However, with no parameters cURL will spew the download to standard out — definitely not what you want in the case of an ISO image.  Therefore, the -O option — capital O — can be used to save the downloaded file, preserving the filename.  If you happen to be behind a proxy server, don’t forget to set the http_proxy environment variable — standard Linux procedure.

Downloading an ISO with curl.

The full man page is also present — if you need to know more, just type “man curl”.

(Visited 1,730 times, 1 visits today)
This entry was posted in Virtualizationism and tagged , , . Bookmark the permalink.

5 Responses to VMware ESX 4 – use cURL to grab files

  1. Tony says:

    Check out http://www.veeam.com/vmware-esxi-fastscp.html
    It is free and about 10 times faster (looking at your numbers)

  2. Eric Gray says:

    Wow, it makes the Internet 10 times faster? I’m definitely going to look into that! 🙂

  3. Tony says:

    Eric, sorry – I’ve totally missed the fact that you are uploading ISO to ESX storage directly from internet… for some reason I though you are doing upload from some local share. 🙂

    No, fastscp cannot get data from the internet, nor can it make internetz 10 times faster 🙂

  4. Hi Eric,

    I’ve been using lwp-download to do the same thing for some time…

    $ lwp-download
    Usage: lwp-download [-a] []

    What do you see as the main differences?

    I b e n

    http://search.cpan.org/~gaas/libwww-perl-5.826/bin/lwp-download

    • Eric Gray says:

      For downloading a single file, lwp-download and cURL have similar abilities. However, cURL can do so much more, as the man page says, “the amount of features will make your head spin!”

      To be clear, lwp-download is still present in ESX 4.

Comments are closed.