Skip to main content
srahmat
Staff
Staff
December 12, 2024

Technical Tip: How to download VM image using CLI if the FortiSandbox use proxy connection

  • December 12, 2024
  • 0 replies
  • 410 views
Description This article describes how to download VM image using CLI if the FortiSandbox is using proxy connection.
Scope FortiSandbox v4.4.3 and above.
Solution

FortiSandbox is configured to use proxy connection for the VM Image download in FortiGuard page. When download VM image using GUI is successful but it will failed if using the CLI to download VM image.

 

image.png

 

Execute the command: 'test-network vm_downloadable' to show success.

 

FSA1> test-network vm_downloadable

Testing connection to remote guest VM server ++++++++++++++++++++++++++++++++++++++++
Proxy: Enabled
Downloading guest VM from remote server: Success

 

When trying to download the VM image using CLI using the command 'fw-upgrade -v -sfsavm.fortinet.net -thttps -f/test/WIN10O21V1_1.pkg' ,  the download will be failed as per the below error.

 

image.png

 

This is because the 'fw-upgrade' command will not use the setting on the System -> FortiGuard -> VM Image Download Proxy Settings.

 

To download the VM image from the CLI, use the CLI syntax for proxy.

 

image.png

 

Example for the command as per below:

 

fw-upgrade -v -sfsavm.fortinet.net -thttps -f/test/WIN10O21V1_1.pkg -xthttp -xs192.184.30.210 -xp8080 -xuadmin -xwpassword