Fortinet black logo

Step 2: Configure virtual hardware settings

6.1.0
Copy Link
Copy Doc ID 790de906-578c-11eb-b9ad-00505692583a:471944
Download PDF

Step 2: Configure virtual hardware settings

After deploying the FortiDDoS-VM image and before powering on the virtual appliance, configure the virtual appliance hardware settings to suit the size of your deployment.

Virtual hardware settings summarizes the defaults that are set in the default image and provides rough guidelines to help you understand whether you need to upgrade the hardware before you power on the virtual appliance. For more precise guidance on sizing, contact your sales representative or Fortinet Technical Support.

Virtual hardware settings

Component Default Guidelines
Hard disk 32 GB

32 GB is insufficient for most deployments.

Upgrade the hard disk before you power on the appliance.

After you power on the appliance, you must reformat the FortiDDoS OS log disk with the following command:

execute formatlogdisk

This will change the size to 200 GB.

Note: Before you use this command you must first upload a license file.

CPU 4 CPU 4 CPU is appropriate for a VM04 license. Upgrade to 8 or 16 CPU for VM08 and VM16 licenses, respectively.
RAM 4 GB 4 GB is the minimum. See the section on vRAM for guidelines based on expected concurrent connections.
Network interfaces 10 bridging vNICs are mapped to a port group on one virtual switch (vSwitch). Change the mapping as required for your VM environment and network.

Configuring the number of virtual CPUs (vCPUs)

By default, the virtual appliance is configured to use 4 vCPUs. Depending on the FortiDDoS-VM license that you purchased, you can allocate 8 or16 vCPUs.

To change the number of vCPUs:
  1. Use the ESXi client to connect to the server.
  2. In the left pane, right-click the name of the virtual appliance, such as FortiDDoS‑VM-Doc, then select Edit Settings.
  3. In the list of virtual hardware, click CPUs.
  4. In Number of virtual processors, specify the maximum number of vCPUs to allocate. Valid values range from 1 to 8.
  5. Click OK.

Configuring the virtual RAM (vRAM) limit

To change the amount of vRAM:
  1. Use the ESXi client to connect to the server.
  2. In the left pane, right-click the name of the virtual appliance, such as FortiDDoS‑VM-Doc, then select Edit Settings.
  3. The virtual appliance properties dialog appears.

  4. In the list of virtual hardware on the left side of the dialog, click Memory.
  5. In Memory Size, type the maximum number in gigabytes (GB) of the vRAM to allocate.
  6. Click OK.

Mapping the virtual NICs (vNICs) to physical NICs

In FortiDDoS, we have 2 management ports, mgmt1 and mgmt2. In general practice mgmt1 will be used to manage the system using GUI/CLI.

mgmt2 is used for High-availability where 2 FortiDDoS mgmt2 ports share a same VLAN for HA communication.

Port 1 to Port 8 are data ports which form 4 port pairs.

Ports pairs are:

  • Port 1 - Port 2
  • Port 3 – Port 4
  • Port 5 – Port 6
  • Port 7 – Port 8

Odd numbers represent the LAN side and even numbers represent WAN side. Each Port pair that is in use should share the same VLAN which is unique to pair.

Example: Network mapping

Physical Network Adapter

Network Mapping (vSwitch Port Group)

Virtual Network Adapter for FortiDDoS‑VM

FortiDDoS-VMNetwork Interface Name in Web UI/CLI

eth0

VM Network 0

Management

mgmt1

eth1

VM Network 1

HA

mgmt2

VM Network 2

Data

port1

VM Network 3

port2

VM Network 4

port3

VM Network 5

port4

VM Network 6

port5

VM Network 7

port6

VM Network 8

port7

VM Network 9

port8

To add a VM adapter:
  1. Right click on ESXi and select Edit Settings.
  2. Because VM Network adapter1 is mapped to VM mgmt1, set this adapter VLAN to VM Network. VM Network adapter 3 is mapped to VM port1 and VM Network adapter 4 is mapped to port2, so set Network adapter 3 to 1051 and Network adapter 4 to 1052.

    Note: ports come in pairs for input and output, so make sure you do not set an adapter to an existing pair.

  3. Click OK.

HA Configuration

