[lxc-users] cloud-init network config error
Sergiusz Pawlowicz
sergiusz at pawlowicz.name
Wed Mar 15 11:21:41 UTC 2017
On Tue, Mar 14, 2017 at 8:49 PM, <Claude.Durocher at sct.gouv.qc.ca> wrote:
> #cloud-config.yml
> network:
> version: 1
> config:
> - type: physical
> name: eth0
> subnets:
> - type: static
> ipv4: true
> address: 10.10.10.20
> netmask: 255.255.255.0
> gateway: 10.10.10.1
> control: auto
> - type: nameserver
> address: 10.10.10.1
>
> I'm launching the container on Ubuntu 16.04 (v2.0.9) with the following:
>
> lxc launch ubuntu: CONTAINER -c user.network-config="$(cat
> cloud-config.yml)"
You put too much into the network-config file, remove "network":
version: 1
config:
- type .....
cheerio,
S.
More information about the lxc-users
mailing list