Setting up the FortiGate-VM HA configuration
From the CLI of each FortiGate-VM instance, configure both FortiGate-VMs for high availability (HA). Both FortiGate-VM instances must have the same HA configuration, for example:
config system ha
set group-name "group-01"
set mode a-p
set password <password>
set hbdev "port4" 50
set override disable
set monitor "port2"
end