The page has been translated by Gen AI.

VM server group

A VM server group is a logical unit for managing VM servers in a bundle.

Users can add, modify, and delete VM server groups and VM servers. The configured VM server groups and VM servers can be used as target VMs for deployment when creating a project (Configure Target Environment) or adding a VM deployment (Add VM Deployment).

Deployment MethodDescription
SSHUse Secure SHell (SSH) to deploy directly from Jenkins, where the build pipeline runs, to the target VM server.
  • SSH communication is required between Jenkins and the target VM.
AgentRefer to Connecting an Agent to run the agent on the Target VM server.
Jenkins, where the build pipeline runs, does not execute deployments directly. The running agent uses the REST API to collect deployment-related information from the DevOps Console and execute the deployment.
  • If Rollback is not used, deployment files are stored in the DevOps Console. (Maximum file size: 200MB)
  • If Rollback is used, deployment files are stored in the Rollback Artifact Repository selected by the user. (Maximum file size is managed by the Rollback Artifact Repository)
  • REST API communication is required from the Target VM to the DevOps Console.
  • (If Rollback is used) Communication is required from the Target VM to the Rollback Artifact Repository.
Table. SSH method vs. agent method
Warning

If SSH or an agent runs with root privileges, there is a risk that malicious command execution could compromise the entire server.

  • We recommend using an account other than the root account.

Start a VM server group

To begin managing VM server groups, follow these steps.

  1. Click the Manage icon in the upper-right corner of the Main page. 1. Navigate to the Tenant Dashboard page.
  2. In the left menu, click Deployment Target > VM Server Group. 2. Go to the VM Server Group page.

Add a VM server group

To add a VM server group, follow these steps.

  1. Click the Management icon at the top right of the Main page. You will be taken to the Tenant Dashboard page.
  2. Click the Deployment Target > VM Server Group menu in the left menu. You will be taken to the VM Server Group page.
  3. On the VM Server Group page, click the Add button. It navigates to the Add VM Server Group page.
  4. Enter the basic information, then click the Save button to complete the VM server group configuration.
    ItemExplanation
    Server group nameEnter the VM server group name.
    ExplanationPlease enter a description.
    typeSelect the type of VM server group
    • SSH: Perform deployment using SSH commands when deploying a VM.
    • Agent: Perform deployment using an agent when deploying a VM. (Connect Agent)
    VM server
    • Add: Add the VM server that belongs to the VM server group.
    • Delete: Check the checkbox of the VM server you want to delete from the VM server group, then click Delete to remove it.
    Table. VM Server Group Add Input Items

Add a VM server

To add a VM server, you need Manager permission for the corresponding VM server group.

Note
The Add VM Server popup opens differently depending on the type of VM server group.

To add a VM server, follow the steps below.

  1. Click the Admin icon at the top right of the Main page. Navigate to the Tenant Dashboard page.
  2. Click the Deployment Target > VM Server Group menu in the left menu. You will be taken to the VM Server Group page.
  3. VM server group page, click the VM server group in the VM server group list where you want to add a VM server. You will be taken to the VM server group detail page.
  4. On the VM Server Group Details page, click the Add button. You will be taken to the Add VM Server page.
  5. Add VM Server page, after entering the basic information, click the Add button to complete the VM server configuration.
    ItemExplanation
    Server nameEnter the VM server name.
    ExplanationEnter the description.
    IPPlease enter the IP.
    SSH PortEnter the port of the VM server to use for SSH connections.
    OSPlease enter the OS.
    LocationPlease select a location.
    Authentication informationEnter the authentication information for the VM server to be used for SSH connections.
    Secret KeyThis is the secret key for authenticating the VM server where the agent is installed.
    Table. VM Server Additional Input Items

Modifying a VM server group

To modify a VM server group, you must have Manager permissions for that VM server group.

To modify a VM server group, follow these steps.

  1. Click the Manage icon in the upper-right corner of the Main page. 1. Navigates to the Tenant Dashboard page.
  2. In the left menu, click Deployment Target > VM Server Group. 2. Go to the VM Server Group page.
  3. On the VM Server Group page, click the VM server group that you want to modify in the VM server group list. 3. Go to the VM Server Group Details page.
  4. Click the Modify button on the VM Server Group Details page. 4. Go to the Edit VM Server Group page.
  5. After making the changes, click the Save button to complete the VM server group modification.

Edit a VM server

To modify a VM server, you need Manager permissions for the corresponding VM server group.

To modify a VM server, follow these steps.

  1. Click the Manage icon in the upper-right corner of the Main page. 1. Navigate to the Tenant Dashboard page.
  2. In the left menu, click Deployment Target > VM Server Group. 2. Go to the VM Server Group page.
  3. On the VM Server Group page, click the VM server group that you want to modify in the VM server group list. 3. Go to the VM Server Group Details page.
  4. On the VM Server Group Details page, click the VM server you want to modify in the VM server list. 4. Navigates to the VM Server Details page.
  5. Click the Modify button on the VM Server Details page to navigate to the VM Server Modification page.
  6. On the Edit VM Server page, click the Save button after completing the edits to finish editing the VM server.

Delete a VM server group

To delete a VM server group, follow these steps.

  1. Click the Manage icon in the upper-right corner of the Main page. 1. Navigates to the Tenant Dashboard page.
  2. In the left menu, click Deployment Target > VM Server Group. 2. Go to the VM Server Group page.
  3. On the VM Server Group page, click the VM server group that you want to delete from the VM server group list. 3. Go to the VM Server Group Details page.
  4. On the VM Server Group Details page, click the Delete button to complete the VM server group deletion.

Delete a VM server

To delete a VM server, follow these steps.

  1. Click the Manage icon in the upper-right corner of the Main page. 1. Navigates to the Tenant Dashboard page.
  2. In the left menu, click Deployment Target > VM Server Group. 2. Go to the VM Server Group page.
  3. On the VM Server Group page, click the VM server group of the VM server that you want to delete from the VM server group list. 3. Go to the VM Server Group Details page.
  4. On the VM Server Group Details page, click the VM server that you want to delete. 4. Navigates to the VM Server Details page.
  5. On the VM Server Details page, click the Delete button to complete the VM server deletion.

Manage VM server group members

To manage members of a VM server group, you must have Manager permissions for that VM server group.

Add a member to a VM server group

To add a member to a VM server group, follow these steps.

  1. Click the Manage icon in the upper-right corner of the Main page. 1. Navigates to the Tenant Dashboard page.
  2. In the left menu, click Deployment Target > VM Server Group. 2. Go to the VM Server Group page.
  3. Click the VM server group to which you want to add members in the VM server group list on the VM Server Groups page. 3. Go to the VM Server Group Details page.
  4. On the VM Server Group Details page, click the Users tab.
  5. Click the Add button on the Users tab to open the Add Member popup.
  6. After completing the configuration, click the Confirm button to finish adding the VM server group member. 6. (Managers can modify or delete server groups, and Members can use the server group when creating a project or adding a pipeline.)

Removing a VM server group member

To remove a member from a VM server group, follow these steps.

  1. Click the Manage icon in the upper-right corner of the Main page. 1. Navigate to the Tenant Dashboard page.
  2. In the left menu, click Deployment Target > VM Server Group. 2. Go to the VM Server Group page.
  3. On the VM Server Group page, click the VM server group from which you want to remove a member in the VM server group list. 3. Go to the VM Server Group Details page.
  4. On the VM Server Group Details page, click the Users tab.
  5. Select the checkbox for the user you want to delete from the Users list.
  6. Click the Delete button to remove the selected user from the VM server group members.

Manage VM server group permission requests

To approve or reject a VM server group permission request, follow these steps.

  1. Click the Manage icon in the upper-right corner of the Main page. 1. Navigates to the Tenant Dashboard page.
  2. In the left menu, click Deployment Target > VM Server Group. 2. Go to the VM Server Group page.
  3. On the VM Server Group page, click the permission request item for the VM server group whose permission request you want to approve in the VM server group list. 3. The displayed number is the number of permissions that have been requested. 3. The VM Server Group Permission Request Approval popup window opens.
  4. In the VM Server Group Permission Request Approval popup, click the request that you want to approve or reject.
  5. After entering your feedback, click the Approve or Reject button.
Reference
To reject a permission request, you must provide a comment.

Viewing VM server group permission approval history

To view the approval history for VM server group permission requests, follow these steps.

  1. Click the Manage icon in the upper-right corner of the Main page. 1. Navigates to the Tenant Dashboard page.
  2. In the left menu, click Deployment Target > VM Server Group. 2. Go to the VM Server Group page.
  3. Click the VM server group to query in the VM server group list on the VM Server Group page. 3. Go to the VM Server Group Details page.
  4. On the VM Server Group Details page, click the Approval History tab.

How to disable the firewall on a VM server

SSH method

VM deployment via SSH uses Secure SHell (SSH) to deploy directly from Jenkins to the target VM server.

Reference

Firewall Unblocking Information for Deployment

  • Source IP: The Jenkins IP selected during pipeline configuration
  • Target IP: The IP of the VM server to deploy to

To disable the firewall, follow these steps.

  1. Click the Manage icon in the upper-right corner of the Main page. 1. Navigate to the Tenant Dashboard page.
  2. In the left menu, click Deployment Target > VM Server Group. 2. Go to the VM Server Group page.
  3. On the VM Server Group page, click the Firewall Application Guide link. 3. The Firewall Request Guide popup window opens.
  4. Jenkins firewall information is displayed.
    • This information displays the details entered when registering the Jenkins tool. If no details were entered during tool registration, the fields may appear empty.
    • Contact the relevant tool administrator if necessary.

Agent-based

Agent-based VM deployment requires running the agent on the target VM server. The executed agent collects information from the DevOps Console and proceeds with the deployment.

Reference
Firewall unblock information for deployment
  • Source IP: IP of the VM server to be deployed
  • Target IP: DevOps Console IP, (if Rollback is used) Rollback Artifact Repository IP
  1. Click the Manage icon in the upper-right corner of the Main page. 1. Navigates to the Tenant Dashboard page.
  2. In the left menu, click Deployment Target > VM Server Group. 2. Go to the VM Server Group page.
  3. On the VM Server Group page, click the Agent Installation Guide link. 3. The Agent Installation Guide popup window opens.
  4. The DevOps Console firewall details, the User Guide shortcut, and the Agent file download link are displayed.

Integrating an Agent

Agent-based VM deployment requires running the agent on the target VM server. The executed agent collects information from the DevOps Console and performs the deployment.

Preparation Before Agent Integration

VM Server Prerequisites

Java Installation

The agent is written and tested based on Java 8. Install Java 8 or later on the target VM server.

Firewall Unblocking and Hosts File Modification

Because the agent collects deployment execution information from the DevOps Console using the REST API, communication on port 8443 from the Target VM where the agent is running to the DevOps Console is required.

When using Rollback, communication with the Rollback Artifact Repository is also required.

If necessary, you may need to perform tasks such as disabling the firewall or registering entries in the hosts file. For firewall information, refer to the Agent Installation Guide (Agent Method) popup in the DevOps Console.

DevOps Console Prerequisites

Prepare the authentication key

When running the agent on the target VM server, agent authentication is required. Generate an access key and secret key for authentication. (Manage authentication keys)

Prepare the Secret Key for the VM server

To authorize the VM server that matches the agent when running the agent on the target VM server, a Secret Key value is required.

When adding a VM server group or a VM server of the agent type, a VM server secret key is automatically generated. You can also check this on the VM Server Details page.

Reference
To successfully integrate an agent, the Secret Key you enter must match the information registered in the DevOps Console, and the actual OS name and IP address (IPv4) of the VM server must also match the registered information.

