我正在尝试使用'NoCloud'部署'Fedora-AtomicHost-29-20190219'图像(qcow2)来提供用户数据,主机名和网络设置(非dhcp)。配置Userdata和hostname成功配置网络失败。
日志告诉我所提供的数据是由cloud-init正确读取的,但系统上似乎没有可用的渲染器:
2019-02-26 11:33:44,805 - stages.py[INFO]: Applying network configuration from ds bringup=False: {'version': 2, 'ethernets': {'net1': {'match': {'macaddress': '52:54:00:ab:cd:ef'}, 'dhcp4': False, 'dhcp6': False, 'addresses': ['192.168.42.100/24', '2001:db8::100/32'], 'gateway4': '192.168.42.1', 'gateway6': '2001:db8::1', 'nameservers': {'search': ['example.com'], 'addresses': ['192.168.42.53', '1.1.1.1']}}, 'net0': {'match': {'macaddress': '52:54:00:59:e0:78'}, 'dhcp4': False, 'dhcp6': False, 'addresses': ['10.170.64.95/24'], 'routes': [{'to': '10.170.0.0/16', 'via': '10.170.64.1'}, {'to': '10.270.0.0/16', 'via': '10.170.64.1', 'metric': 100}]}}}
2019-02-26 11:33:44,806 - stages.py[ERROR]: Unable to render networking. Network config is likely broken: No available network renderers found. Searched through list: ['eni', 'sysconfig', 'netplan']
此映像上安装的cloud-init版本为17.1。 NetworkManager在计算机上运行,systemd-networkd也已安装,但由systemd禁用。
提供的配置适用于ubuntu-18.10映像。
有人知道我做错了什么吗?
非常感谢。
我曾经在元数据文件中设置网络内容,其余用户数据。
伙计:毕竟
instance-id: demo01
local-hostname: demo01
network-interfaces: |
iface eth0 inet static
address 192.168.56.106
network 192.168.56.0
netmask 255.255.255.0
broadcast 192.168.56.255
gateway 192.168.56.254
file:user-data
#cloud-config
ssh_pwauth: True
...