RancherOS disk modification

[Update: February 1, 2018]

This page explains specifications related to the disk modification function for RancherOS of SAKURA Cloud.

1. Overview

The disk modification function is a function for specifying initial settings for the disk connected to the server and for specifying/changing settings such as the IP address and password for the login account. This page lists specifications related to the disk modification function for RancherOS.

Supported OS

An operation check is performed for each version of RancherOS.

*This function is guaranteed to work on public archives provided by SAKURA internet.

2. Items which can be set by the disk modification function

(1)IP address
(2)Subnet mask
(3)Default gateway
(4)Host name
(5)Public key
(6)DNS settings
(7)Startup script

3. Detailed specifications

IP address, subnet mask, default gateway (at the time of router + switch/switch connection), DHCP

A file set as cloud-config is put in /var/lib/rancher/conf/cloud-config.d/interfaces.yml.

Host name

A file set as cloud-config is put in /var/lib/rancher/conf/cloud-config.d/hostname.yml.

Disable password and SSH login using the password.

The password cannot be set. Please log in using public key authentication as the default user “rancher.”

Public key

A file set as cloud-config is put in /var/lib/rancher/conf/cloud-config.d/ssh_authorized_keys.yml.

DNS settings

A file set as cloud-config is put in /var/lib/rancher/conf/cloud-config.d/dns.yml.

Startup script

The YAML_CLOUD_CONFIG file is assigned to /var/lib/rancher/conf/cloud-config.d/ in the file format ”note_” + Note resource ID + “.yml”.

*The executable startup script is the YAML_CLOUD_CONFIG class. The SHELL class startup script cannot be executed.