Anchor | ||||
---|---|---|---|---|
|
Include Page | ||||
---|---|---|---|---|
|
...
When the script is initialized using option 6 or when a new virtual machine is added, the following lines are added:
|
...
Stop script execution example with "rsh" on Red Hat Enterprise Linux 7.x:
Include Page | ||||
---|---|---|---|---|
|
Provided shutdown scripts explanation
Note | ||
---|---|---|
| ||
Whatever the shutdown script execution result is, the stop command sent by the |
charon_gstop_expect
- Check if there's an active connection to the console on the local host, kill if any.
- Execute the /opt/charon/utils/guest_shutdown.exp expect script with the values provided: username (root), password, prompt, operating system (either TRU64 or VMS). This script is able to send the shutdown command depending on the returned characters on the console. This can be the SRM prompt ">>>", the "login:" or "username:" prompts or the prompt of the logged in user.
- Report all output to
/opt/charon/log/console.stop.<guest name>.log
.
...
- With Charon-AXP, the "
power off
" command is sent at the SRM prompt - With Charon-VAX, the "
power off
" command does not exist. To power off the virtual machine, the F6 key has to be enabled in the configuration file (set OPA0 stop_on="F6"
). If not set, the emulator process is killed. - If the console is locked from an external connection or if the prompt is not detected after sending a carriage return, the expect script will fail.
...