Qemu VM in GNS3
Published on January 17, 2016
LikeRunn ing FortiGate as a Qemu VM in GN S3
46
Comment
8
ShareShare Running FortiGate as a Qemu VM in GN S3
Andras Dosztal
FollowAndras Dosztal
Network Domain and Solution Architect at IT Services Hungary Kft.
Preparation
1. Get FortiGate VM. There's a 15 days demo available on
the Fortinet site after registration. The required file's name
will be something like this: FGT_VM64_KVM-
<version>-FORTINET.out.kvm.zip
Make sure you download the KVM version; after
extracting the archive, you should have a file named
fortios.qcow2.
2. FortiGate requires a 2nd hard disk; create an empty one by
entering this command in terminal:
qemu-img create -f qcow2 fortigate_30g.qcow2 30G
3. Upload the images to you GNS3 VM (select Qemu as file
type):
Creating the VM
1. In GNS3, go to Edit Preferences Qemu VMs, then
click on New.
2. In the appearing window, select your GNS3 VM. Click
on Next.
3. Leave the VM type on Default. Click on Next.
4. Enter a name (e.g. FortiGate 5.2.5) for your device. Click
on Next.
5. Change RAM to 1024 MB. Click on Next.
6. Select "fortios.qcow2" from the disk image list (i.e. not the
empty file you created before). Click on Finish.
Setting VM parameters
FortiGate cannot be started right after creating the VM. Select
the FortiGate VM from your Qemu VMs, then click on Edit.
Change the following parameters on each tab:
General settings
Change category to "Security devices"
HDD
Network
Screenshots
Interface settings and ping tests can be found here. Note: for
successful ping tests, you have to enable ping on port2 too ("set
allowaccess ping").