FAQ

Please tell me the service description of cloud-init and cloudbase-init which are included official images of Virtal Server.

(:Last updated)

The service descripton about cloud-init(for Linux series) and cloudbase-init(for Windows series) in official images of Virtual Server are as below;

■cloud-init(for Linux series)

1.Timing of execution

Launch Instance(including reboot by HA function)
*) It's required that the instance can access to the mata data service. If not, the cloud-init can't be executed.
For details, please refer to the service descripton of Virtual Server.

2.Extent of influence

・Install keypair settitng to the instance when the instance is launched at first time only(i.e. create instance).
・Install Post-install script to the instance when the instance is launched at first time only(i.e. create instance).
・The following 5 files are changed by executing cloud-init;

- /etc/hostname: hostname is changed when the instance is launched.
- /etc/hosts: If instance name is changed, the new instance name is added on hosts when the instance is launched.
- /etc/locale.conf: Initialized to en_US.UTF-8(default value of cloud-init) when the instance is launched at first time only(i.e. create instance).
- /etc/ssh/sshd_config: Initialized to PasswordAuthentication no(default value of cloud-init) when the instance is launched at first time only(i.e. create instance).
- /etc/ssh/ssh_host_*: Recreated sh_host_* when the instance is launched at first time only(i.e. create instance).
(/etc/ssh/ssh_host_dsa_key.pub, /etc/ssh/ssh_host_ecdsa_key, /etc/ssh/ssh_host_rsa_key.pub, /etc/ssh/ssh_host_ed25519_key.pub,
 /etc/ssh/ssh_host_ecdsa_key.pub, /etc/ssh/ssh_host_dsa_key, /etc/ssh/ssh_host_ed25519_key, /etc/ssh/ssh_host_rsa_key)

3.Reference: Workaround for updating automatically by cloud-init

・Customer can invalidate auto updates about executing cloud-init by the following setting;

- /etc/hostname: Setting to "preserve_hostname:True" on "/etc/cloud/cloud.cfg"
- /etc/hosts: Setting to "manage_etc_hosts: False" on "/etc/cloud/cloud.cfg"
- /etc/locale.conf: Setting to "your setting value(ex.locale: ja_JP.Shift_JIS)" on " /etc/cloud/cloud.cfg"
- /etc/ssh/sshd_config: Setting to "ssh_pwauth:True" on "/etc/cloud/cloud.cfg"
- /etc/ssh/ssh_host_*: Setting to "ssh_deletekeys:False" on "/etc/cloud/cloud.cfg"

■cloudbase-init(for Windows series)

1.Timing of execution

Launch at first time only(i.e. create instance).
*) It's required that the instance can access to the mata data service. If not, the cloud-init can't be executed.
For details, please refer to the service descripton of Virtual Server.

2.Extent of influence

・Install Post-install script to the instance when the instance is launched at first time only(i.e. create instance).
・Specified instance name when create instancce is registered to hostname.

3.Reference: Workaround for updating automatically by cloudbase-init when create instance

・Customer can invalidate auto updates about executing cloudbase-init by the following setting;
Remove "cloudbaseinit.plugins.common.sethostname.SetHostNamePlugin" from "plugins="
on cloudbase-init.conf which is stored on "C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\conf"
in the windows instance.

Is this page helpful?

Yes No

We appreciate your cooperation in improving the site

Did this FAQ be helpful? If you have any comments, please let us know.

Thank you

Your feedback has been received.