我正在测试一些要在 OpenStack 上使用的操作系统云映像。我正在尝试使用以下丁烷配置的 OpenSUSE MicroOS:
---
variant: fcos
version: 1.1.0
storage:
filesystems:
# Mount /home folder (required when creating non-root users)
- device: /dev/disk/by-label/ROOT
path: /home
format: btrfs
wipe_filesystem: false
mount_options:
- "subvol=/@/home"
files:
# give a name to the instance
- path: /etc/hostname
mode: 0644
overwrite: true
contents:
inline: ${hostname}
passwd:
users:
# Define a password for root user
- name: root
password_hash: ${root_pass}
# Create a new non-root user
- name: ${username}
ssh_authorized_keys:
- ${ssh_pub_key}
我将此配置呈现给 ignition,然后将其传递给实例 user_data。它适用于 Fedora CoreOS、Flatcar Linux 和 Ubuntu cloud-init,但 MicroOS 实例无法启动。
我不知道哪里出了问题。我还尝试了以下 cloud-init 配置:
#cloud-config
mounts:
- [/dev/disk/by-label/ROOT, /home, btrfs, "defaults,subvol=/@/home"]
users:
- name: ${username}
ssh-authorized-keys:
- ${ssh_pub_key}
hostname: ${hostname}
我不明白是什么阻止了 MicroOS 实例启动......