AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 512888
Accepted
ebarrere
ebarrere
Asked: 2013-06-04 08:38:32 +0800 CST2013-06-04 08:38:32 +0800 CST 2013-06-04 08:38:32 +0800 CST

VMware ESXi:帮助下载大型 ISO

  • 772

我想将大型操作系统安装 ISO 直接下载到我的数据存储区。我曾经能够通过 SSH 连接到 ESXi 终端并用于wget将大文件直接下载到数据存储,但似乎wget无法再处理https链接 ( wget: not an http or ftp url)。

我想知道其他人如何处理这个问题。我知道我可以将文件下载到我的笔记本电脑并使用数据存储浏览器上传它,但这是一个两步过程(更不用说当我不在现场并通过 VPN 访问 ESX 时效率极低)。

在此先感谢您的任何建议!

vmware-esxi
  • 6 6 个回答
  • 38558 Views

6 个回答

  • Voted
  1. ewwhite
    2013-06-04T08:45:00+08:002013-06-04T08:45:00+08:00

    希望您在现有的 VMware 设置上有一个正在运行的访客系统……这是一个快速的选择。如果是 linux,你可以 wget/curl。如果是 Windows,只需正常下载即可。

    我通常将 .ISO 文件下载到 vCenter 服务器并从那里上传到数据存储。这很容易,因为我的 vCenter 通常是 Windows 服务器,因此任何复杂的下载身份验证方法都可以轻松应对。

    wget 确实存在于 ESXi 中,所以也许最好的选择是将您需要的 .ISO 文件放到不需要 https 下载的位置;http 或普通的 ftp。

    另请参阅:ESXi 5.0 上的 cURL?

    • 6
  2. Nicolas Melay
    2017-07-30T15:25:58+08:002017-07-30T15:25:58+08:00

    只需通过另一个具有启用 SSL 的 wget 的系统通过 SSH 代理文件下载操作。请注意,默认的 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 false
    
    • 3
  3. Best Answer
    Jeroen Wiert Pluimers
    2019-07-16T07:13:30+08:002019-07-16T07:13:30+08:00

    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
    
    • 3
  4. RobW
    2013-06-04T09:14:02+08:002013-06-04T09:14:02+08:00

    你没有提到笔记本电脑操作系统。假设它是 Windows,你可以使用WinSCP。

    登录到您的 ESXi 主机,深入到您的数据存储,并使用 Commander 样式或可选的 Windows Explorer 样式界面执行文件复制。

    如果您正在寻找命令行选项,可以使用Putty Secure Copy 客户端。

    我同时使用 - gui 进行一次文件复制,并使用命令行将文件复制到多个 ssh 主机。

    • 2
  5. Orwellophile
    2022-01-22T20:09:25+08:002022-01-22T20:09:25+08:00

    假设您使用的是 Jerone 提到的 6.7U2 或更高版本,请确保您的防火墙允许传出连接(默认情况下禁用)并使用 --no-check-certificate 选项来获取 wget。

    esxcli network firewall ruleset set -e true -r httpClient
    
    wget --no-check-certificate \
        'https://releases.ubuntu.com/20.04.3/ubuntu-20.04.3-live-server-amd64.iso'
    

    应该做得很好。

    • 2
  6. Artem Dolobanko
    2017-03-28T02:37:41+08:002017-03-28T02:37:41+08:00

    来自 ESX 上busybox的Wget不支持 https URL。

    wget --help
    BusyBox v1.20.2 (2012-12-11 11:54:28 PST) multi-call binary.
    Retrieve files via HTTP or FTP
    

    因此,要么尝试 http 要么使用上述解决方法。

    • 0

相关问题

  • ESXi NAS 配置

  • 如何将 Acronis 生成的 vmdk 添加到 esxi?

  • 在 VMWare ESX 和 ESXi 之间进行选择 [关闭]

  • 将(大)虚拟机从 ESXi 3.5 转换为 Hyper-V Server 2008 R2

  • VMWare:ESX 还是 3i?我需要COS吗?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve