VM management - Connect to guest console

Table of contents

Description

Use this option to connect to the guests consoles, kill active connections if any and to view console log files.

Notes:

  • (warning) "telnet" and/or "putty" package must be installed, they will be used to connect from the CHARON server to the virtual machine console
  • The session will be recorded in a log file as '/opt/charon/log/console.<configuration file name shortened>.log'
  • To leave the telnet session, press the escape character which is by default CTRL + ] . This character can be changed in the /root/.telnetrc file by defining the 'set escape' parameter:
    Example:

    # cat /root/.telnetrc
    DEFAULT
      mode char
      set escape ²
    #

    (info) Pressing the escape key will lead you to the 'telnet> ' prompt. To leave the session, enter 'quit'

  • If a connection to the console is active from the server, you will be prompted to kill the previous one.
  • If a connection to the console is active from another location, it will be displayed but will not be killed. This will have to be done manually.
  • Emulator termination check:
    • If the 'exit' command is detected at Main menu prompt, the guest STOP state will be set to REQUESTED. (warning) If a telnet connection to the console is performed without this utility, the REQUESTED state will not be set.
    • If the emulator is no more running when you leave the session, you will have to confirm that is requested or not
  • To leave the "putty" session, close the window. Note this will not stop the virtual machine as it is running in the background.
  • (info) The console port number is displayed per guest. If a port number is used more than once, an alert will be displayed



Special comments in configuration file

For ease of use, it is possible to add formatted comments in the configuration file. These comments will appear before connecting to the console and can be used to describe the configuration, disks usage, etc...

To enable this feature, edit the configuration file and add comments starting with "#INFO:"

Example:

Example

(info) If the configuration file is updated after the virtual machine is started, a warning message is displayed.

...



© Stromasys, 1999-2024  - All the information is provided on the best effort basis, and might be changed anytime without notice. Information provided does not mean Stromasys commitment to any features described.