Key concepts
Instance
An instance is a virtualized hardware resource, generally referring to a virtual machine that includes computing power, memory, storage space, and networking capabilities. This virtual environment allows users to scale resources up or down as needed, significantly reducing the cost and overhead of managing physical hardware.
Virtual Machine (VM) instances are used to create virtual computers in cloud computing environments, and costs are typically charged based on usage. Cloud computing services virtualize physical server resources to run multiple independent virtual machines simultaneously, improving efficiency and scalability by allowing users to operate multiple VMs on a single physical server.
Each VM instance is typically allocated resources such as CPU, memory, storage, and a network interface. These resources are key determinants of the VM's performance and capacity, and they can be adjusted according to user needs. This allows users to select the most appropriate instance type and size for their applications and services.
| Resource | Description |
|---|---|
| CPU | Virtual CPUs are allocated to the instance, using part or all of a physical CPU |
| Memory | Virtual memory is allocated to the instance, operating with part or all of physical memory |
| Storage | Each instance uses virtual block storage, efficiently distributing physical disk space |
| Network interface | A virtual primary network interface is attached to each instance for communication |
Instance types
KakaoCloud provides various instance types optimized for different use cases, allowing users to choose the most suitable instance for their workload and requirements. These instance types are designed to meet computing and storage resource needs.
Users can select a specific instance type when launching an instance, and costs are calculated proportionally based on the amount of resources used. This ensures efficient resource management and charges users only for what they actually use.
Available instance types on KakaoCloud include:
For detailed specifications and pricing of instance types, refer to the KakaoCloud official website.
Instance lifecycle
The instance lifecycle includes all stages from creation to termination. These stages are reflected by status values that indicate the current state of the instance, such as running, stopped, or deleted. By monitoring instance statuses, users can perform appropriate management tasks.
Understanding the full instance lifecycle—from provisioning to deletion—is essential for effective resource management.
Instance lifecycle
Commands/features
| Feature (CLI command) | Description | Resulting instance state |
|---|---|---|
Start (start) | Start the instance | Active |
Stop (stop) | Stop the instance | Stopped |
Shut down (shelve) | Shut down the instance and release allocated resources | Shelved_offloaded |
Reboot (soft reboot) | Reboot the instance gracefully | Active |
Hard reboot (hard reboot) | Hard reboot the instance | Active |
Change type (resize) | Launch the popup to change the instance type | - |
Delete (delete or terminate) | Completely delete the instance | - |
Instance state and billing
The table below outlines billing status based on instance state.
| State | Description | Billed |
|---|---|---|
Active | Instance is running | Yes |
Shelved_offloaded | Instance is shelved and resources allocated on the hypervisor have been released | No |
Stopped | Instance is stopped but resources remain allocated on the hypervisor | Yes |
Error | Instance encountered an error and cannot be used | No |
Building | Allocating resources on the hypervisor to create the instance | No |
Starting | Starting the tasks required to configure the instance | No |
Scheduling | Scheduling the instance | No |
Block_device_mapping | Configuring instance volumes | No |
Networking | Configuring instance networking | No |
Spawning | Creating the instance | No |
Rebooting | Instance reboot has started | Yes |
Reboot_started | Instance reboot is in progress | Yes |
Rebooting_hard | Instance hard reboot has started | Yes |
Rebooting_started_hard | Instance hard reboot is in progress | Yes |
Shelving | Shelving the instance | Yes |
Unshelving | Restarting a shelved instance | No |
Powering-off | Stopping the instance | Yes |
Powering-on | Restarting a stopped instance | Yes |
Resize_prep | Preparing to change the instance type | No |
Resize_migrating | Performing preliminary tasks for the target instance type | No |
Resize_migrated | Preliminary tasks for the target instance type are complete | No |
Resize_finished | Preliminary tasks are complete and the operation is moving to confirmation | No |
Resized | Waiting for confirmation to finalize or revert the instance type change | No |
Resize_confirm | Finalizing the instance type change | No |
Resize_revert | Canceling the change and reverting to the previous instance type | No |
Deleting | Performing tasks to permanently delete the instance | No |
Configure instance
VMs are the core of cloud services, offering scalability and elasticity for dynamic workloads. Users can start, stop, or delete virtual servers (instances) based on business needs.
When launching a VM, users must first select an instance type, which determines computing resources. VM instances can scale up or out depending on requirements:
- Scale-up increases the resources (CPU, memory, etc.) of an existing instance to enhance performance.
- Scale-out adds more instances to distribute workloads, improving availability and scalability.
VM network settings allow secure access to instances over the internet. Instances are isolated from one another.
A VM instance typically includes:
- Instance type: Defines performance and size (CPU, memory, bandwidth, and storage). Pricing varies by instance type.
- Operating system: Supports various OSs, including Windows, Linux, and Unix.
- Network: Connects to public or private networks, configurable via security groups, virtual networks, and IP settings.
Image
VM instances are launched using images, which contain the necessary OS and software configurations. Users can choose from a range of OS and application images based on their needs. Images follow the lifecycle of the instance and are billed accordingly.
Types of images:
| Image type | Description |
|---|---|
| Default image | Linux and Windows default images provided by KakaoCloud Accessible to all users for secure instance setup |
| Custom image | User-created image configured for a project or workload Can include an existing instance's operating system, applications, and settings |
- You can create instances using KakaoCloud default images or user-created custom images.
- Creating a custom image may fail if the attached root volume is too large. A root volume of 1 TB or less is recommended for reliable image creation.
The following table describes image states.
| State | Description |
|---|---|
Active | Ready to create instances from the image |
Deactivated | Temporarily deactivated by a cloud administrator for inspection |
Queued | Image creation is queued for internal processing |
Saving | Image creation is in progress |
Pending_Delete | Image deletion is in progress |
Updating | First stage of receiving a shared image |
Importing | Second stage of receiving a shared image |
Killed | Unusable because an image or storage error occurred |
Default images available
| Category | Image type |
|---|---|
| Linux | Ubuntu 20.04 |
| Ubuntu 20.04 (GPU) | |
| Ubuntu 22.04 | |
| Ubuntu 22.04 (GPU) | |
| Ubuntu 24.04 | |
| CentOS Stream 9 | |
| Rocky Linux 8.10 | |
| Rocky Linux 9.4 | |
| Rocky Linux 9.8 | |
| Rocky Linux 10.2 | |
| Alma Linux 8.10 | |
| Alma Linux 9.4 | |
| Alma Linux 9.8 | |
| Alma Linux 10.2 | |
| Windows | Windows Server 2019 |
| Windows Server 2019 (+ MSSQL 2019) | |
| Windows Server 2022 |
Volume
VM instances use a root device volume containing the OS image to boot. This volume is provisioned via the Block Storage service during instance creation.
Volumes serve as the storage space for actual data. KakaoCloud currently supports SSD block storage only. Volumes can be created and attached to VM instances to store OS, file systems, or databases.
Volume states
Volume statuses can be viewed under Virtual Machine > Volumes.
| Volume state | Description |
|---|---|
Creating | Volume is being created |
Available | Volume is available |
In-use | Volume is attached to an instance (Active, Stopped) |
Reserved | Volume is attached to a shelved instance |
Attaching / Detaching | Volume is being attached/detached |
Extending | Volume is being resized |
Backing-Up | Snapshot of volume is being created |
Uploading | Volume is being saved as an image |
Deleting | Volume is being deleted |
Error | Volume is in an unusable error state |
Volume size limit
The volume size limit depends on the OS image. Each image defines a maximum volume size, so check this before configuring the volume.
| Operating system | Item | Size (GB) |
|---|---|---|
| Linux | Minimum | 1 |
| Maximum | 16,384 | |
| Windows | Minimum | 1 |
| Maximum | 2,048 |
Key pair
A key pair is used for secure access to VM instances. It consists of a public key and a private key. Users must manage key pairs carefully and store both keys securely.
Typically, the public key is registered on the cloud platform, and the private key is used during authentication. This enhances access control and security. Once registered, only that public key can be used. Key pairs can be specified when creating or connecting to an instance.
Private key loss may lead to loss of access to the instance. Ensure encryption, avoid sharing or duplicating keys, and safeguard them thoroughly.
- KakaoCloud key pairs are user-scoped resources. Other users cannot view or use them.
Network and security
All VM instances are deployed within a VPC environment.
Virtual Private Cloud (VPC) allows users to configure private networks within the cloud, enabling fine-grained control and enhanced security for instances. Users can select VPC and subnets during instance creation and assign public IPs if necessary.
Public IP
A public IP allows a VM instance to communicate over the internet. Users can decide whether an instance should receive a public IP from the IP pool.
To use a public IP for internet communication, allocate an address using Create public IP, then associate it with a network interface. The association remains until you disassociate it, and charges continue for as long as the public IP remains allocated. You can disassociate an allocated public IP from one network interface and associate it with another.
IAM-based role management
Virtual Machine IAM (Identity and Access Management) supports role-based access control (RBAC) to manage users and groups. Roles define what actions a user can perform within a project.
All VM resources are created and managed under a project. Project-level users (Project Admin/Project Member) can perform tasks such as creation, modification, and deletion. However, only the key pair creator can delete their own keys.
By using IAM, access to instances can be controlled effectively, enhancing security and stability through appropriate permissions.
| IAM role | Project Admin | Project Member | Project Reader |
|---|---|---|---|
| Manage project members | ✓ | ||
| Set public IP config | ✓ | ||
| Manage instances | ✓ | ✓ | △ (view only) |
| Manage volumes | ✓ | ✓ | △ (view only) |
| Manage images | ✓ | ✓ | △ (view only) |
| Manage key pairs | ✓ | ✓ | △ (view only) |