Skip to main content
Visitor II
Oct 7, 2026 2:41 AM UTC
Question

FortiGate-VM 7.6.6 Permanent Trial license download fails with code 502 on Hyper-V

Hello,

I am trying to activate the Permanent Trial / Evaluation license for FortiGate-VM 7.6.6 running on Microsoft Hyper-V.

When I run:

execute vm-license

I receive:

Failed to download VM license.

The VM license status is:

diagnose hardware sysinfo vm full

valid: 0
status: 3
code: 502

The VM itself is recognized as an Evaluation VM:

diagnose debug vm-print-license

Model: EVAL (1)
CPU: 1
MEM: 2048

I have tested the license activation in two different network environments:

  • Corporate network using an HTTP proxy
  • Mobile hotspot without the corporate proxy

On the mobile hotspot, the FortiGate could successfully reach both 8.8.8.8 and usupdate.fortiguard.net, but execute vm-license still returned Failed to download VM license.

I also ran:

diagnose hardware sysinfo vm setup

but the license status remained:

valid: 0
status: 3
code: 502

Fortinet Customer Service confirmed that FortiOS 7.6.6 supports the Permanent Trial license and that there is no issue with the Evaluation license activation or registration on the Fortinet side.

Could anyone advise what else I should check to determine why the Evaluation license cannot be downloaded?

Thank you.

Requesting FortiCare Trial license...
Failed to download VM license.

Failed receiving setup response
SETUP failed

    2 replies

    kaman
    Staff
    Staff
    Oct 7, 2026 1:49 PM UTC

    Hi fuma suzuki,
     

    The code 502 in diagnose hardware sysinfo vm full specifically means "Invalid. Cannot connect to FortiGuard distribution servers". This is a connectivity/validation failure, not a licensing entitlement problem.
     

    Run the below commands and check the behaviour afterwards. Hostname resolution is required for the FortiGate to maintain connectivity to FortiGuard services.
     

    execute ping service.fortiguard.net

    config system fortiguard
        set fortiguard-anycast disable
        set protocol udp
        set port 8888
    end
     

    If issue persist, run the below commands and share us the output:
     

    diagnose debug application update -1
    diagnose debug enable
    execute update-now
     

    Reference: https://community.fortinet.com/fortigate-3/technical-tip-fortigate-stuck-in-validating-license-screen-license-is-being-validated-by-fortiguard-127297

    https://community.fortinet.com/fortigate-3/technical-tip-fortigate-vm-license-management-validation-and-troubleshooting-98646


    Regards,
    Aman
     

    Translate
    Visitor II
    Oct 8, 2026 12:34 AM UTC

    Hi Aman,

    Thank you for your guidance.

    I configured the following as suggested:

    config system fortiguard
    set fortiguard-anycast disable
    set protocol udp
    set port 8888
    end

    service.fortiguard.net resolves successfully to guard.fortinet.net (83.231.212.81), although the ping itself receives no replies.

    After running execute update-now, the license status still remains:

    valid: 0
    status: 3
    code: 502

    I then ran the debug commands you provided, and received the following output:

    Received update request from pid=5304
    do_setup[349]-Starting SETUP
    upd_act_setup[126]-Trying Setup, fmg=0
    __upd_comm_rcv[990]-data_len=24
    __upd_fix_rx_pkg[1009]-Failed, length=24, no res header.
    upd_act_setup[137]-Failed receiving setup response, fmg=0, ret=-1
    upd_act_setup[149]-Setup failed, fmg=0.
    do_setup[353]-SETUP failed
    upd_daemon[2157]-Disabling remaining actions 11

    The FortiGuard configuration still also contains the corporate proxy settings:

    set proxy-server-ip "192.168.10.253"
    set proxy-server-port 8080

    Should these proxy settings be removed when testing UDP/8888, or is there anything else I should check?

    Regards,
    Fuma Suzuki

    Translate
    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024