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
Create the FortiGate VM virtual machine
To create the FortiGate VM virtual machine:
- Launch Virtual Machine Manager (virt-manager) on your KVM host server.
The Virtual Machine Manager home page opens.
- In the toolbar, select Create a new virtual machine.
- Enter a Name for the VM, FGT-VM for example.
- Ensure that Connection is localhost. (This is the default.)
- Select Import existing disk image.
KVM Create the FortiGate VM virtual machine
- Forward.
- In OS Type select Linux.
- In Version, select a Generic version with virtio.
Configure hardware settings Deployment example – KVM
- Select Browse.
- 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.
- Choose Choose Volume.
- Select Forward.
- 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 Overview on page 10.
- Select Forward.
- 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 virtio and Architecture to qcow2.
- Select Finish.
Configure FortiGate VM hardware settings
Before powering on your FortiGate VM you must add the log disk and configure the virtual hardware of your FortiGate VM.
To configure settings for FortiGate VM on the server:
- In the Virtual Machine Manager, locate the name of the virtual machine and then select Open from the toolbar.
- Select Add Hardware. In the Add Hardware window select Storage.
KVM Start the FortiGate VM
- Create a disk image on the computer’s harddrive and set the size to 30GB.
- Enter:
Device type | Virtio disk | |
Cache mode | Default | |
Storage format | raw |
- 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.
- Select Finish.
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. In the toolbar, select Console and then select Start.