Fortinet Document Library

Version:


Table of Contents

FortiGate-VM on VMware ESXi

Resources

Upgrade Path Tool
  • Select version:
  • 6.0
6.0.0
Download PDF
Copy Link

ESXi cloud init reference

For ESX the utility xorriso is used on a Linux host to create the ISO used to boot the VM. The directory structure used to create the ISO is described below.

After the ISO is created you must upload it to your datastore of choice and attach it to the FortiGate-VM after deploying the OVF but before booting it up for the first time.

ls -lR config-drive/

config-drive/:

total 4

drwxrwxr-x 4 fgt-user fgt-user 4096 Feb 8 16:59 openstack

 

config-drive/openstack:

total 8

drwxrwxr-x 2 fgt-user fgt-user 4096 Feb 8 17:07 content

drwxrwxr-x 2 fgt-user fgt-user 4096 Feb 8 17:06 latest

 

config-drive/openstack/content:

total 4

-rw-rw-r-- 1 fgt-user fgt-user 287 Feb 8 17:00 0000

 

config-drive/openstack/latest:

total 4

-rw-r--r-- 1 fgt-user fgt-user 172 Feb 8 17:06 user_data

 

cat config-drive/openstack/content/0000

-----BEGIN FGT VM LICENSE——

#-REDACTED-REDACTED-REDACTED-REDACTED-REDACTED-REDACTED-REDACTED- REDACTED-#

#-REDACTED-REDACTED-REDACTED-REDACTED-REDACTED-REDACTED-REDACTED- REDACTED-#

#-REDACTED-REDACTED-REDACTED-REDACTED-REDACTED-REDACTED-REDACTED-#

-----END FGT VM LICENSE——

 

cat config-drive/openstack/latest/user_data

#Example FGT Day0 Configuration

 

config system global

set hostname Example-Day0

end

config system interface

edit port1

set mode dhcp

set allowaccess https ssh ping end

 

xorriso -as mkisofs -V config-2 -o Day0-CFG-Drive.iso config-drive/

xorriso 1.3.2 : RockRidge filesystem manipulator, libburnia project.

 

Drive current: -outdev 'stdio:Day0-CFG-Drive.iso' Media current: stdio file, overwriteable

Media status : is blank

Media summary: 0 sessions, 0 data blocks, 0 data, 14.3g free

xorriso : WARNING : -volid text does not comply to ISO 9660 / ECMA 119 rules Added to ISO image:

directory '/'='/var/tmp/config-drive'

xorriso : UPDATE : 5 files added in 1 seconds xorriso : UPDATE : 5 files added in 1 seconds ISO

image produced: 185 sectors

Written to medium : 185 sectors at LBA 0

Writing to 'stdio:Day0-CFG-Drive.iso' completed successfully.

 

ls -l Day0-CFG-Drive.iso

-rw-rw-r-- 1 fgt-user fgt-user 378880 Feb 15 13:32 Day0-CFG-Drive.iso

Resources

ESXi cloud init reference

For ESX the utility xorriso is used on a Linux host to create the ISO used to boot the VM. The directory structure used to create the ISO is described below.

After the ISO is created you must upload it to your datastore of choice and attach it to the FortiGate-VM after deploying the OVF but before booting it up for the first time.

ls -lR config-drive/

config-drive/:

total 4

drwxrwxr-x 4 fgt-user fgt-user 4096 Feb 8 16:59 openstack

 

config-drive/openstack:

total 8

drwxrwxr-x 2 fgt-user fgt-user 4096 Feb 8 17:07 content

drwxrwxr-x 2 fgt-user fgt-user 4096 Feb 8 17:06 latest

 

config-drive/openstack/content:

total 4

-rw-rw-r-- 1 fgt-user fgt-user 287 Feb 8 17:00 0000

 

config-drive/openstack/latest:

total 4

-rw-r--r-- 1 fgt-user fgt-user 172 Feb 8 17:06 user_data

 

cat config-drive/openstack/content/0000

-----BEGIN FGT VM LICENSE——

#-REDACTED-REDACTED-REDACTED-REDACTED-REDACTED-REDACTED-REDACTED- REDACTED-#

#-REDACTED-REDACTED-REDACTED-REDACTED-REDACTED-REDACTED-REDACTED- REDACTED-#

#-REDACTED-REDACTED-REDACTED-REDACTED-REDACTED-REDACTED-REDACTED-#

-----END FGT VM LICENSE——

 

cat config-drive/openstack/latest/user_data

#Example FGT Day0 Configuration

 

config system global

set hostname Example-Day0

end

config system interface

edit port1

set mode dhcp

set allowaccess https ssh ping end

 

xorriso -as mkisofs -V config-2 -o Day0-CFG-Drive.iso config-drive/

xorriso 1.3.2 : RockRidge filesystem manipulator, libburnia project.

 

Drive current: -outdev 'stdio:Day0-CFG-Drive.iso' Media current: stdio file, overwriteable

Media status : is blank

Media summary: 0 sessions, 0 data blocks, 0 data, 14.3g free

xorriso : WARNING : -volid text does not comply to ISO 9660 / ECMA 119 rules Added to ISO image:

directory '/'='/var/tmp/config-drive'

xorriso : UPDATE : 5 files added in 1 seconds xorriso : UPDATE : 5 files added in 1 seconds ISO

image produced: 185 sectors

Written to medium : 185 sectors at LBA 0

Writing to 'stdio:Day0-CFG-Drive.iso' completed successfully.

 

ls -l Day0-CFG-Drive.iso

-rw-rw-r-- 1 fgt-user fgt-user 378880 Feb 15 13:32 Day0-CFG-Drive.iso