Run the agent

Download the agent file

You can download the agent executable file from the Agent Installation Guide popup.

  1. Click the Manage icon in the upper-right corner of the Main page. 1. Navigates to the Tenant Dashboard page.
  2. In the left menu, click Deployment Target > VM Server Group. 2. Go to the VM Server Group page.
  3. On the VM Server Group page, click the Agent Installation Guide link. 3. The Agent Installation Guide popup window opens.
  4. Click the Agent File Download button in the Agent Installation Guide popup.
  5. The deploy-agent.jar file is downloaded.

Run the Agent Directly

To run the agent on the target VM server, follow these steps.

  1. Create a directory on the target VM server.
  2. Move the deploy-agent.jar file to the corresponding directory.
  3. Run the agent by referring to the Usage section below.
    Color mode
    usage: java -jar deploy-agent.jar -A <arg> -L <arg> [-P <arg>] -S <arg> -V <arg>
     -A,--accessKey <arg>               AccessKey for HMAC
     -L,--serverUrl <arg>               Api server url
     -P,--loggingConfigFilePath <arg>   Path to the property file with 'java.util.logging' settings
     -S,--secretKey <arg>               SecretKey for HMAC
     -V,--vmSecretKey <arg>             VM SecretKey
    usage: java -jar deploy-agent.jar -A <arg> -L <arg> [-P <arg>] -S <arg> -V <arg>
     -A,--accessKey <arg>               AccessKey for HMAC
     -L,--serverUrl <arg>               Api server url
     -P,--loggingConfigFilePath <arg>   Path to the property file with 'java.util.logging' settings
     -S,--secretKey <arg>               SecretKey for HMAC
     -V,--vmSecretKey <arg>             VM SecretKey
    Usage for running the deployment agent
ItemDescription
-A, –accessKeyAuthentication key generated with a user authentication key
-L, –serverUrlAPI URL path of the DevOps Console
ex) https://{DEVOPS_CONSOLE_URL}:8443/devops-console-api
-P, –loggingConfigFilePathAgent log file path
If not specified, the {JAVA_HOME}\jre\lib\logging.properties file is applied.
-S, –secretKeySecret key generated with a user authentication key
-V, –vmSecretKeyPrivate key generated on the VM server
Table. Direct agent execution option items

Run an Agent from a Script File

To run the agent on the target VM server using a script, follow these steps.

  1. Create a directory on the target VM server.
  2. Move the deploy-agent.jar file to the corresponding directory.
  3. Create the file by referring to the sample execution script below.
  4. Modify the information in the sample execution script.
    • DC_URL, ACCESS_KEY, SECRET_KEY, VM_SECRET_KEY
  5. Run the script.

Linux sample script

Linux sample script
Color mode
#!/bin/sh

JAVA_EXE="java"
DC_URL="https://devops-console-url.com:8443/devops-console-api"
ACCESS_KEY="user-access-key"
SECRET_KEY="user-secret-key"
VM_SECRET_KEY="vm-secret-key"

start()
{
  [ -f deploy-agent.jar ] || { echo "ERROR: deploy-agent.jar file does not exist."; exit 1; }
  echo "Starting Deploy Agent..."
  $JAVA_EXE -jar deploy-agent.jar -A $ACCESS_KEY -S $SECRET_KEY -V $VM_SECRET_KEY -L $DC_URL > deploy-agent.log 2>&1 &
  PID=`ps aux | grep 'java -jar deploy-agent.jar' | grep '\-A' | grep '\-S' | grep '\-V' | grep '\-L' | awk '{print $2}'`
  echo "Process ID : $PID"
  echo $PID > deploy-agent.pid
  echo "Done."
}
stop()
{
  echo "Shutdown Deploy Agent..."
  ps aux | grep 'java -jar deploy-agent.jar' | grep '\-A' | grep '\-S' | grep '\-V' | grep '\-L' | awk '{print $2}' | xargs kill
  echo "Done."
}

