# cloud-init

## 检查 cloud-init 失败、长时间运行

<https://cloudinit.readthedocs.io/en/latest/howto/debugging.html#to-start-debugging>

运行以下命令检查 cloud-init 处于哪个阶段：

```bash
systemctl status cloud-init-local.service cloud-init.service\
     cloud-config.service cloud-final.service
```

关于不同阶段的解释：<https://cloudinit.readthedocs.io/en/latest/explanation/boot.html>

---

**Documents**

- [Incus服务器设置](https://notes.bleatingsheep.org/s/iaas-user/doc/incus-mDBc61ZhGk)
- [SSH+tar+zstd 传输大量文件](https://notes.bleatingsheep.org/s/iaas-user/doc/sshtarzstd-E2tTrdz1Iz)
- [cloud-init](https://notes.bleatingsheep.org/s/iaas-user/doc/cloud-init-JBRvQIyH81)