Fortiweb Manager On
Total Page:16
File Type:pdf, Size:1020Kb
FortiWeb Manager-VM on KVM FortiWeb Manager-VM on KVM TABLE OF CONTENTS Preparing for the FortiWeb Manager Installation 4 Prerequisites and Requirements 4 Download the FortiWeb Manager-VM software 5 Deploying FortiWeb Manager-VM on KVM 6 Deploying FortiWeb Manager-VM using VirtManager 6 Deploying FortiWeb Manager-VM using Linux bash 10 Optional: Resizing the virtual disk (vDisk) 11 Configuring access to FortiWeb Manager 12 Uploading the license 13 Downloading a FortiWeb Manager license 13 Uploading license to FortiWeb Manager 14 FortiWeb Manager-VM on KVM 3 Fortinet Technologies Inc. Preparing for the FortiWeb Manager Installation Preparing for the FortiWeb Manager Installation FortiWeb Manager supports the following hypervisor versions: l VMware ESXi (version 5.5 or higher) l VMware Workstation (version 10 or higher) l VMware Fusion (version 8.5 or higher) l KVM KVM is used as a hypervisor; enable the nested visualization to speed up the system. Refer to https://www.linux- kvm.org/page/Nested_Guests for more information. For best performance in hypervisor deployments, install FortiWeb Manager-VM on a "bare metal" (type 1) hypervisor. Hypervisors that are installed as applications on top of a general purpose operating system (Windows, Mac OS X or Linux) host have fewer computing resources available due to the host OS’s own overhead. For hypervisor deployments, hardware-assisted virtualization (Intel VT or AMD-V) must be enabled in the BIOS. You must also have the VM environment client installed on a management computer. (A management computer is a desktop or a laptop that you use to deploy and manage your virtual machines.) Prerequisites and Requirements l 64-bit support required (kernel and runtime) l A currently supported version of Mozilla Firefox or Google Chrome l Other HTML5 compliant web browsers may work but are not fully tested or supported l 2 CPUs minimum l 8 GB RAM minimum (8+ GB RAM recommended ) l For demonstration only: 4GB RAM minimal for VMWare Workstation (8+ GB RAM recommended ) l 70 GB of dedicated hard disk space l The firmware version of the FortiWeb devices managed by FortiWeb Manager should be 5.9.0 or higher l Downgrade is NOT supported (snapshot is recommended before upgrade operations) FortiWeb Manager-VM on KVM 4 Fortinet Technologies Inc. Download the FortiWeb Manager-VM software Download the FortiWeb Manager-VM software 1. Go to the Fortinet support site (https://support.fortinet.com) and log in. 2. Under Download, click Firmware Images. 3. Click the FortiWeb Manager link and navigate to the version that you want to download. 4. Download the appropriate .zip file. l ESXi/ESX image: image.out.ovf.zip l VMware workstation and VMware Fusion image: image.out.vmware.zip l KVM image: image.out.kvm.zip 5. Use this file for virtual appliance (VM) new installations. It contains a deployable virtual machine package. (The .out image files are for upgrading existing installations, and cannot be used for a new installation.) 6. Extract the .zip file to a folder. FortiWeb Manager-VM on KVM 5 Fortinet Technologies Inc. Deploying FortiWeb Manager-VM on KVM Deploying FortiWeb Manager-VM on KVM Deploying FortiWeb Manager-VM using VirtManager The following steps introduce how to install FortiWeb Manager-VM using VirtManager, and the server is Ubuntu 16.04 LTS headless server. 1. On your KVM host server, launch Virtual Machine Manager (virt-manager), and then select Create a new virtual machine. 2. Ensure that Connection is localhost (the default value). 3. Select Import existing disk image. FortiWeb Manager-VM on KVM 6 Fortinet Technologies Inc. Deploying FortiWeb Manager-VM on KVM 4. Click Forward. 5. Click Browse to navigate to boot.qcow2 and select it. 6. Use the default values for OS Type and Version. 7. Click Forward. FortiWeb Manager-VM on KVM 7 Fortinet Technologies Inc. Deploying FortiWeb Manager-VM on KVM 8. To ensure high performance under heavy load, it's recommended to use at lease 8 GB of RAM and 2 CPUs. 9. Click Forward. FortiWeb Manager-VM on KVM 8 Fortinet Technologies Inc. Deploying FortiWeb Manager-VM on KVM 10. The installation wizard displays a summary of the configurations you have set. Select Customize configuration before install so that you can add more Network Interface Cards (NICs). 11. During installation process, the system automatically creates a NIC. You need to create three more NICs because FortiWeb Manager supports four network interfaces. The Device model of these four NICs should be virtio. l For the NIC which is created by the system, change its Device model to virtio. l Create three more NICs. Click Add Hardware at the bottom left of the window. In the Network configuration, set the Network source FortiWeb Manager-VM on KVM 9 Fortinet Technologies Inc. Deploying FortiWeb Manager-VM on KVM as shown below or choose other options according to your network design, check the MAC address and specify it, and select virtio for Device model. Click Finish. Repeat this step three times to create three NICs. 12. Click Begin Installation at the top left of the window. Deploying FortiWeb Manager-VM using Linux bash The following steps introduce how to install FortiWeb Manager-VM using Linux bash, and the server is Ubuntu 16.04 LTS headless server. 1. Go to the path where you unzip the FortiWeb Manager-VM image file, such as /home/user/image-kvm- 64/boot.qcow2 or /root/image-kvm-64/boot.qcow2. 2. Install Fortiweb Manager-VM. virt-install \ --connect qemu:///system \ --virt-type kvm \ --name <specify a name for FortiWeb Manager VM> \ --memory 8192 \ FortiWeb Manager-VM on KVM 10 Fortinet Technologies Inc. Deploying FortiWeb Manager-VM on KVM --vcpus 2 \ --cpu host \ --os-type=linux \ --os-variant=generic \ --import \ --disk path=/home/user/image-kvm-64/boot.qcow2,format=qcow2 \ --network network=default,model=virtio \ --network network=default,model=virtio \ --network network=default,model=virtio \ --network network=default,model=virtio Optional: Resizing the virtual disk (vDisk) The following steps introduce how to resize the virtual disk, using Ubuntu 16.04 LTS headless server as an example. 1. Check the size of the vDisk. The default size is 70 GB. qemu-img info <the path of the image file> For example: qemu-img info /opt/kvm_013001_zx/boot.qcow2 2. Increase the size of the vDisk. It's recommended to shut down the virtual appliance before performing this step. qemu-img resize <the path of the image file> +<the size you want to adjust> For example: qemu-img resize /opt/kvm_013001_zx/boot.qcow2 +20G 3. Check the size of the vDisk again to make sure the size is changed. qemu-img info <the path of the image file> 4. Power on the virtual appliance. 5. Format the log disk. execute formatlogdisk On KVM, the expanded space will not be recognized by FortiWeb Manager until the vDisk is re-formatted. 6. The appliance will automatically restart. The disk is being formatted after the first restart. It might take several minutes depending on the size of the disk. 7. After the disk is formatted, the appliance restarts again. FortiWeb Manager-VM on KVM 11 Fortinet Technologies Inc. Configuring access to FortiWeb Manager Configuring access to FortiWeb Manager 1. Power on FortiWeb Manager-VM. Wait until FortiWeb Manager initialization is finished. 2. Access the FortiWeb Manager CLI. The default user name is “admin". There is no password by default. For KVM, you need to access the CLI through Telnet. Enter: telnet <LINUX_IP>:10301 3. Set the IP address of the network interface named port1, or whichever network interface maps to the network physically connected to your management computer. Set interface <PORT> (ip|ip6) <IPADDRESS/LENGTH> where <IPADDRESS/LENGTH> is the IPv4 or IPv6 address assigned to the network interface, such as 192.168.1.99. The correct IP will vary by your configuration of the network. 4. Configure a static route with the default gateway. set route <DST/LENGTH> gw <GATEWAY> device <DEVICE> where <GATEWAY> is the IP address of the gateway router. You should now be able to connect via the network from your management computer to port1 of FortiWeb Manager- VM using: l a web browser for the web UI (e.g. If port1 has the IP address 192.168.1.1, go to https://192.168.1.1/) l an SSH client for the CLI (e.g. If port1 has the IP address 192.168.1.1, connect to 192.168.1.1 on port 22.) When connecting to the web UI via HTTPS, if you cannot get a connection, verify that your computer’s time zone matches the appliance’s configured system time. For more information on how to configure the time and time zone, see FortiWeb Manager Administrator's Guide - System Settings. It's recommended to change your password in System Settings > Admin > Administrators after logging in. FortiWeb Manager-VM on KVM 12 Fortinet Technologies Inc. Uploading the license Uploading the license By default, FortiWeb Manager is installed with a 15-day evaluation license that allows you to configure two FortiWeb devices. To continue to use the product after 15 days have passed, or to configure additional FortiWeb devices, one of the following licenses is required. Neither license has an expiry date: l Base – Add up to 10 devices. l Unlimited – No limit to the number of devices you can add. Licenses can be obtained through any Fortinet partner. If you don't have a partner, contact [email protected] for assistance in purchasing a license. Downloading a FortiWeb Manager license 1. Log in to the CLI using admin account credential and enter the following command: get system status 2. Get the computer ID in the printout.