FGT # config system interface edit port1 set mode static set ip 192.168.1.99/24 set allowaccess https ssh ping end 1. Licensing Unlike hardware FortiGates, the VM requires a license file (.lic) obtained from Fortinet. Without a license, the VM runs in trial mode (limited throughput, features, and 15-day expiration). The “new” build does not change this. 2. QCOW2 compression issues Some users attempt to compress the QCOW2 to save space. FortiGate actively writes logs and temp files; compressed images will fail. Use qcow2 with lazy_refcounts=off for best performance. 3. KVM version compatibility Build 2731 may require a certain libvirt or qemu-kvm version. Check compatibility:
So your search keyword likely lacks hyphens and contains a typo ( v747m instead of v747-M ). Try searching for: FGT_VM64_KVM-v7.4.7-build2731-FORTINET.out.kvm.qcow2 Once you have the legitimate qcow2 file (and optionally its Checksum file), follow this process: 1. Verify integrity sha256sum -c FGT_VM64_KVM-v7.4.7-build2731-FORTINET.out.kvm.qcow2.sha256 2. Prepare the image (optional resizing) qemu-img info FGT_VM64_KVM-v7.4.7-build2731-FORTINET.out.kvm.qcow2 qemu-img resize FGT_VM64_KVM-v7.4.7-build2731-FORTINET.out.kvm.qcow2 +20G 3. Create a VM with virt-install virt-install \ --name fortigate-new \ --vcpus 2 \ --memory 4096 \ --disk path=/var/lib/libvirt/images/fgt747.qcow2,format=qcow2,bus=virtio \ --network bridge=br0,model=virtio \ --network bridge=br0,model=virtio \ --graphics vnc \ --console pty,target_type=serial \ --import 4. Initial configuration Access via serial console or SSH (after assigning IP via DHCP on port1): fgtvm64kvmv747mbuild2731fortinetoutkvmqcow2 new
wget --header="Authorization: Bearer $TOKEN" "$BASE_URL/download?file=$FILENAME" -O /tmp/fortigate_new.qcow2.zip FGT # config system interface edit port1 set
FILENAME="FGT_VM64_KVM-v$VER-build$BUILD-FORTINET.out.kvm.qcow2.zip" The “new” build does not change this
#!/bin/bash BASE_URL="https://support.fortinet.com/api/v2" TOKEN="your_api_token" VER="7.4.7" BUILD="2731"
Let’s break it down:
| Component | Likely Meaning | |-----------|----------------| | fgtvm | FortiGate Virtual Machine | | 64 | 64-bit architecture | | kvm | Target hypervisor = KVM | | v747m | Version 7.4.7 (possibly ‘m’ for maintenance release) | | build2731 | Internal build number 2731 | | fortinet | Vendor = Fortinet | | out | Output artifact (or ‘out’ as in ‘output directory’) | | kvm | Repeated for emphasis or indicating KVM-specific format | | qcow2 | Disk image format: QEMU Copy-On-Write v2 | | new | Fresh release / latest update / new deployment |