Script Info Subtab

InstallAnywhere 2021 » Advanced Designer » Build » Build Appliances » VM Configuration

Virtual appliances built by InstallAnywhere have the capability of automatically calling scripts at specific lifecycle stages of your appliance. You have the option of running custom shell scripts at First Boot, First Login, Subsequent Boot, and Subsequent Login of the virtual appliance.

For example, if you have installed an Apache web server in your virtual appliance, and this needs to be started every time your appliance boots up, then you need to define a small shell script that will start your Apache web server each time it boots up.

Note:InstallAnywhere appliances also run some internal scripts at each of these lifecycle stages. These internal scripts help safeguard the security of your appliances by regenerating the different SSL keystores and helping the end user set up a default password for the virtual appliance during deployment.

Because user interaction is not supported during boot time, custom boot scripts (first boot and subsequent boot) should not have any sections that have user interaction. Also, the display of output user messages from the first/subsequent boot are not visible on the console during boot time.

Custom boot scripts (first boot and subsequent boot) support only shell script.

The Script Info subtab of the VM Configuration tab includes the following options:

Script Info Subtab

Option

Description

First Boot Script

Click Choose and select a script that will run the first time the virtual appliance is launched.

First Login Script

Click Choose and select a script that will run the first time a user logs into this virtual appliance.

Subsequent Boot Script

Click Choose and select a script that will run each time the virtual appliance is launched.

Subsequent Login Script

Click Choose and select a script that will run each time a user logs into this virtual appliance.

See Also