Skip to main content

Manage instance

The following describes how to manage instances in the Virtual Machine service.

View instance list and basic information

You can view the list of running instances and their basic information.

  1. Go to Compute > Beyond Compute Service > Virtual Machine in the KakaoCloud console.
  2. In the Instance menu, check the list of currently running instances.
    CategoryDescription
    NameUser-defined instance name
    IDUnique ID of the instance
    StatusCurrent status of the instance
    - See Billing by instance state
    TypeServer type of the instance
    ImageImage installed on the instance
    Primary private IPPrivate IP address assigned to the primary network interface of the instance
    Primary public IPPublic IP address that the user connected to the primary network interface of the instance
    Availability zoneAvailability zone where the instance is created
    Created atDate when the instance was created

Run and manage instance

You can run various features by clicking the [⋮] button on the right side of the instance list.

  1. Go to Compute > Beyond Compute Service > Virtual Machine in the KakaoCloud console.

  2. In the Instance menu, click the [⋮] button of the instance, then select the feature to run.

    Image. Instance more Instance more

    FeatureDescriptionInstance status after execution
    StartStart the instance (start)
    - Change an instance in the Stopped or Shelved_offloaded state to the Active state
    Active
    StopStop the instance (stop)Stopped
    RebootReboot the instance (soft reboot)Active
    Hard rebootForce reboot the instance (hard reboot)Active
    ShelveShelve the instance (shelve)Shelved_offloaded
    Edit informationModify the instance name and description-
    Change typeChange the instance type (resize)
    - Type change is available only in the Stopped state
    -
    Attach network interfaceAttach a secondary network interface to the instance-
    Detach network interfaceDetach a secondary network interface connected to the instance-
    Modify security groupModify the security group applied to the instance-
    Connect public IPConnect a public IP to the instance
    - Available only to project administrators
    -
    Disconnect public IPDisconnect the public IP from the instance
    - Available only to project administrators
    -
    Modify allowed packet source IPsModify IP addresses or CIDRs allowed for packet transmission from the network interface connected to the instance
    - Up to 10 additional entries can be added

    💡 If a specific IP or CIDR is added, the network interface allows transmission of packets whose IP addresses fall within that IP address or CIDR range.
    -
    Connect to instanceProvide guidance for connecting to the instance through SSH or RDP-
    View system logView system logs stored in the instance
    - Data containing all records of the audited system, showing progress such as program operation status
    - Not supported for instances with Windows OS installed
    -
    Create imageCreate an image from the root volume of the instance
    - You can create an instance again from the backed-up image

    💡 You can create an image when the instance is in the Stopped or Active state, but for data consistency, creating an image in the Stopped state is recommended.
    -
    DeleteCompletely terminate and release the instance-

View instance details

You can view detailed information such as instance details, networks, security, volumes, task logs, and monitoring information connected to the instance.

  1. Go to Compute > Beyond Compute Service > Virtual Machine in the KakaoCloud console.

  2. In the Instance menu, select the instance for which you want to view detailed information.

  3. Check the detailed information in each tab.

    You can check the detailed information of the instance.

    CategoryDescription
    NameUser-defined instance name
    IDUnique ID (UUID) of the instance
    DescriptionDescription of the instance
    StatusCurrent status of the instance
    Availability zoneAvailability zone where the instance is located
    Host nameHost name automatically created in the private IP format
    - Host name assigned in the host-{PRIVATE_IP} format
    Instance typeInstance type selected when creating the instance
    ImageImage name of the instance
    vCPUNumber of CPUs according to the instance type
    MemoryMemory size according to the instance type
    VolumeDisk capacity applied to the instance
    Key pairKey pair of the instance
    CPU multithreadingWhether the CPU multithreading feature is enabled
    Creator UUIDUser who created the instance
    Created atCreation date and time of the instance (elapsed time since creation)

Delete instance

You can delete an instance.

caution

Deleted instance resources are fully released after termination and cannot be recovered.

  1. Go to Compute > Beyond Compute Service > Virtual Machine in the KakaoCloud console.
  2. In the Instance menu, select [⋮] button > Delete for the instance to delete.
  3. In the pop-up window, enter the confirmation text, then click the [Delete] button.
info
  • When an instance is deleted, connected network interfaces are handled as follows.
    • A network interface created as New interface when the instance was created is deleted together.
    • A network interface connected by selecting Existing interface when the instance was created remains even after the instance is deleted, and you must delete the network interface separately.

Monitoring

Monitoring is divided into basic monitoring and detailed monitoring.

Basic monitoring

You can check the basic monitoring results.

  1. Go to Compute > Beyond Compute Service > Virtual Machine in the KakaoCloud console.

  2. In the Instance menu, select the instance for which you want to check task log information.

  3. In the Monitoring tab, click the Basic monitoring tab, then check the information.

    ItemDescription
    vCPU usage (Core)Total vCPU usage over time
    Disk Read/Write BytesDisk (volume) read and write usage over time
    Network RxNetwork Rx usage over time
    Network TxNetwork Tx usage over time
    info
    • For an instance with multiple network interfaces connected, the Network RX/TX value for each network interface is displayed.

Detailed monitoring

