eba*_*ere 12 vmware-esxi vmware-vsphere
我想将大型操作系统安装 ISO 直接下载到我的数据存储。我曾经能够通过 SSH 连接到 ESXi 终端并用于wget
将大文件直接下载到数据存储,但现在似乎wget
无法处理https
链接 ( wget: not an http or ftp url
)。
我想知道其他人如何处理这个问题。我知道我可以将文件下载到我的笔记本电脑并使用数据存储浏览器上传它,但这是一个两步过程(更不用说当我在异地并通过 VPN 访问 ESX 时效率极低)。
在此先感谢您的任何建议!
希望您在现有的 VMware 设置上有一个正在运行的来宾系统......这是一个快速选择。如果是 linux,你可以 wget/curl。如果是 Windows,只需正常下载即可。
我通常将 .ISO 文件下载到 vCenter 服务器并从那里上传到数据存储。这很容易,因为我的 vCenter 通常是 Windows 服务器,因此任何复杂的下载身份验证方法都很容易处理。
wget
ESXi 中确实存在,所以也许最好的选择是将您需要的 .ISO 文件放到一个不需要 https 下载的位置;http 或普通的 ftp。
另请参阅:ESXi 5.0 上的 cURL?
在ESXi 6.7左右,嵌入式busybox wget终于开始支持https。
最后,您可以在 ESXi 中进行 https 下载。
耶!
这是来自 ESXi 6.7 Update 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
Run Code Online (Sandbox Code Playgroud)
而 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
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
34293 次 |
最近记录: |