vagrant icon indicating copy to clipboard operation
vagrant copied to clipboard

"vagrant box add" does not report download progress on Windows

Open asteiner-psh opened this issue 1 year ago • 1 comments

Debug output

https://gist.github.com/asteiner-psh/759da3f1bd8339d9cb2ea4e1d46ca179#file-add-debug-macos-2-3-3-log https://gist.github.com/asteiner-psh/759da3f1bd8339d9cb2ea4e1d46ca179#file-add-debug-windows-2-3-3-log https://gist.github.com/asteiner-psh/759da3f1bd8339d9cb2ea4e1d46ca179#file-add-debug-windows-2-3-7-log

Expected behavior

When running vagrant add or vagrant up for a box that is not already downloaded, a progress bar/status message is displayed to the User.

Actual behavior

Downloading a box on a Windows 10 host does not output the download progress. Downloading a box on a MacOS host does output the download progress.

Reproduction information

I posted debug info for 2.3.3 (Mac and Windows) and 2.3.7 (Windows only), but I can vouch that this issue occurred as far back as 2.2.19.

Vagrant version

Vagrant 2.2.19 Vagrant 2.3.3 Vagrant 2.3.7

Host operating system

Windows 10

Guest operating system

ubuntu/mantic64, though this issue occurs with any box.

Steps to reproduce

  1. Install Vagrant on Windows.
  2. Open a terminal (Command Prompt, Powershell 7, or even Cygwin), and run vagrant box add ubuntu/mantic64.
  3. See an output like:
$ vagrant box add ubuntu/mantic64
==> box: Loading metadata for box 'ubuntu/mantic64'
    box: URL: https://vagrantcloud.com/ubuntu/mantic64
==> box: Adding box 'ubuntu/mantic64' (v20230801.0.0) for provider: virtualbox
    box: Downloading: https://vagrantcloud.com/ubuntu/boxes/mantic64/versions/20230801.0.0/providers/virtualbox.box
Download redirected to host: cloud-images.ubuntu.com
    box:
==> box: Successfully added box 'ubuntu/mantic64' (v20230801.0.0) for 'virtualbox'!

After the Downloading: line, the program will sit there during the download, with no output. Download redirected to host and everything after will appear when the box has finished downloading.

On MacOS, you would see an output like Progress: 5% (Rate: 1014k/s, Estimated time remaining: 0:01:57)

Vagrantfile

None.

asteiner-psh avatar Aug 16 '23 19:08 asteiner-psh

I will add that this is an issue for members of my team that are downloading 4-5 GB Boxes over a slow Internet / VPN.

asteiner-psh avatar Aug 28 '23 14:08 asteiner-psh