case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  restart)
    stop
    start
    ;;
  *)
    echo $ "Usage: $0 {start|stop|restart}"
    exit 1
    ;;
esac
exit 0
#!/bin/sh

JAVA_EXE="java"
DC_URL="https://devops-console-url.com:8443/devops-console-api"
ACCESS_KEY="user-access-key"
SECRET_KEY="user-secret-key"
VM_SECRET_KEY="vm-secret-key"

start()
{
  [ -f deploy-agent.jar ] || { echo "ERROR: deploy-agent.jar file does not exist."; exit 1; }
  echo "Starting Deploy Agent..."
  $JAVA_EXE -jar deploy-agent.jar -A $ACCESS_KEY -S $SECRET_KEY -V $VM_SECRET_KEY -L $DC_URL > deploy-agent.log 2>&1 &
  PID=`ps aux | grep 'java -jar deploy-agent.jar' | grep '\-A' | grep '\-S' | grep '\-V' | grep '\-L' | awk '{print $2}'`
  echo "Process ID : $PID"
  echo $PID > deploy-agent.pid
  echo "Done."
}
stop()
{
  echo "Shutdown Deploy Agent..."
  ps aux | grep 'java -jar deploy-agent.jar' | grep '\-A' | grep '\-S' | grep '\-V' | grep '\-L' | awk '{print $2}' | xargs kill
  echo "Done."
}

case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  restart)
    stop
    start
    ;;
  *)
    echo $ "Usage: $0 {start|stop|restart}"
    exit 1
    ;;
esac
exit 0
Linux sample script

Windows sample script

Windows sample script
Color mode
@ECHO OFF

SET JAVA_EXE="java"
SET DC_URL="https://devops-console-url.com:8443/devops-console-api"
SET ACCESS_KEY="user-access-key"
SET SECRET_KEY="user-secret-key"
SET VM_SECRET_KEY="vm-secret-key"

IF NOT EXIST deploy-agent.jar (
    ECHO "ERROR: deploy-agent.jar file does not exist."
    EXIT /b 0
)
ECHO "Starting Deploy Agent..."
%JAVA_EXE% -jar deploy-agent.jar -A %ACCESS_KEY% -S %SECRET_KEY% -V %VM_SECRET_KEY% -L %DC_URL%

EXIT /b 0
@ECHO OFF

SET JAVA_EXE="java"
SET DC_URL="https://devops-console-url.com:8443/devops-console-api"
SET ACCESS_KEY="user-access-key"
SET SECRET_KEY="user-secret-key"
SET VM_SECRET_KEY="vm-secret-key"

IF NOT EXIST deploy-agent.jar (
    ECHO "ERROR: deploy-agent.jar file does not exist."
    EXIT /b 0
)
ECHO "Starting Deploy Agent..."
%JAVA_EXE% -jar deploy-agent.jar -A %ACCESS_KEY% -S %SECRET_KEY% -V %VM_SECRET_KEY% -L %DC_URL%

EXIT /b 0
Windows sample script

Notice
  • It can be run on java 8 or later.
  • Assume that the jar file is executed from {WORKSPACE}.
  • Additional directories such as backup and logs are created in {WORKSPACE}.
  • If you do not specify -loggingConfigFilePath, the {JAVA_HOME}\jre\lib\logging.properties file is applied.
  • Deployment-related files are stored under {WORKSPACE}/backup.
  • Only the most recent 3 successful deployment files are retained.
  • The full log for deploy-agent.jar is not automatically saved. - Only deployment-related logs from the full log are saved to {WORKSPACE}/logs.
  • Logs are retained for 30 days.

Agent Problem Solving

Change the log level

You can change the agent log level as needed. Refer to the sample log file below and add the -P and --loggingConfigFilePath options.

Sample log file

Color mode
############################################################
# Default Logging Configuration File
#
# You can use a different file by specifying a filename
# with the java.util.logging.config.file system property.
# For example, `java -Djava.util.logging.config.file=myfile`
############################################################