Create a new VLAN for HA and mgmt2 ports of HA primary and secondary should be part of this VLAN. For more information, see the FortiDDoS Handbook.

Step 2: Configure virtual hardware settings

After deploying the FortiDDoS-VM image and before powering on the virtual appliance, configure the virtual appliance hardware settings to suit the size of your deployment.

Virtual hardware settings summarizes the defaults that are set in the default image and provides rough guidelines to help you understand whether you need to upgrade the hardware before you power on the virtual appliance. For more precise guidance on sizing, contact your sales representative or Fortinet Technical Support.

Virtual hardware settings

Component Default Guidelines
Hard disk 32 GB

32 GB is insufficient for most deployments.

Upgrade the hard disk before you power on the appliance.

After you power on the appliance, you must reformat the FortiDDoS OS log disk with the following command:

execute formatlogdisk

This will change the size to 200 GB.

Note: Before you use this command you must first upload a license file.

CPU 4 CPU 4 CPU is appropriate for a VM04 license. Upgrade to 8 or 16 CPU for VM08 and VM16 licenses, respectively.
RAM 4 GB 4 GB is the minimum. See the section on vRAM for guidelines based on expected concurrent connections.
Network interfaces 10 bridging vNICs are mapped to a port group on one virtual switch (vSwitch). Change the mapping as required for your VM environment and network.

Configuring the number of virtual CPUs (vCPUs)

By default, the virtual appliance is configured to use 4 vCPUs. Depending on the FortiDDoS-VM license that you purchased, you can allocate 8 or16 vCPUs.

To change the number of vCPUs:
  1. Use the ESXi client to connect to the server.
  2. In the left pane, right-click the name of the virtual appliance, such as FortiDDoS‑VM-Doc, then select Edit Settings.
  3. In the list of virtual hardware, click CPUs.
  4. In Number of virtual processors, specify the maximum number of vCPUs to allocate. Valid values range from 1 to 8.
  5. Click OK.

Configuring the virtual RAM (vRAM) limit

To change the amount of vRAM:
  1. Use the ESXi client to connect to the server.
  2. In the left pane, right-click the name of the virtual appliance, such as FortiDDoS‑VM-Doc, then select Edit Settings.
  3. The virtual appliance properties dialog appears.

  4. In the list of virtual hardware on the left side of the dialog, click Memory.
  5. In Memory Size, type the maximum number in gigabytes (GB) of the vRAM to allocate.
  6. Click OK.

Mapping the virtual NICs (vNICs) to physical NICs

In FortiDDoS, we have 2 management ports, mgmt1 and mgmt2. In general practice mgmt1 will be used to manage the system using GUI/CLI.

mgmt2 is used for High-availability where 2 FortiDDoS mgmt2 ports share a same VLAN for HA communication.

Port 1 to Port 8 are data ports which form 4 port pairs.

Ports pairs are:

  • Port 1 - Port 2
  • Port 3 – Port 4
  • Port 5 – Port 6
  • Port 7 – Port 8

Odd numbers represent the LAN side and even numbers represent WAN side. Each Port pair that is in use should share the same VLAN which is unique to pair.

Example: Network mapping

Physical Network Adapter

Network Mapping (vSwitch Port Group)

Virtual Network Adapter for FortiDDoS‑VM

FortiDDoS-VMNetwork Interface Name in Web UI/CLI

eth0

VM Network 0

Management

mgmt1

eth1

VM Network 1

HA

mgmt2

VM Network 2

Data

port1

VM Network 3

port2

VM Network 4

port3

VM Network 5

port4

VM Network 6

port5

VM Network 7

port6

VM Network 8

port7

VM Network 9

port8

To add a VM adapter:
  1. Right click on ESXi and select Edit Settings.
  2. Because VM Network adapter1 is mapped to VM mgmt1, set this adapter VLAN to VM Network. VM Network adapter 3 is mapped to VM port1 and VM Network adapter 4 is mapped to port2, so set Network adapter 3 to 1051 and Network adapter 4 to 1052.

    Note: ports come in pairs for input and output, so make sure you do not set an adapter to an existing pair.

  3. Click OK.

HA Configuration

Create a new VLAN for HA and mgmt2 ports of HA primary and secondary should be part of this VLAN. For more information, see the FortiDDoS Handbook.