<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=5928&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / cloud-init does not set IP]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=5928</link>
		<description><![CDATA[The most recent posts in cloud-init does not set IP.]]></description>
		<lastBuildDate>Fri, 19 Dec 2025 11:49:01 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: cloud-init does not set IP]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=60714#p60714</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>I edited the /etc/cloud/cloud.cfg (which by default does really a lot).</p></div></blockquote></div><p>Possible to share this?</p>]]></description>
			<author><![CDATA[dummy@example.com (hevisko)]]></author>
			<pubDate>Fri, 19 Dec 2025 11:49:01 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=60714#p60714</guid>
		</item>
		<item>
			<title><![CDATA[Re: cloud-init does not set IP]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=60713#p60713</link>
			<description><![CDATA[<p>things to check:<br />1) does /etc/network/interfaces a line like `include interfaces.d/*` ?<br />2) make sure there aren&#039;t another stanza for eth0 in /etc/network/interfaces</p>]]></description>
			<author><![CDATA[dummy@example.com (hevisko)]]></author>
			<pubDate>Fri, 19 Dec 2025 11:47:41 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=60713#p60713</guid>
		</item>
		<item>
			<title><![CDATA[cloud-init does not set IP]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=43895#p43895</link>
			<description><![CDATA[<p>Hi,</p><p>I have a custom VM image based on Devuan Chimera as template in a Proxmox cluster and would like to configure it&#039;s IP, for example to &quot;172.27.3.77&quot;. Apparently, cloud-init is the way to go. I edited the /etc/cloud/cloud.cfg (which by default does really a lot). When booting, a ASCII-Art-Table happily tells me that another IP address had been configured:</p><div class="codebox"><pre><code>ci-info: ++++++++++++++++++++++++++++++Net device info+++++++++++++++++++++++++++++++ 
ci-info: +--------+------+-------------+---------------+--------+-------------------+ 
ci-info: | Device |  Up  |   Address   |      Mask     | Scope  |     Hw-Address    | 
ci-info: +--------+------+-------------+---------------+--------+-------------------+ 
ci-info: |  eth0  | True | 172.27.1.31 | 255.255.252.0 | global | fe:37:f1:1e:35:4b | 
ci-info: |   lo   | True |  127.0.0.1  |   255.0.0.0   |  host  |         .         | 
ci-info: +--------+------+-------------+---------------+--------+-------------------+</code></pre></div><p>I assume, I get it via DHCP, but I&#039;m not able to verify this in the log files:</p><div class="codebox"><pre><code>root@RefVm-5:~# find /var/log/ -type f|xargs  grep  172.27.1.32 
/var/log/daemon.log:Aug 28 11:35:32 RefVm-5 avahi-daemon[1626]: Joining mDNS multicast group on interface eth0.IPv4 with address 172.27.1.32.
/var/log/daemon.log:Aug 28 11:35:32 RefVm-5 avahi-daemon[1626]: Registering new address record for 172.27.1.32 on eth0.IPv4.
/var/log/cloud-init-output.log:ci-info: |  eth0  | True | 172.27.1.32 | 255.255.252.0 | global | fe:37:f1:1e:35:4b |
/var/log/syslog:Aug 28 11:35:32 RefVm-5 avahi-daemon[1626]: Joining mDNS multicast group on interface eth0.IPv4 with address 172.27.1.32.
/var/log/syslog:Aug 28 11:35:32 RefVm-5 avahi-daemon[1626]: Registering new address record for 172.27.1.32 on eth0.IPv4.</code></pre></div><p>BTW: On the console, I cannot &quot;scroll back&quot; to &quot;look up&quot;, because Kernel does not support Shift-PgUp anymore and I don&#039;t see some boot.log or such. Can I see the bootmessages on console somehow?</p><p>However, cloud-init writes config file for right IP:</p><div class="codebox"><pre><code>root@RefVm-5:~# cat /etc/network/interfaces.d/50-cloud-init 
# This file is generated from information provided by the datasource.  Changes
# to it will not persist across an instance reboot.  To disable cloud-init&#039;s
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
auto lo
iface lo inet loopback
    dns-nameservers 10.12.3.4
    dns-search dom.net

auto eth0
iface eth0 inet static
    address 172.27.3.77/22
    gateway 172.27.0.1
root@RefVm-5:~# </code></pre></div><p>This is want I configured in Proxmox cloud-init config and this is what I want.</p><p>When I try &quot;ifup eth0&quot;, it says &quot;ifup: interface eth0 already configured&quot;, if I add &quot;--force&quot;, I get a &quot;RTNETLINK answers: File exists&quot; warning and then have both IP addresses (which is fine). I can access 172.27.3.77 then and all is fine.<br />NB: even if I reboot after getting /etc/network/interfaces.d/50-cloud-init, I don&#039;t get this IP address, so cloud-init appears to act early enough in the boot process (possibly deleting / recreating the file?).</p><p>What do I miss? How do I get my IP address configured (without needing manually ifup --force)?</p>]]></description>
			<author><![CDATA[dummy@example.com (lastcentral)]]></author>
			<pubDate>Mon, 28 Aug 2023 10:05:06 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=43895#p43895</guid>
		</item>
	</channel>
</rss>
