Versions this guide is based on:

  EVE Image Name Downloaded Original Filename Version vCPUs vRAM Console
1. fortinet-FGT-v5-build1449 FGT_VM64_KVM-v5-build1449-FORTINET.out.kvm.zip 5.6 1 1024 telnet
2. fortinet-FMG-v5.4-build1151 FMG_VM64-v5-build1151-FORTINET.out.ovf.zip 5.4 1 2048 vnc

Other versions should also be supported following bellow's procedure.

Naming of image folder and image name please follow naming table:

http://www.eve-ng.net/index.php/documentation/images-table

1. Obtain Fortigate KVM image and prepare for EVE.

1.1. Using our image table, create correct image folder, this example is for image 1. in the table above. It is Fortinet FGT image. Per our image naming table we have to create image folder starting with fortinet-, lets do it.

mkdir /opt/unetlab/addons/qemu/fortinet-FGT-v5-build1449/

1.2. Upload the downloaded image to the EVE /opt/unetlab/addons/qemu/fortinet-FGT-v5-build1449/  folder using for example FileZilla or WinSCP.

1.3. From the EVE cli, go to newly created image folder.

cd /opt/unetlab/addons/qemu/fortinet-FGT-v5-build1449/

1.4. Unzip original filename

unzip FGT_VM64_KVM-v5-build1449-FORTINET.out.kvm.zip 

1.5. Rename original filename to virtioa.qcow2 and remove original zip file

mv fortios.qcow2 virtioa.qcow2

rm FGT_VM64_KVM-v5-build1449-FORTINET.out.kvm.zip

1.6.  Fix permissions:

/opt/unetlab/wrappers/unl_wrapper -a fixpermissions

2. Obtain FortiManager OVF image and prepare for EVE.

2.1. Using our image table, create correct image folder, this example is for image 1. in the table above. It is Fortinet Manager image. Per our image naming table we have to create image folder starting with fortinet-, lets do it.

mkdir /opt/unetlab/addons/qemu/fortinet-FMG-v5.4-build1151/

2.2. Upload the downloaded image to the EVE /opt/unetlab/addons/qemu/fortinet-FMG-v5.4-build1151/  folder using for example FileZilla or WinSCP.

2.3. From the EVE cli, go to newly created image folder.

cd /opt/unetlab/addons/qemu/fortinet-FMG-v5.4-build1151/ 

2.4. Unzip original filename

unzip FMG_VM64-v5-build1151-FORTINET.out.ovf.zip 

2.5. Convert original vmdk files to qcow2 format

qemu-img convert -f vmdk -O qcow2 fmg.vmdk virtioa.qcow2
qemu-img convert -f vmdk -O qcow2 datadrive.vmdk virtiob.qcow2

2.6. Remove original raw files

rm datadrive.vmdk FortiManager-VM64.ovf FMG_VM64-v5-build1151-FORTINET.out.ovf.zip FortiManager-VM64.vapp.ovf fmg.vmdk

2.7.  Fix permissions:

/opt/unetlab/wrappers/unl_wrapper -a fixpermissions