cloud-init:无法呈现网络

时间:2019-02-26 12:26:17

标签: cloud kvm libvirt cloud-init fedora-29

我正在尝试使用'NoCloud'部署'Fedora-AtomicHost-29-20190219'映像(qcow2)以提供用户数据,主机名和网络设置(非dhcp)。 配置用户数据和主机名成功,则配置网络失败。

日志告诉我所提供的数据已通过cloud-init正确读取,但系统上似乎没有可用的渲染器:

SELECT
  SUM(summen.`Keine Operation durchgeführt`),
  SUM(summen.`Bioenterics Intragastric Ballon (BIB)`),
  SUM(summen.`Gastric Banding`),
  SUM(summen.`Roux-en-Y Gastric Bypass`),
  SUM(summen.`Summe`)

FROM
(
  SELECT
      SUM(op.OP1OPVerfahren = "0") AS "Keine Operation durchgeführt",
      SUM(op.OP1OPVerfahren = "1") AS "Bioenterics Intragastric Ballon (BIB)",
      SUM(op.OP1OPVerfahren = "2") AS "Gastric Banding",
      SUM(op.OP1OPVerfahren = "3") AS "Roux-en-Y Gastric Bypass",
      SUM(op.OP1OPVerfahren LIKE "%") AS "Summe"
      FROM ods01.dat_patient p
      LEFT OUTER JOIN ods01.dat_optherapie op ON op.PatID = p.ID
      WHERE Testzwecke = 0
      AND p.ID = op.PatID  -- possibly redundant
      AND NOT EXISTS (SELECT 1
                      FROM ods01.dat_optherapie op2
                      WHERE op2.PatID = p.ID AND op2.revision > op.revision)
      GROUP BY OP1OPVerfahren

  UNION ALL

  SELECT
      SUM(op.OP1OPVerfahren = "0"),
      SUM(op.OP1OPVerfahren = "1"),
      SUM(op.OP1OPVerfahren = "2"),
      SUM(op.OP1OPVerfahren = "3"),
      SUM(op.OP1OPVerfahren LIKE "%")
      FROM ods02.dat_patient p
      LEFT OUTER JOIN ods02.dat_optherapie op ON op.PatID = p.ID
      WHERE Testzwecke = 0
      AND p.ID = op.PatID  -- possibly redundant
      AND NOT EXISTS (SELECT 1
                      FROM ods02.dat_optherapie op2
                      WHERE op2.PatID = p.ID AND op2.revision > op.revision)
      GROUP BY OP1OPVerfahren
  ) summen

此映像上的cloud-init安装版本为17.1。 NetworkManager在计算机上运行,​​还安装了systemd-networkd,但被systemd禁用。

提供的配置适用于ubuntu-18.10图像。

有人知道我在做什么错吗?

非常感谢。

1 个答案:

答案 0 :(得分:0)

我曾经在元数据文件中设置网络内容,其余在用户数据中设置

文件:元数据

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

文件:用户数据

#cloud-config
ssh_pwauth: True
...