############################################################
# Global properties
############################################################

# "handlers" specifies a comma-separated list of log handlers
# classes. These handlers will be installed during VM startup.
# Note that these classes must be on the system classpath.
# By default, we only configure a ConsoleHandler, which will only
# Show messages at the INFO level and above.
handlers= java.util.logging.ConsoleHandler

# To also add the FileHandler, use the following line instead.
#handlers= java.util.logging.FileHandler, java.util.logging.ConsoleHandler

# Default global logging level.
# This specifies which kinds of events are logged across
# all loggers. For any given facility, this global level
# can be overridden by a facility-specific level
# Note that the ConsoleHandler also has a separate level
# A setting to limit the messages printed to the console.
#.level= INFO
.level= FINE

############################################################
# Handler-specific properties.
# Describes specific configuration information for Handlers.
############################################################

# The default file output is in the user's home directory.
java.util.logging.FileHandler.pattern = %h/java%u.log
java.util.logging.FileHandler.limit = 50000
java.util.logging.FileHandler.count = 1
java.util.logging.FileHandler.formatter = java.util.logging.XMLFormatter

# Limit the messages printed to the console to INFO level and above.
#java.util.logging.ConsoleHandler.level = INFO
java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

# Example to customize the SimpleFormatter output format
# to print a one-line log message like this:
# <level>: <log message> [<date/time>]
#
# java.util.logging.SimpleFormatter.format=%4$s: %5$s [%1$tc]%n

############################################################
# Facility-specific properties.
# Provides additional control for each logger.
############################################################

# For example, set the com.xyz.foo logger to log only SEVERE
# messages:
com.xyz.foo.level = SEVERE
############################################################
# Default Logging Configuration File
#
# You can use a different file by specifying a filename
# with the java.util.logging.config.file system property.
# For example, `java -Djava.util.logging.config.file=myfile`
############################################################

############################################################
# Global properties
############################################################

# "handlers" specifies a comma-separated list of log handlers
# classes. These handlers will be installed during VM startup.
# Note that these classes must be on the system classpath.
# By default, we only configure a ConsoleHandler, which will only
# Show messages at the INFO level and above.
handlers= java.util.logging.ConsoleHandler

# To also add the FileHandler, use the following line instead.
#handlers= java.util.logging.FileHandler, java.util.logging.ConsoleHandler

# Default global logging level.
# This specifies which kinds of events are logged across
# all loggers. For any given facility, this global level
# can be overridden by a facility-specific level
# Note that the ConsoleHandler also has a separate level
# A setting to limit the messages printed to the console.
#.level= INFO
.level= FINE

############################################################
# Handler-specific properties.
# Describes specific configuration information for Handlers.
############################################################

# The default file output is in the user's home directory.
java.util.logging.FileHandler.pattern = %h/java%u.log
java.util.logging.FileHandler.limit = 50000
java.util.logging.FileHandler.count = 1
java.util.logging.FileHandler.formatter = java.util.logging.XMLFormatter

# Limit the messages printed to the console to INFO level and above.
#java.util.logging.ConsoleHandler.level = INFO
java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

# Example to customize the SimpleFormatter output format
# to print a one-line log message like this:
# <level>: <log message> [<date/time>]
#
# java.util.logging.SimpleFormatter.format=%4$s: %5$s [%1$tc]%n

############################################################
# Facility-specific properties.
# Provides additional control for each logger.
############################################################

# For example, set the com.xyz.foo logger to log only SEVERE
# messages:
com.xyz.foo.level = SEVERE
Sample log file

If the IP is not recognized

To successfully integrate an agent, the Secret Key you enter must match the information registered in the DevOps Console, and the actual OS name and IP address (IPv4) of the VM server must also match the registered information.

On some VM servers with multiple network devices installed, the agent may fail to properly detect the IP address. In such cases, add the IP and hostname settings to the /etc/hosts file as shown below.

hostname verification procedure
Figure. hostname verification procedure
Verify Cluster Admin Token
Request Permission