Deploying a native mode FortiGate-VM on OCI
This guide demonstrates how to launch a native mode FortiGate-VM on OCI. This deployment consists of the following steps:
- Create a native mode FGT-VM64-OPC custom image.
- Create a FGT-VM64-OPC instance with the native mode custom image.
- Attach a hard disk to the FGT-VM64-OPC with Internet Small Computer Systems Interface (iSCSI) mode.
- Run diagnose commands.
To create a native mode FortiGate-VM custom image:
- Obtain the deployment image file and upload the forties.qcow2 file to OCI object storage as To obtain the deployment image file and place it in your bucket: describes. Obtain the file URL path.
- Import the image:
- Go to Compute > Custom Images. Click Import Image.
- In the Import Image dialog, complete the fields. In the OBJECT STORAGE URL field, enter the URL link obtained in step 1.
- Under OPERATING SYSTEM, select Linux.
- Under IMAGE TYPE, select QCOW2.
- Under LAUNCH MODE, select NATIVE MODE.
- Click Import Image. After some time, the FortiGate for OCI custom image becomes available on OCI.
To create a FortiGate-VM instance with the native mode custom image:
- Log into the OCI web portal. Go to Compute > Instances > Create Instance.
- Configure the FortiGate-VM instance:
- In the Name your instance field, enter the desired name for your FortiGate-VM instance.
- Select an availability domain for your instance.
- Under Choose an operating system or image source, select the image source as the image created in the previous step.
- Under Choose instance type, select Virtual Machine or Bare Metal Machine.
- Under Choose instance shape, select Change Shape and select the instance shape.
- Under Configure networking, select your virtual cloud network and subnet.
- Leave the Configure boot volume options at their default values. You can also add an SSH key file if desired.
- Click Create. After a few minutes, the instance is ready and running. You can access the FortiGate-VM with your SSH key or using the username "admin" and the OCID as the password.
- Go to the Instance Information tab for the FortiGate-VM. Verify that the instance's Launch Mode displays as NATIVE.
To attach a hard disk to the FortiGate-VM with iSCSI mode:
- From the navigation bar, click Attach Block Volume.
- Under Choose how you want to attach your block volume, select ISCSI.
- Leave ACCESS at the default value, READ/WRITE.
- Configure other options as desired.
- Click Attach. After a few minutes, the Instance Information page shows that the block volume was attached.
- Under Attached Block Volumes, go to the block volume entry, and click iSCSI Commands & Information. You can find this iSCSCI's IP address and IQN here.
- Log into the FortiGate and run the following commands to configure the iSCSI hard disk:
config system iscsi
edit "Demo-iSCSI-HD"
set ip 169.254.2.4 set iqn "iqn.2015-12.com.oracleiaas:debf5040-260a-4a28-a00e-da172baa6698"
next
end
- Run the
diagnose hardware deviceinfo disk
command to ensure that the second hard drive (50.0 GiB) is attached. The output should look like the following:Disk SYSTEM(boot) 46.6GiB type: ISCSI [IET Controller] dev: /dev/sda
partition 123.0MiB, 62.0MiB free mounted: Y label: dev: /dev/sda1(boot) start: 2048
partition 1.7GiB, 1.7GiB free mounted: Y label: dev: /dev/sda2(boot) start: 264192
partition ref: 3 127.0MiB, 86.0MiB free mounted: N label: dev: /dev/sda3 start: 3932160
Disk Virtual-Disk ref: 32 50.0GiB type: ISCSI [IET Controller] dev: /dev/sdc
partition ref: 33 49.2GiB, 48.9GiB free mounted: N label: LOGUSEDX6FFE3A65 dev: /dev/sdc1 start: 2048
Total available disks: 2 Max SSD disks: 8 Available storage disks: 1
To run diagnose commands:
- Run the following commands to configure the iSCSI disk:
config system iscsi
edit "i1"
set ip class_ip
set iqn string
next
end
- Run the
execute iscsi logout <iscis-disk-name>
command to disconnect the iSCSI disk. - Run the
execute iscsi login <iscis-disk-name>
command to connect the iSCSI disk.