Fortinet black logo
6.1.2

Regular FortiDDoS KVM Deployment

Regular FortiDDoS KVM Deployment

Before you begin:

SSH to your KVM host server and copy the FortiDDoS KVM image(.zip) file to this server and unzip it to one path. There will be two files, displayed similar to the following:

To deploy the FortiDDoS-VM virtual machine:

  1. On the KVM host server, launch the Virtual Machine Manager (virt-manager), and then select Create a new virtual machine.
  2. Select Import existing disk image and click Forward.
  3. Click Browse select boot.qcow2.
  4. Keep the default value for the operating system type and click Forward.
  5. Specify the amount of memory and number of CPUs to allocate to the virtual machine. Ensure the values do not exceed the maximums for your license. Click Forward.
    Note

    Recommendations:

    • KVM04 - 4 CPUs, 16G memory
    • KVM08 - 8 CPUs, 16G memory
    • KVM16 - 16 CPUs, 42G memory
  6. Enter a name for the VM (for example, FortiDDoS-KVM) and select Customize configuration before install. Click Finish.
  7. Create Disk2 and VirtIO adapters.
    1. Click IDE Disk 1 and under Advanced options, select VirtIO for Disk bus and select qcow2 for Storage format. Click Apply.
    2. On the Storage Details page, click Add Hardware to add another disk. Select VirtIO for Bus type and input the full path of data.qcow2 (same path as boot.qcow2), click Finish.
    3. On the NIC Details page, select virtio for the Device model.
    4. Click Add Hardware to add a new VirtIO NIC. On the Network Details page, select virtio as the Device model.
    5. Repeat to add 8 NICs for FortiDDoS Data ports. (The first two NICs are mapped to mgmt1 and mgmt2; the additional 8 ports will be data ports.)
  8. Click Apply and Begin Installation.
  9. After FortiDDoS VM boots up, extend the disk size according to the following steps:
    1. Navigate to the power drop-down menu and select the Force Off option to close the KVM.
    2. Open the KVM server and go to the image path.
    3. Confirm that the VM is off with the command virsh list. The list output should not contain FortiDDoS-VM.
    4. Enter the command qemu-img resize /root/Images/ddos/build0071/boot.qcow2 +1.5G to extend the disk size of boot.qcow2 by 1.5G.
    5. Enter the command qemu-img resize /root/Images/ddos/build0071/data.qcow2 +170G to extend the disk size of data.qcow2 by 170G.
    6. After the disk size has been extended, start the VM.
  10. Once FortiDDoS Vm is booted up, execute formatlogdisk.

The regular FortiDDoS VM installation is now complete.

Regular FortiDDoS KVM Deployment

Before you begin:

SSH to your KVM host server and copy the FortiDDoS KVM image(.zip) file to this server and unzip it to one path. There will be two files, displayed similar to the following:

To deploy the FortiDDoS-VM virtual machine:

  1. On the KVM host server, launch the Virtual Machine Manager (virt-manager), and then select Create a new virtual machine.
  2. Select Import existing disk image and click Forward.
  3. Click Browse select boot.qcow2.
  4. Keep the default value for the operating system type and click Forward.
  5. Specify the amount of memory and number of CPUs to allocate to the virtual machine. Ensure the values do not exceed the maximums for your license. Click Forward.
    Note

    Recommendations:

    • KVM04 - 4 CPUs, 16G memory
    • KVM08 - 8 CPUs, 16G memory
    • KVM16 - 16 CPUs, 42G memory
  6. Enter a name for the VM (for example, FortiDDoS-KVM) and select Customize configuration before install. Click Finish.
  7. Create Disk2 and VirtIO adapters.
    1. Click IDE Disk 1 and under Advanced options, select VirtIO for Disk bus and select qcow2 for Storage format. Click Apply.
    2. On the Storage Details page, click Add Hardware to add another disk. Select VirtIO for Bus type and input the full path of data.qcow2 (same path as boot.qcow2), click Finish.
    3. On the NIC Details page, select virtio for the Device model.
    4. Click Add Hardware to add a new VirtIO NIC. On the Network Details page, select virtio as the Device model.
    5. Repeat to add 8 NICs for FortiDDoS Data ports. (The first two NICs are mapped to mgmt1 and mgmt2; the additional 8 ports will be data ports.)
  8. Click Apply and Begin Installation.
  9. After FortiDDoS VM boots up, extend the disk size according to the following steps:
    1. Navigate to the power drop-down menu and select the Force Off option to close the KVM.
    2. Open the KVM server and go to the image path.
    3. Confirm that the VM is off with the command virsh list. The list output should not contain FortiDDoS-VM.
    4. Enter the command qemu-img resize /root/Images/ddos/build0071/boot.qcow2 +1.5G to extend the disk size of boot.qcow2 by 1.5G.
    5. Enter the command qemu-img resize /root/Images/ddos/build0071/data.qcow2 +170G to extend the disk size of data.qcow2 by 170G.
    6. After the disk size has been extended, start the VM.
  10. Once FortiDDoS Vm is booted up, execute formatlogdisk.

The regular FortiDDoS VM installation is now complete.