Skip to main content

Create and connect instance

Create instance

Instance is a virtualized hardware resource that configures servers of various instance types. Here is how to create an instance in the Virtual Machine(VM):

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

  2. Click the [Create instance] button in the Instance tab.

  3. Enter the required information and click the [Create] button.

    • Network connection after creating an instance takes up to 10 minutes.

    Creating an instance Create instance

    ItemDescription
    ① Basic informationName: Instance name
    - If creating more than 2 instances, the name of the first created instance is automatically entered.
    Description (optional): Description of the instance
    ② ImageSelect one image to use
    - Default tab: Officially provided images by KakaoCloud
    - My Image tab: Images created by user (Refer to Manage image)
    ③ Instance typeInstance type to choose
    ④ VolumeThe volume attached to the instance.
    - Root volume is shown by default, and custom volume can be added if necessary.
    - Size: Can be created in sizes from 1 to 5,120GB
    - Type: Currently (as of November 2022), only SSD is supported, with plans to support various types in the future
    - Maximum IOPS: Current IOPS information by volume size

    Delete when instance is deleted: If selected, the volume will be deleted along with the deletion of attached instance.
    ⑤ Key pairSelect an existing key pair to apply to the instance or create a new one
    - Click Create key pair to create and assign a new key pair
    ⚠️ The private key cannot be downloaded again, so it's essential to securely store this information. Please note that you cannot connect to an instance without a key pair.
    ⑥ NetworkVPC: Network to configure the instance
    Subnet: Select one of the subnets created in the network
    - A public IP can be associated after an instance is created. For details, refer to Associate public IP.

    Security group: Select a security group to apply to the instance
    Inbound/Outbound rules
    - Inbound tab: Displays the policy applied by the security group above.
    ㄴ The following inbound ports should be allowed depending on the selected OS image.
    ㄴ Linux series: TCP port 22
    ㄴ Windows: TCP port 3389
    ㄴ Windows + MSSQL: TCP ports 3389, 1433
    - Outbound tab: Allows all protocols of all ports
    ⑦ Advanced settingsUser script: Enter or execute a user script
    - At instance launch, user data is executed to automate the initial setup configuration
    - User scripts and cloud-init commands can be entered or uploaded as a file size within 16KB
    - Entered commands are executed only when the instance is first started.
    - User scripts are copied and executed under /var/lib/cloud/instances.
    - To check the script execution log, run the following command
    ㄴ Ubuntu: sudo cat /var/log/syslog or sudo journalctl -u cloud-final.service
    ㄴ CentOS: sudo cat /var/log/messages or sudo journalctl -u cloud-final.service

    ⚠️ Entering or executing an incorrect user script or an incomplete script may result in OS boot failure.

    CPU multithreading: CPU multithreading option
    - Designates a single thread per CPU core for optimal performance
    - Recommended to disable for specific workloads such as high-performance computing (HPC)
info
  • Volumes for which the Delete when instance is deleted option is not selected will remain as detached volumes and be charged for even if the instance is deleted. In that case, delete the instance directly from the volume list.
  • Instances created starting January 16, 2023 will automatically have their hostname set to a private IP. (e.g. host-100-100-17-22).
  • After an instance is created, it is updated in host-IP format at the networking stage, and hostname may be displayed as the instance name for a while after instance creation.

Connect instance

Metadata is required to connect to an instance. If there is no default security group of the instance, define an outbound rules for metadata acquisition in the Custom security group. For more details, refer to Custom security group.

Connect to Linux instance

Linux instances are connected using the SSH command. Check the related explanation by clicking Virtual Machine > Instance tab > [More] icon > Use SSH to connect. Set up the security group according to the OS image and prepare the connection with public/private IP.

OSSecurity group policyAllowed port
LinuxInbound       TCP port 22 (default)

Image. SSH Connection SSH connection

Step 1. Prepare SSH client

Install an SSH client in advance to use the SSH command. Below is the preparation requirements for installing an SSH client by operating system:

OSPreparation
Linux/macOSInstall an SSH client and use the ssh command in the terminal
WindowsInstall OpenSSH client to use the ssh command in the command prompt (cmd) or install a separate SSH client such as PuTTY
Step 2. Connect via SSH

Use the SSH command to connect to the instance. Enter the path and file name of your private key (.pem), the username, and the address of the instance.

SSH command
ssh -i {PATH_TO_PRIVATE_KEY} {USERNAME}@{INSTANCE_IP}
CommandDescription
PATH_TO_PRIVATE_KEYPath to the private SSH key
USERNAMEUsername for connecting to the instance
INSTANCE_IPThe IP address of the instance
- Enter either a public or private IP according to the connection environment

Connect to Windows instance

After the RDP connection, set up a Remote Desktop Connection to connect to the Windows instance. It is necessary to set up the security group according to the OS image, and prepare the connection so that it can be accessed via a public/private IP.

OSSecurity group policyAllowed Port
WindowsInbound       TCP Port 3389
Step 1. Connect via RDP

Proceed with the RDP connection for an instance with Windows OS installed.

info
  • Setting the initial password to connect to an instance may take approximately 20 minutes after requesting instance creation.
  • Access is only possible with the password obtained through the initial key pair file. If the password is changed, manually do so through the operating system (OS).
  • KakaoCloud Console only provides the initially obtained password, and any subsequently changed passwords will not be provided.
  • There are restrictions on using WSL (Windows Subsystem For Linux) in Windows instances. For Linux, please use a Linux instance.
  1. Go to Beyond Compute Service > Virtual Machine in the KakaoCloud Console.

  2. In the Instance tab, select Use RDP to connect from the [More] icon of the instance.

    • The username automatically generated upon instance creation is Administrator.
  3. Click the [Upload key pair] button to upload the key pair (.pem) file associated with the instance to obtain the password.

    • The selected private key is not transmitted to the server.
Step 2. Connect via remote desktop

To connect to the Windows instance, set up a remote PC (desktop) with the IP address and port number.

  1. Click on Start > Settings > System > Remote Desktop, or enter [Remote Desktop Connection](Microsoft Remote Desktop) in the search bar to launch Remote Desktop.

  2. Enter the public or private IP suitable for the instance's connection and click the [Connect] button.

    • If the instance is configured to use a different port number, add the port number after the IP address. (e.g. 10.0.0.0:1234)
  3. In Enter your credentials, enter the user name and password, click the [OK] button, and then access the respective Windows instance.

caution

If there are instances with the same hostname within the same network (VPC), some network functions may experience errors. Please be careful when changing the instance name or directly changing the host name.