Centos Atomic 7 cloud-init静态networkingconfigurationNO DEFAULT GATEWAY
我从这里下载了CentOS Atomic Host,并将其安装在带有桥接适配器的VirtualBox VM中作为networking适配器。 默认安装,我只设置root密码,没有别的。 然后我login虚拟机,运行命令systemctl enable cloud-init来初始化我的实例并reboot 。 cloud-init的用户数据和元数据文件如下: #meta-data | #user-data ——————————————————————————– instance-id: magicatomic | #cloud-config local-hostname: ss.magicatomic | groups: network-interfaces: | | – docker: [root] auto enp0s3 | write_files: iface enp0s3 inet static | – content: | address 192.168.1.110 | { network 192.168.1.0 | "debug": true, netmask 255.255.255.0 | "hosts": ["tcp://192.168.1.110:2375"] broadcast […]