Fortigate VM Install 50
Fortigate VM Install 50
Fortigate VM Install 50
Change Log....................................................................................................... 5
Introduction....................................................................................................... 6
Document scope...................................................................................................... 6
FortiGate VM Overview .................................................................................... 7
FortiGate VM models and licensing......................................................................... 7
FortiGate VM evaluation license ........................................................................ 7
Registering FortiGate VM with Customer Service & Support .................................. 8
Downloading the FortiGate VM deployment package............................................. 9
Deployment package contents .............................................................................. 10
Citrix XenServer ............................................................................................... 10
OpenXEN ......................................................................................................... 10
Hyper-V ............................................................................................................ 11
KVM ................................................................................................................. 11
VMware ESX Server ......................................................................................... 11
Deploying the FortiGate VM appliance .................................................................. 11
Deployment example: VMware ESXi ............................................................ 13
Open the FortiGate VM OVF file with the vSphere client....................................... 13
Configure FortiGate VM hardware settings ........................................................... 19
Transparent mode configuration...................................................................... 19
Power on your FortiGate VM ................................................................................. 20
Deployment example: MS Hyper-V ............................................................... 21
Create the FortiGate VM virtual machine............................................................... 21
Configure FortiGate VM hardware settings ........................................................... 25
FortiGate VM virtual processors ...................................................................... 27
FortiGate VM network adapters....................................................................... 27
FortiGate VM virtual hard disk ......................................................................... 28
Start the FortiGate VM ........................................................................................... 33
Deployment example: KVM ........................................................................... 34
Create the FortiGate VM virtual machine............................................................... 34
Configure FortiGate VM hardware settings ........................................................... 36
Start the FortiGate VM ........................................................................................... 36
Deployment example: OpenXen.................................................................... 37
Create the FortiGate VM virtual machine (VMM) ................................................... 37
Deployment example: Citrix Xen................................................................... 42
Create the FortiGate VM virtual machine (XenCenter)........................................... 42
Page 3
Configure virtual hardware..................................................................................... 44
Configuring number of CPUs and memory size .............................................. 44
Configuring disk storage.................................................................................. 46
FortiGate VM Initial Configuration ................................................................ 47
Set FortiGate VM port1 IP address........................................................................ 47
Connect to the FortiGate VM Web-based Manager .............................................. 49
Upload the FortiGate VM license file ..................................................................... 49
Validate the FortiGate VM license with FortiManager............................................ 50
Configure your FortiGate VM ................................................................................. 52
Table of Contents Page 4 FortiOS Handbook (VMware) VM Installation for FortiOS 5.0
Change Log
2013-11-07 Conversion to FortiOS Handbook chapter which will include additional VM platforms.
2014-01-24 Published.
Page 5
Introduction
FortiGate virtual appliances allow you to mitigate blind spots by implementing critical security
controls within your virtual infrastructure. They also allow you to rapidly provision security
infrastructure whenever and wherever it is needed. FortiGate virtual appliances feature all of the
security and networking services common to traditional hardware-based FortiGate appliances.
With the addition of virtual appliances from Fortinet, you can deploy a mix of hardware and
virtual appliances, operating together and managed from a common centralized management
platform.
Document scope
This document describes how to deploy a FortiGate virtual appliance in several virtualization
server environments. This includes how to configure the virtual hardware settings of the virtual
appliance.
This document assumes:
you have already successfully installed the virtualization server on the physical machine,
you have installed appropriate VM management software on either the physical server or a
computer to be used for VM management.
This document does not cover configuration and operation of the virtual appliance after it has
been successfully installed and started. For these issues, see the FortiGate 5.0 Handbook.
This document includes the following sections:
FortiGate VM Overview
Deployment example: VMware ESXi
Deployment example: MS Hyper-V
Deployment example: KVM
Deployment example: OpenXen
Deployment example: Citrix Xen
Fortinet offers the FortiGate VM in five virtual appliance models determined by license. When
configuring your FortiGate VM, be sure to configure hardware settings within the ranges
outlined in Table 1. Contact your Fortinet Authorized Reseller for more information.
Table 1: FortiGate VM model information
Managed Wireless Access Points 32 / 32 32 / 64 256 / 512 256 / 512 1024 / 4096
(tunnel mode / global)
After placing an order for FortiGate VM, a license registration code is sent to the email address
used on the order form. Use the registration number provided to register the FortiGate VM with
Customer Service & Support and then download the license file. Once the license file is
uploaded to the FortiGate VM and validated, your FortiGate VM appliance is fully functional.
To obtain the FortiGate VM license file you must first register your FortiGate VM with Customer
Service & Support.
3. Enter the registration number that was emailed to you and select Register. A registration
form will appear.
4. After completing the form, a registration acknowledgement page will appear.
5. Select the License File Download link.
6. You will be prompted to save the license file (.lic) to your local computer. See Upload the
FortiGate VM license file on page 49 for instructions on uploading the license file to your
FortiGate VM via the Web-based Manager.
FortiGate VM deployment packages are included with FortiGate firmware images on the
Customer Service & Support site. First, see Table 2 to determine the appropriate VM
deployment package for your VM platform.
Table 2: Selecting the correct FortiGate VM deployment package for your VM platform
OpenXen FGT_VM64-v500-buildnnnn-FORTINET.out.OpenXen.zip
Hyper-V FGT_VM64-v500-buildnnnn-FORTINET.out.hyperv.zip
KVM FGT_VM64-v500-buildnnnn-FORTINET.out.kvm.zip
For more information see the FortiGate product datasheet available on the Fortinet web site,
http://www.fortinet.com/products/fortigate/virtualappliances.html.
The firmware images FTP directory is organized by firmware version, major release, and patch
release. The firmware images in the directories follow a specific naming convention and each
firmware image is specific to the device model. For example, the
FGT_VM32-v500-build0151-FORTINET.out.ovf.zip image found in the v5.0 Patch Release 2
directory is specific to the FortiGate VM 32-bit environment.
You can also download the FortiGate Release Notes, FORTINET-FORTIGATE MIB file, FSSO
images, and SSL VPN client in this directory. The Fortinet Core MIB file is located in the main
FortiGate v5.00 directory.
Citrix XenServer
The FORTINET.out.CitrixXen.zip file contains:
fortios.vhd: the FortiGate VM system hard disk in VHD format
fortios.xva: binary file containing virtual hardware configuration settings
in the ovf folder:
FortiGate-VM64.ovf: Open Virtualization Format (OVF) template file, containing virtual
hardware settings for Xen
fortios.vmdk: the FortiGate VM system hard disk in VMDK format
datadrive.vmdk: the FortiGate VM log disk in VMDK format
The ovf folder and its contents is an alternative method of installation to the .xva and VHD disk
image.
OpenXEN
The FORTINET.out.OpenXen.zip file contains only fortios.qcow2, the FortiGate VM system hard
disk in qcow2 format. You will need to manually:
create a 30GB log disk
specify the virtual hardware settings
KVM
The FORTINET.out.kvm.zip contains only fortios.qcow2, the FortiGate VM system hard disk in
qcow2 format. You will need to manually:
create a 30GB log disk
specify the virtual hardware settings
Prior to deploying the FortiGate VM appliance, the VM platform must be installed and
configured so that it is ready to create virtual machines. The installation instructions for
FortiGate VM assume that
You are familiar with the management software and terminology of your VM platform.
An Internet connection is available for FortiGate VM to contact FortiGuard to validate its
license or, for closed environments, a FortiManager can be contacted to validate the
FortiGate VM license. See Validate the FortiGate VM license with FortiManager on
page 50.
For assistance in deploying FortiGate VM, refer to the deployment chapter in this guide that
corresponds to your VMware environment. You might also need to refer to the documentation
provided with your VM server. The deployment chapters are presented as examples because for
any particular VM server there are multiple ways to create a virtual machine. There are
command line tools, APIs, and even alternative graphical user interface tools.
Before you start your FortiGate VM appliance for the first time, you might need to adjust virtual
disk sizes and networking settings. The first time you start FortiGate VM, you will have access
only through the console window of your VM server environment. After you configure one
2. Select File > Deploy OVF Template to launch the OVF Template wizard.
4. Verify the OVF template details. This page details the product name, download size, size on
disk, and description. Select Next to continue.
The OVF Template End User License Agreement page opens.
Deployment example: VMware ESXi Page 14 FortiOS Handbook (VMware) VM Installation for FortiOS 5.0
Figure 6: End user license agreement page
5. Read the end user license agreement for FortiGate VM. Select Accept and then select Next
to continue.
The OVF Template Name and Location page opens.
6. Enter a name for this OVF template. The name can contain up to 80 characters and it must
be unique within the inventory folder. Select Next to continue.
The OVF Template Disk Format page opens.
Deployment example: VMware ESXi Page 15 FortiOS Handbook (VMware) VM Installation for FortiOS 5.0
Figure 8: Disk format page
Deployment example: VMware ESXi Page 16 FortiOS Handbook (VMware) VM Installation for FortiOS 5.0
Figure 9: Network mapping page
9. Map the networks used in this OVF template to networks in your inventory. Network 1 maps
to port1 of the FortiGate VM. You must set the destination network for this entry to access
the device console. Select Next to continue.
The OVF Template Ready to Complete page opens.
10.Review the template configuration. Make sure that Power on after deployment is not
enabled. You might need to configure the FortiGate VM hardware settings prior to powering
on the FortiGate VM.
11.Select Finish to deploy the OVF template. You will receive a Deployment Completed
Successfully dialog box once the FortiGate VM OVF template wizard has finished.
Deployment example: VMware ESXi Page 17 FortiOS Handbook (VMware) VM Installation for FortiOS 5.0
Configure FortiGate VM hardware settings
Before powering on your FortiGate VM you must configure the virtual memory, virtual CPU, and
virtual disk configuration to match your FortiGate VM license. See Table 1 on page 7 for
FortiGate VM model information.
Deployment example: VMware ESXi Page 18 FortiOS Handbook (VMware) VM Installation for FortiOS 5.0
Power on your FortiGate VM
You can now proceed to power on your FortiGate VM. There are several ways to do this:
Select the name of the FortiGate VM you deployed in the inventory list and select Power on
the virtual machine in the Getting Started tab.
In the inventory list, right-click the name of the FortiGate VM you deployed, and select
Power > Power On.
Select the name of the FortiGate VM you deployed in the inventory list. Click the Power On
button on the toolbar.
Select the Console tab to view the console. To enter text, you must click in the console pane.
The mouse is then captured and cannot leave the console screen. As the FortiGate console is
text-only, no mouse pointer is visible. To release the mouse, press Ctrl-Alt.
Deployment example: VMware ESXi Page 19 FortiOS Handbook (VMware) VM Installation for FortiOS 5.0
Deployment example: MS Hyper-V
Once you have downloaded the .hyperv.zip file and extracted the package contents to a
folder on your Microsoft server, you can deploy the VHD package to your Microsoft Hyper-V
environment.
The following topics are included in this section:
Create the FortiGate VM virtual machine
Configure FortiGate VM hardware settings
Start the FortiGate VM
2. Select the server in the right-tree menu. The server details page is displayed.
3. Right-click the server and select New and select Virtual Machine from the menu. Optionally,
in the Actions menu, select New and select Virtual Machine from the menu.
The New Virtual Machine Wizard opens.
Deployment example: MS Hyper-V Page 22 FortiOS Handbook (VMware) VM Installation for FortiOS 5.0
Figure 15:Specify Name and Location page
5. Enter a name for this virtual machine. The name is displayed in the Hyper-V Manager.
Select Next to continue. The Assign Memory page is displayed.
6. Specify the amount of memory to allocate to this virtual machine. The default memory for
FortiGate VM is 2GB (2048MB).
Select Next to continue. The Configure Networking page is displayed.
Deployment example: MS Hyper-V Page 23 FortiOS Handbook (VMware) VM Installation for FortiOS 5.0
Figure 17:Configure Networking page
7. Each new virtual machine includes a network adapter. You can configure the network
adapter to use a virtual switch, or it can remain disconnected. FortiGate VM requires four
network adapters. You must configure network adapters in the Settings page.
Select Next to continue. The Connect Virtual Hard Disk page is displayed.
8. Select to use an existing virtual hard disk and browse for the fmg.vhd file that you
downloaded from the Fortinet Customer Service & Support portal.
Select Next to continue. The Summary page is displayed.
Deployment example: MS Hyper-V Page 24 FortiOS Handbook (VMware) VM Installation for FortiOS 5.0
Figure 19:Summary page
9. To create the virtual machine and close the wizard, select Finish.
Before powering on your FortiGate VM you must configure the virtual memory, virtual CPU, and
virtual disk configuration to match your FortiGate VM license. See Table 1 on page 7 for
FortiGate VM model information.
Deployment example: MS Hyper-V Page 25 FortiOS Handbook (VMware) VM Installation for FortiOS 5.0
Figure 20:Hyper-V Manager
2. Configure virtual processors, network adapters, and virtual hard drive settings.
3. Select Apply to save the settings and then select OK to close the settings page.
Deployment example: MS Hyper-V Page 26 FortiOS Handbook (VMware) VM Installation for FortiOS 5.0
FortiGate VM virtual processors
You must configure FortiGate VM virtual processors in the server settings page. The number of
processors is dependent on your server environment.
2. Configure the number of virtual processors for the FortiGate VM virtual machine. Optionally,
you can use resource controls to balance resources among virtual machines.
3. Select Apply to save the settings.
Deployment example: MS Hyper-V Page 27 FortiOS Handbook (VMware) VM Installation for FortiOS 5.0
Figure 23:Network Adapter page
2. You must manually configure four network adapters for FortiGate VM in the settings page.
For each network adapter, select the virtual switch from the drop-down list.
3. Select Apply to save the settings.
If you know your environment will expand in the future, it is recommended to add hard disks
larger than the 30GB FortiGate VM base license requirement. This will allow your environment
to be expanded as required while not taking up more space in the SAN than is needed.
Deployment example: MS Hyper-V Page 28 FortiOS Handbook (VMware) VM Installation for FortiOS 5.0
Figure 24:Hard Drive page
Deployment example: MS Hyper-V Page 29 FortiOS Handbook (VMware) VM Installation for FortiOS 5.0
Figure 26:Choose Disk Format page
4. Select to use VHDX format virtual hard disks. This format supports virtual disks up to 64TB
and is resilient to consistency issues that might occur from power failures. This format is not
supported in operating systems earlier than Windows Server 2012.
Select Next to continue. The Choose Disk Type page opens.
Deployment example: MS Hyper-V Page 30 FortiOS Handbook (VMware) VM Installation for FortiOS 5.0
5. Select the type of virtual disk you want to use. Select one of the following disk types:
Fixed size: This type of disk provides better performance and is recommended for
servers running applications with high levels of disk activity. The virtual hard disk file
that is created initially uses the size of the virtual hard disk and does not change when
data is deleted or added.
Dynamic expanding: This type of disk provides better use of physical storage space
and is recommended for servers running applications that are not disk intensive. The
virtual disk file that is created is small initially and changes as data is added.
Differencing: This type of disk is associated in a parent-child relationship with another
disk that you want to leave intact. You can make changes to the data or operating
system without affecting the parent disk, so that you can revert the changes easily. All
children must have the same virtual hard disk format as the parent (VHD or VHDX).
Select Next to continue. The Specify Name and Location page opens.
6. Specify the name and location of the virtual hard disk file. Use the Browse button to select a
specific file folder on your server.
Select Next to continue. The Configure Disk page opens.
Deployment example: MS Hyper-V Page 31 FortiOS Handbook (VMware) VM Installation for FortiOS 5.0
Figure 29:Configure Disk page
7. Select to create a new blank virtual hard disk and enter the size of the disk in GB. The
maximum size is dependent on your server environment.
Select Next to continue. The Summary page opens.
8. The summary page provides details of the virtual hard disk. Select Finish to create the virtual
hard disk.
9. Select Apply to save the settings and select OK to exit the settings page.
Deployment example: MS Hyper-V Page 32 FortiOS Handbook (VMware) VM Installation for FortiOS 5.0
Start the FortiGate VM
You can now proceed to power on your FortiGate VM. Select the name of the FortiGate VM in
the list of virtual machines, right-click, and select Start in the menu. Optionally, you can select
the name of the FortiGate VM in the list of virtual machines and select Start in the Actions menu.
Deployment example: MS Hyper-V Page 33 FortiOS Handbook (VMware) VM Installation for FortiOS 5.0
Deployment example: KVM
Once you have downloaded the FORTINET.out.kvm.zip file and extracted virtual hard drive
image file fortios.qcow2, you can create the virtual machine in your KVM environment.
The following topics are included in this section:
Create the FortiGate VM virtual machine
Configure FortiGate VM hardware settings
Start the FortiGate VM
10.If you copied the fortios.qcow2 file to /var/lib/libvirt/images, it will be visible on the
right. If you saved it somewhere else on your server, select Browse Local and find it.
11.Choose Choose Volume.
12.Select Forward.
13.Specify the amount of memory and number of CPUs to allocate to this virtual machine. The
amounts must not exceed your license limits. See FortiGate VM models and licensing on
page 7.
14.Select Forward.
15.Expand Advanced options. A new virtual machine includes one network adapter by default.
Select a network adapter on the host computer. Optionally, set a specific MAC address for
the virtual network interface. Set Virt Type to ??? and Architecture to ???.
Deployment example: KVM Page 35 FortiOS Handbook (VMware) VM Installation for FortiOS 5.0
16.Select Finish.
Before powering on your FortiGate VM you must add the log disk and configure the virtual
hardware of your FortiGate VM.
If you know your environment will expand in the future, it is recommended to add hard disks
larger than the 200GB FortiGate VM base license requirement. This will allow your environment
to be expanded as required while not taking up more space in the SAN than is needed.
4. Enter:
FortiGate VM allows for eight log disks to be added to a deployed instance. After adding
additional hard disks to your FortiGate VM, you must use the following FortiGate CLI command
to extend the LVM logical volume:
execute lvm start
execute lvm extend <arg ..>
5. Select Network to configure add more the network interfaces. The Device type must be
Virtio.
A new virtual machine includes one network adapter by default. You can add more through
the Add Hardware window. FortiGate VM requires four network adapters. You can configure
network adapters to connect to a virtual switch or to network adapters on the host
computer.
6. Select Finish.
You can now proceed to power on your FortiGate VM. Select the name of the FortiGate VM in
the list of virtual machines. In the toolbar, select Console and then select Start.
Deployment example: KVM Page 36 FortiOS Handbook (VMware) VM Installation for FortiOS 5.0
Deployment example: OpenXen
13.Specify the amount of memory and number of CPUs to allocate to this virtual machine. The
amounts must not exceed your license limits. See FortiGate VM models and licensing on
page 7.
Deployment example: OpenXen Page 38 FortiOS Handbook (VMware) VM Installation for FortiOS 5.0
14.Select Forward.
15.Select Customize configuration before install. This enables you to make some hardware
configuration changes before VM creation is started.
16.Expand Advanced options. A new virtual machine includes one network adapter by default.
Select Specify shared device name and enter the name of the bridge interface on the
OpenXen host. Optionally, set a specific MAC address for the virtual network interface.
Virt Type and Architecture are set by default and should be correct.
Deployment example: OpenXen Page 39 FortiOS Handbook (VMware) VM Installation for FortiOS 5.0
17.Select Finish.
The virtual machine hardware configuration window opens.
You can use this window to add hardware such as network interfaces and disk drives.
18.Select Add Hardware. In the Add Hardware window select Storage.
19.Select Create a disk image on the computers harddrive and set the size to 30GB.
If you know your environment will expand in the future, it is recommended to add hard disks
larger than the 200GB FortiGate VM base license requirement. This will allow your environment
to be expanded as required while not taking up more space in the SAN than is needed.
20.Enter:
FortiGate VM allows for eight log disks to be added to a deployed instance. After adding
additional hard disks to your FortiGate VM, you must use the following FortiGate CLI command
to extend the LVM logical volume:
execute lvm start
execute lvm extend <arg ..>
Deployment example: OpenXen Page 40 FortiOS Handbook (VMware) VM Installation for FortiOS 5.0
21.Select Network to configure add more the network interfaces. The Device type must be
Virtio.
A new virtual machine includes one network adapter by default. You can add more through
the Add Hardware window. FortiGate VM requires four network adapters. You can configure
network adapters to connect to a virtual switch or to network adapters on the host
computer.
22.Select Finish.
23.Select Begin Installation. After the installation completes successfully, the VM starts and the
console window opens.
Deployment example: OpenXen Page 41 FortiOS Handbook (VMware) VM Installation for FortiOS 5.0
Deployment example: Citrix Xen
5. Select Next.
7. Choose the pool or standalone server that will host the VM, then select Next.
8. Select the storage location for FortiGate VM disk drives or accept the default. Select Next.
9. Configure how each vNIC (virtual network adapter) in FortiGate VM will be mapped to each
vNetwork on the XenServer, then click Next.
Deployment example: Citrix Xen Page 43 FortiOS Handbook (VMware) VM Installation for FortiOS 5.0
11.Select Next to use the default network settings for transferring the VM to the host.
12.select Finish.
The XenServer imports the FortiGate VM files and configures the VM as specified in the OVF
template. Depending on your computers hardware speed and resource load, and also on the
file size and speed of the network connection, this might take several minutes to complete.
When VM import is complete, the XenCenter left pane includes the FortiGate VM in the list of
deployed VMs for your XenServer.
Before you start your FortiGate-VM for the first time, you need to adjust your virtual machines
virtual hardware settings to meet your network requirements.
Deployment example: Citrix Xen Page 44 FortiOS Handbook (VMware) VM Installation for FortiOS 5.0
2. In the left pane, select CPU.
Deployment example: Citrix Xen Page 45 FortiOS Handbook (VMware) VM Installation for FortiOS 5.0
Configuring disk storage
By default the FortiGate VM data disk 30GB. You will probably want to increase this. Disk
resizing must be done before you start the VM for the first time.
Deployment example: Citrix Xen Page 46 FortiOS Handbook (VMware) VM Installation for FortiOS 5.0
FortiGate VM Initial Configuration
Before you can connect to the FortiGate VM web-based manager you must configure a network
interface in the FortiGate VM console. Once an interface with administrative access is
configured, you can connect to the FortiGate VM web-based Manager and upload the FortiGate
VM license file that you downloaded from the Customer Service & Support website.
The following topics are included in this section:
Set FortiGate VM port1 IP address
Connect to the FortiGate VM Web-based Manager
Upload the FortiGate VM license file
Configure your FortiGate VM
Hypervisor management environments include a guest console window. On the FortiGate VM,
this provides access to the FortiGate console, equivalent to the console port on a hardware
FortiGate unit. Before you can access the Web-based manager, you must configure FortiGate
VM port1 with an IP address and administrative access.
You can also use the append allowaccess CLI command to enable other access protocols,
such as auto-ipsec, http, probe-response, radius-acct, snmp, and telnet. The
ping, https, ssh, and fgfm protocols are enabled on the port1 interface by default.
You must configure the default gateway with an IPv4 address. FortiGate VM needs to access
the Internet to contact the FortiGuard Distribution Network (FDN) to validate its license.
6. To upload the FortiGate VM license from an FTP or TFTP server, use the following CLI
command:
execute restore vmlicense {ftp | tftp} <VM license file name>
<Server IP or FQDN>[:server port]
You can also upload the license in the FortiGate VM Web-based Manager. See Upload the
FortiGate VM license file on page 49.
When you have configured the port1 IP address and netmask, launch a web browser and enter
the IP address that you configured for port1. At the login page, enter the username admin and
password field and select Login. The default password is no password. The Web-based
Manager will appear with an Evaluation License dialog box, see Figure 34.
Every Fortinet VM includes a 15-day trial license. During this time the FortiGate VM operates in
evaluation mode. Before using the FortiGate VM you must enter the license file that you
downloaded from the Customer Service & Support website upon registration.
You can also upload the license file via the CLI using the following CLI command:
execute restore vmlicense [ftp | tftp] <filenmame string> <ftp
server>[:ftp port]
2. Select Browse and locate the license file (.lic) on your computer. Select OK to upload the
license file.
3. Refresh the browser to login.
4. Enter admin in the Name field and select Login. The VM registration status appears as valid
in the License Information widget once the license has been validated by the FortiGuard
Distribution Network (FDN) or FortiManager for closed networks.
You can validate your FortiGate VM license with some models of FortiManager. To determine
whether your FortiManager unit has the VM Activation feature, see Features section of the
FortiManager Product Data sheet.
Once the FortiGate VM license has been validated you can begin to configure your device. You
can use the Wizard located in the top toolbar for basic configuration including enabling central
management, setting the admin password, setting the time zone, and port configuration.
For more information on configuring your FortiGate VM see the FortiOS Handbook at
http://docs.fortinet.com.