azure-rm - download application binaries to the VM takes too much time

5 views
Skip to first unread message

François Déchirot

unread,
Nov 22, 2019, 12:56:36 AM11/22/19
to Packer
Hi,

I am new to Packer. I created some Powershell scripts to download and install specific applications to the image that Packer is building. I have added these scripts to the provisioners section.
I have created a VM in Azure (Standard_NV6 - https://docs.microsoft.com/fr-fr/azure/virtual-machines/windows/sizes-gpu) - identical to the image built by Packer.

If I execute these scripts directly from the VM in Azure, the download time of the applications packages is as follow:
  • 1.3GB -> ~3 minutes
  • 3GB -> ~5 minutes
  • 6.6GB -> 13 minutes
The same scripts executed in the context of Packer:
  • 1.3GB -> ~20 minutes
  • 3GB -> ~44 minutes
  • 6.6GB -> ~100 minutes
How can this be improved? Is it a normal behavior?

Thanks.
Reply all
Reply to author
Forward
0 new messages