Fortinet black logo

VMware ESXi Administration Guide

Creating the config drive ISO

Copy Link
Copy Doc ID 8e95af8b-8674-11eb-9995-00505692583a:251809
Download PDF

Creating the config drive ISO

To create the config drive ISO:
  1. Create the config-drive ISO using a utility such as xorriso (other utilities can also be used to create ISOs, such as mkisofs). Using xorriso, this example refers to the config‑drive directory created above with the relevant license file and configuration script. Here is an example of creating a config-drive ISO on an Ubuntu host:

    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

  2. Now that the configuration drive has been created, place the ISO on the data store so that it can be used with FortiGate-VMs.

  3. Deploy the FortiGate-VM using an OVF template.

  4. Accept the EULA, define your storage policy along with the virtual disk format, and pick the network configuration. Once you reach the end of the OVF template deployment make sure to deselect Power on after deployment. This is so we can attach our config-drive ISO as a cdrom device before initial boot.

  5. Edit the VM settings.

  6. Add a new device: CD/DVD drive and make sure to select Connect at power on.

  7. Attach the Day0-CFG-Drive.iso ISO that you created earlier.

  8. Complete your changes, then go to the VM to boot it.

Creating the config drive ISO

To create the config drive ISO:
  1. Create the config-drive ISO using a utility such as xorriso (other utilities can also be used to create ISOs, such as mkisofs). Using xorriso, this example refers to the config‑drive directory created above with the relevant license file and configuration script. Here is an example of creating a config-drive ISO on an Ubuntu host:

    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

  2. Now that the configuration drive has been created, place the ISO on the data store so that it can be used with FortiGate-VMs.

  3. Deploy the FortiGate-VM using an OVF template.

  4. Accept the EULA, define your storage policy along with the virtual disk format, and pick the network configuration. Once you reach the end of the OVF template deployment make sure to deselect Power on after deployment. This is so we can attach our config-drive ISO as a cdrom device before initial boot.

  5. Edit the VM settings.

  6. Add a new device: CD/DVD drive and make sure to select Connect at power on.

  7. Attach the Day0-CFG-Drive.iso ISO that you created earlier.

  8. Complete your changes, then go to the VM to boot it.