我想直接下载一个大型操作系统安装ISO到我的数据存储。我以前能够将SSH下载到ESXi终端,并使用wget直接将大型文件下载到数据存储,但似乎wget不能再处理https链接(wget: not an http or ftp url)了。
我在想别人是怎么处理这件事的。我知道我可以下载文件到我的笔记本电脑,并使用数据存储浏览器上传它,但这是一个两步的过程(更别提当我离开现场并通过VPN访问ESX时效率极低)。
谢谢您的建议!
发布于 2019-07-15 15:13:30
围绕ESXi 6.7,嵌入式busybox wget终于开始支持https。
因此,最后,您可以在ESXi中下载https。
耶!
这是来自ESXi 6.7更新2。
[root@ESXi-X9SRI-3F:/tmp] wget https://www.example.org
Connecting to www.example.org (93.184.216.34:443)
index.html 100% |******************************************************************************************| 1270 0:00:00 ETA
[root@ESXi-X9SRI-3F:/tmp] wget --help
BusyBox v1.29.3 (2018-11-02 15:37:50 PDT) multi-call binary.
Usage: wget [-c|--continue] [--spider] [-q|--quiet] [-O|--output-document FILE]
[--header 'header: value'] [-Y|--proxy on/off] [-P DIR]
[-S|--server-response] [-U|--user-agent AGENT] URL...
Retrieve files via HTTP or FTP
--spider Only check URL existence: $? is 0 if exists
-c Continue retrieval of aborted transfer
-q Quiet
-P DIR Save to DIR (default .)
-S Show server response
-O FILE Save to FILE ('-' for stdout)
-U STR Use STR for User-Agent header
-Y on/off Use proxy
[root@ESXi-X9SRI-3F:/tmp] vmware -l
VMware ESXi 6.7.0 Update 2尽管6.5U2仍然不支持它(我认为ESXi 6.7也不支持它,但我已经没有这样的框了):
[root@ESXi-X10SRH-CF:/tmp] wget https://www.example.org
wget: not an http or ftp url: https://www.example.org
[root@ESXi-X10SRH-CF:/tmp] wget --help
BusyBox v1.22.1 (2018-07-23 19:34:04 PDT) multi-call binary.
Usage: wget [-csq] [-O FILE] [-Y on/off] [-P DIR] [-U AGENT] URL...
Retrieve files via HTTP or FTP
-s Spider mode - only check file existence
-c Continue retrieval of aborted transfer
-q Quiet
-P DIR Save to DIR (default .)
-O FILE Save to FILE ('-' for stdout)
-U STR Use STR for User-Agent header
-Y Use proxy ('on' or 'off')
[root@ESXi-X10SRH-CF:/tmp] vmware -l
VMware ESXi 6.5.0 Update 2发布于 2013-06-03 16:45:00
希望您在现有的VMware设置上有一个正在运行的来宾系统.这是一个快速的选择。如果是linux,您可以使用wget/curl。如果是Windows,只需正常下载即可。
我通常将.ISO文件下载到vCenter服务器并从那里上传到数据存储。这很容易,因为我的vCenter通常是Windows,所以任何复杂的下载身份验证方法都很容易处理。
wget确实存在于ESXi中,所以最好的选择可能是将所需的.ISO文件送到不需要https下载的位置;http或普通ftp。
发布于 2017-07-29 23:25:58
只需SSH-代理文件下载操作,通过另一个系统支持SSL的wget.请注意,默认的ESXi防火墙策略阻止传出SSH,因此需要首先允许它。来自ESXi外壳:
esxcli network firewall ruleset set -r sshClient -e true
ssh proxyhost curl -s https://server/path/file.iso >/vmfs/volumes/vmfs_name/path/file.iso
esxcli network firewall ruleset set -r sshClient -e falsehttps://serverfault.com/questions/512888
复制相似问题