Install Guest VMs
FortiSandbox supports Local VMs (including Default VM, Optional VM and Custom VM) and Cloud VM. The following table shows the supported VMs by mode:
|
Default VM |
Optional VM |
Custom VM |
|
---|---|---|---|---|
Nested Mode |
Supported |
Supported |
Support vdi format |
Supported |
Non-Nested Mode |
|
|
Support vhd format |
Supported |
To create a custom Windows VM for AWS, follow the steps in the Custom VM Guide which can be found in the Fortinet Developer Network or is available upon request from Customer Support.
Install Guest VMs in Nested Mode
To support the nested VMs, you will need to set up two more interfaces: port2 and port3.
To set up network interfaces for guest VM in Nested mode:
- Guest VM uses port3 to communicate with internet in Nested mode. If you have not created port3 in previous steps, please set it up here. Otherwise, skip this step.
- Shut down the FortiSandbox VM instance from the AWS Portal.
- Create interfaces port2 and port3 for the VMs.
Nested Two interfaces are required:
- Interface 2: port2
- Interface 3: port3
- Attach this network interface to the FortiSandbox VM instance as FSA Port2 and Port3.
- Start the FortiSandbox VM instance from AWS Portal
- On the FortiSandbox GUI, go to System > Interfaces to verify that the network interface is attached.
To install the Guest VM:
- Please follow the instructions in, VM Settings in the FortiSandbox Administration Guide. There are default VMs, Optional VMs and Customized VM can be enabled with GUI or CLI. The cloud VMs can be enabled with the GUI.
- Please make sure the status of port3 is connected on VM External Network Access in the System >Settings page.
If port1’s connection to Fortinet’s image server is not available, the image can be installed with the CLI command: fw-upgrade
. For example:
fw-upgrade -v -thttps –s<your https server> -f/images/WIN10O21V1_1.pkg
Install Guest VMs as Non-Nested Mode
To set up additional network interface for custom VM:
- FortiSandbox uses port2 to communicate with local Windows or Linux clones on Non-Nested mode. If you have not created port2 in the previous steps, please set it up. Otherwise, skip this step.
- Shutdown the FortiSandbox VM instance from the AWS Portal.
- Create interfaces for port2 to install the VMs.
- Attach this network interface to FortiSandbox VM instance as FSA Port2.
- Start the FortiSandbox VM instance from the AWS Portal
- On the FortiSandbox GUI, go to System > Interfaces to verify that the network interface is attached.
To install a custom VM using CLI on Non-Nested Mode:
Install custom VM from a vhd image file in Non-Nested mode:
For example: vm-customized -cn -tftp –u[username] -f/path/to/awsENAwin10x64.vhd -d[machine-uuid] -k[md5] -voWindows10_64 -vnENAwin10x64 -s[server-ip]
Install custom VM from an AMI in Non-Nested mode:
Install guest VM from an AMI if you have created guest VM AMI before, for example:
vm-customized -cn –i[ami-id] -voWindows10_64 -vnENAwin10x64
How to switch between nested and non-nested mode
To switch between Non-Nested and Nested mode, go to the System > AWS config page. Switching modes will reboot the system and delete all the local VMs. For more information, see How to switch between nested and non-nested mode.
For CLI config-reset and factory-reset
, the Guest VM Running Mode setting will be kept.
When backing up and restoring the configuration, the Guest VM Running Mode will also be retained and not restored according to the backup file.
Install Guest VMs in air-gapped mode:
The VM cannot be activated online if FortiSandbox is in air-gapped mode.
To activate the VM in air-gapped mode:
- Go to Log & Report > Events > VM Event.
- Search for the failure of activation with an installation ID log.
- Call the Microsoft Activation Center to get the confirmation ID.
- Use the CLI to add the confirmation ID:
confirm-id -a –k<windows/office key> –c<confirmation ID> –n<VM name>
The re-initialization of the VM will start automatically. Please refer to Hyper-V Admin Guide for other operations.
|