For detailed monitoring, you can check data after installing the monitoring agent in advance. The installation method of the monitoring agent is as follows.

  1. Go to Compute > Beyond Compute Service > Virtual Machine in the KakaoCloud console.
  2. In the Instance menu, select the instance on which to install the monitoring agent.
  3. Click [Go to installation guide] displayed in the Detailed monitoring tab.
  4. After installing the monitoring agent according to the guide, set each item in the Metric explorer tab under Management > Monitoring > Explorer. For more information, see Management > Monitoring > How-to Guides > Use explorer.
  5. If you need to check logs, you can view each item in the Log explorer under Management > Monitoring > Explorer. For more information, see Management > Monitoring > How-to Guides > Use explorer.
  6. A default monitoring dashboard is provided, but you can configure a custom dashboard to suit your monitoring purpose. For more information, see Management > Monitoring > How-to Guides > Use dashboard.

Associate public IP

You can associate a public IP to the instance.

Permission note

Only users with the project administrator permission can connect a public IP.

  1. Go to Compute > Beyond Compute Service > Virtual Machine in the KakaoCloud console.
  2. In the Instance menu, select [⋮] button > Connect public IP.
  3. In the pop-up window, select the network interface and private IP address to connect, then click the [Confirm] button.

Disassociate public IP

You can disconnect a connected public IP.

Permission note

Only users with the project administrator permission can disconnect a public IP.

caution

If you disconnect only the public IP without deleting the resource connected to it, the public IP is not released. In this case, it is billed even if you do not use the public IP.

  1. Go to Compute > Beyond Compute Service > Virtual Machine in the KakaoCloud console.
  2. In the Instance menu, select [⋮] button > Disconnect public IP.
  3. In the pop-up window, select the network interface and public IP to disconnect, then check "Automatically delete the public IP after disconnecting it from the instance.".
  4. Click the [Disconnect] button.

Modify security group

You can modify the security group connected to the network interface of the instance. One or more security groups are configured by default on the primary network interface.

  1. Go to Compute > Beyond Compute Service > Virtual Machine in the KakaoCloud console.

  2. In the Instance menu, select [⋮] button > Modify security group.

  3. In the pop-up window, select the security group to apply to the instance.

    • If multiple security groups are applied, all rules in each security group are applied to the instance.

    Image. Configure security group Modify security group

  4. Click the [Save] button.

Network interface

Attach network interface

You can attach a network interface to the instance.

  1. Go to Compute > Beyond Compute Service > Virtual Machine in the KakaoCloud console.
  2. In the Instance menu, select [⋮] button > Attach network interface.
  3. In the pop-up window, check the information, then select the network interface to attach.
  4. Click the [Confirm] button.

Detach network interface

You can detach a connected secondary network interface from the instance.

Permission note
  • The primary network interface cannot be detached.
  1. Go to Compute > Beyond Compute Service > Virtual Machine in the KakaoCloud console.
  2. In the Instance menu, select [⋮] button > Detach network interface.
  3. In the pop-up window, check the information, then select the network interface to detach.
  4. Click the [Confirm] button.

Set time reference

Consistent and accurate time reference is important for many server operations and processes. The images provided by KakaoCloud use time synchronization services provided by the operating system by default, such as Network Time Protocol(NTP), Chrony, and systemd-timesyncd. Through these time synchronization services, multiple servers can operate based on the same time standard and reference consistent time. However, these external services can be used only when the server has internet access.

In a local network environment, you can synchronize time using the NTP service provided by KakaoCloud. In a Linux environment, you can use the Chrony client to use the KakaoCloud NTP service inside the instance.

info
  • The KakaoCloud synchronization service is provided through the IPv4 address 169.254.169.123.
  • VPCs created before February 21, 2024 do not provide an NTP service endpoint, and this will be migrated gradually.
  1. Install the Chrony package.

    sudo yum install chrony
  2. Open the /etc/chrony.conf file and add the following line.

    server 169.254.169.123 prefer iburst minpoll 4 maxpoll 4
  3. Restart the chronyd daemon and apply the changes.

    sudo service chronyd restart
  4. Use the following command to configure chronyd to start whenever the system boots.

    sudo chkconfig chronyd on
  5. Check whether Chrony synchronizes time using the IP 169.254.169.123. Also check whether the default time source marked with ^* is set to 169.254.169.123.

    chronyc sources
    Output
    MS Name/IP address         Stratum Poll Reach LastRx Last sample
    ===============================================================================
    ^- 193.123.243.2 2 6 17 9 -8932us[-8909us] +/- 4550us
    ^- ec2-13-209-84-50.ap-nort> 2 6 17 9 -8534us[-8512us] +/- 5038us
    ^* 169.254.169.123 2 4 17 9 +11us[ +34us] +/- 39ms
  6. Check the time synchronization status of Chrony.

    Check time synchronization status
    chronyc tracking
    Output
    Reference ID    : A9FEA97B (169.254.169.123)
    Stratum : 3
    Ref time (UTC) : Wed Jun 28 08:14:40 2023
    System time : 0.000019450 seconds fast of NTP time
    Last offset : +0.000022669 seconds
    RMS offset : 0.000022669 seconds
    Frequency : 1.352 ppm slow
    Residual freq : +2.810 ppm
    Skew : 0.061 ppm
    Root delay : 0.076084495 seconds
    Root dispersion : 0.000831026 seconds
    Update interval : 2.0 seconds
    Leap status : Normal