Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a direct link to a 4GB file.

How can I download it to a DataStore at vSphere 4? (without downloading it to my computer)

Thanks in advance

share|improve this question

1 Answer 1

up vote 4 down vote accepted

You need SSH access to the ESX console as ESX/ESXi comes with BusyBox and BusyBox has a slim wget. You can enable SSH access from the vSphere Client, in Configuration > Security > SSH Server.

First, SSH to the ESX host (use PuTTY if you're on Windows)

$ ssh root@12.34.56.78

Change directory to the datastore you want to put the file in

~ # cd /vmfs/volumes/datastore1

Then ,simply wget the file

~ # wget http://example.com/file.iso

Now mount/use the file from the vSphere client.

share|improve this answer
    
+1 Thanks it seems to work good - the problem is, the 'wget' don't support SSL –  Yacov Dec 7 '11 at 16:59
    
Ah I see, I'm currently not at my desk, so I can't check if ESXi has cURL or not, or if that's the old ESX. Either way, you can always try it by doing ~ # curl http://example.com/file.iso -o file.iso –  cvaldemar Dec 7 '11 at 18:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.