cloud-init team mailing list archive
-
cloud-init team
-
Mailing list archive
-
Message #00188
Kernel parameters ip or network-config
-
To:
cloud-init@xxxxxxxxxxxxxxxxxxx
-
From:
Martin Schmid <schmidm@xxxxxxxxxxxxxxxxx>
-
Date:
Tue, 6 Nov 2018 09:07:03 +0100
-
Autocrypt:
addr=schmidm@xxxxxxxxxxxxxxxxx; keydata= xsFNBFti7lEBEADXg8VCapWgefxxqpzbl94xIBJsxKN4drC2tyonFujIUr5tWFUYXg/nOmGM OTKvOFyetL1iBd2/UWMkBpCKa6BzYcmSd7mosic7djI5EYdWyTXGbiocAoY4dUuY68xk9+20 tggZPDd9PsIcVe1FYwG/QKHhHpenx1jQDDTKbHql87SeqZos3nKQPDsHrJXJULzjfjanrT3w hBKMmXX7ynpl3VX+HRqjG1LHlst/pqgOFPb8Mftasw1trBeYhcIu6IJEdLABLyXEsjE9vQ2d hFO2enuwg/wI9N8wNfv9STgMl34kEg8DkS7oGCRLVSVbKUdJO/AzdFUs2jpXrLq4HOjoHmg8 niAbOtTY0i1B3xPIDtk/pqK+hxbc/H0TYr8PvPLhoNU1DzqiH5CY0YW8LVC+LtmWgp6R2Huv +EOicBVTFjDUylNLUJrZMJpn9D3Z6TRuxhAQ3CvECSpGL/iZqmJjxGLykUXSJiTjkKrtvZ9k rNAJGPl0poc8PEB6WhA5s5qAffegIYcWhlJD6vCPOc9TG5JIDEGKKUxC5eU0M0Zmw58ErY/1 J68MBmeC4MPYLQZPwf7y4f7D9bt7dYuOVkwNUN7HdFe1gU/C2P86VnyC/9GWa923AStfZ7h9 rTJ6FX+WLCG51VrxSeWlyO0b+2pVH4rzhhTtZJ+wwpqJjgVqhwARAQABzSlNYXJ0aW4gU2No bWlkIDxzY2htaWRtQHVuaXRlZC1kb21haW5zLmRlPsLBjgQTAQgAOBYhBGkjlJs7UaYx16qV 9OI4+ITRxTfsBQJbYu5RAhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEOI4+ITRxTfs 2u8P/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
preference=signencrypt
-
User-agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
Hello guys,
I've a problem with deploying a Cloud-init Debian Instance. I dont have
an Openstack and I prefer to deploy via virt-install and kernel
parameters. Everything works well, only the ip= or network-config stack
is going wrong. I've read in the manual it's possible to make it with
base64 encodig or with yaml parameters in one line. But I cant write it
in one line. Here is my example code:
#my network settings i wish to deploy via kernel parameters
version: 1
config:
- type: physical
name: ens2
mac_address: "52:54:00:c5:dd:54"
subnets:
- type: static
address: 10.30.0.227/17
gateway: 10.30.0.1
dns_nameservers:
- 10.30.128.11
#in base64:
dmVyc2lvbjogMQpjb25maWc6CiAgLSB0eXBlOiBwaHlzaWNhbAogICAgbmFtZTogZW5zMgogICAgbWFjX2FkZHJlc3M6ICI1Mjo1NDowMDpjNTpkZDo1NCIKICAgIHN1Ym5ldHM6CiAgICAgIC0gdHlwZTogc3RhdGljCiAgICAgICAgYWRkcmVzczogMTAuMzAuMC4yMjcvMTcKICAgICAgICBnYXRld2F5OiAxMC4zMC4wLjEKICAgICAgICBkbnNfbmFtZXNlcnZlcnM6CiAgICAgICAgICAtIDEwLjMwLjEyOC4xMQ
#my vrit-install example (everything else works well like s=.... h=...
and so on)
# with ip=
virt-install --name test-martin2 \
--ram 512 \
--disk /zpool/vms/debian-9.5.7-20181103-openstack-amd64.raw \
--network bridge=VLAN.1,mac="52:54:00:c5:dd:54" \
--boot
kernel=/tmp/vmlinuz-4.9.0-8-amd64,initrd=/tmp/initrd.img-4.9.0-8-amd64,kernel_args="console=ttyS0
root=UUID=ab2532f3-0120-46ec-8bf1-8997bf08ad9b
ds=nocloud-net;s=http://10.30.0.229/;h=test-martin;ip=dmVyc2lvbjogMQpjb25maWc6CiAgLSB0eXBlOiBwaHlzaWNhbAogICAgbmFtZTogZW5zMgogICAgbWFjX2FkZHJlc3M6ICI1Mjo1NDowMDpjNTpkZDo1NCIKICAgIHN1Ym5ldHM6CiAgICAgIC0gdHlwZTogc3RhdGljCiAgICAgICAgYWRkcmVzczogMTAuMzAuMC4yMjcvMTcKICAgICAgICBnYXRld2F5OiAxMC4zMC4wLjEKICAgICAgICBkbnNfbmFtZXNlcnZlcnM6CiAgICAgICAgICAtIDEwLjMwLjEyOC4xMQ=="
\
--serial=pty \
--nographics
# with network-config
virt-install --name test-martin2 \
--ram 512 \
--disk /zpool/vms/debian-9.5.7-20181103-openstack-amd64.raw \
--network bridge=VLAN.1,mac="52:54:00:c5:dd:54" \
--boot
kernel=/tmp/vmlinuz-4.9.0-8-amd64,initrd=/tmp/initrd.img-4.9.0-8-amd64,kernel_args="console=ttyS0
root=UUID=ab2532f3-0120-46ec-8bf1-8997bf08ad9b
ds=nocloud-net;s=http://10.30.0.229/;h=test-martin;network-config=dmVyc2lvbjogMQpjb25maWc6CiAgLSB0eXBlOiBwaHlzaWNhbAogICAgbmFtZTogZW5zMgogICAgbWFjX2FkZHJlc3M6ICI1Mjo1NDowMDpjNTpkZDo1NCIKICAgIHN1Ym5ldHM6CiAgICAgIC0gdHlwZTogc3RhdGljCiAgICAgICAgYWRkcmVzczogMTAuMzAuMC4yMjcvMTcKICAgICAgICBnYXRld2F5OiAxMC4zMC4wLjEKICAgICAgICBkbnNfbmFtZXNlcnZlcnM6CiAgICAgICAgICAtIDEwLjMwLjEyOC4xMQ=="
\
--serial=pty \
--nographics
Link to manual
https://cloudinit.readthedocs.io/en/latest/topics/network-config.html
best regards
Martin