We should add /etc/cloud/cloud.cfg.d/00_Ec2.cfg: --- datasource: Ec2: strict_id: false --- This will fix cloud-init start: https://cloud.yandex.ru/docs/compute/operations/image-create/custom-image#ec2