Fgtvm64kvmv721fbuild1254fortinetoutkvmqcow2 Work
Assuming the image has been extracted (it might be gzip compressed – check with file command), create the VM:
virt-install \
--name fortigate-721 \
--ram 4096 \
--vcpus 2 \
--disk path=/var/lib/libvirt/images/fgtvm64kvmv721fbuild1254fortinetoutkvmqcow2,format=qcow2 \
--import \
--os-variant generic \
--network bridge=br0,model=virtio \
--graphics vnc \
--console pty,target_type=serial
Explanation:
config system interface
edit port1
set mode static
set ip 192.168.122.2 255.255.255.0
set allowaccess ping https ssh http
end
If you used the default KVM network (192.168.122.0/24), you can now access the web UI at:
https://192.168.122.2 fgtvm64kvmv721fbuild1254fortinetoutkvmqcow2 work
FortiGate VM 7.2.1 supports VirtIO natively. Check with: Assuming the image has been extracted (it might
get system performance status
Look for "Virtualization: KVM" and "Disk: virtio". Explanation: config system interface edit port1 set mode