From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id D0D2E1FF15E for ; Mon, 27 Oct 2025 13:12:14 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id A788A368D; Mon, 27 Oct 2025 13:12:43 +0100 (CET) To: "pve-devel@lists.proxmox.com" Date: Sat, 25 Oct 2025 19:49:46 +0000 X-Mailman-Approved-At: Mon, 27 Oct 2025 13:12:42 +0100 MIME-Version: 1.0 Message-ID: List-Id: Proxmox VE development discussion List-Post: From: austin hunt via pve-devel Precedence: list Cc: austin hunt X-Mailman-Version: 2.1.29 X-BeenThere: pve-devel@lists.proxmox.com List-Subscribe: , List-Unsubscribe: , List-Archive: Reply-To: Proxmox VE development discussion List-Help: Subject: [pve-devel] Feature Request - Move the hostname and fqdn assignments out of the cloudinit userdata section Content-Type: multipart/mixed; boundary="===============5015315459679750103==" Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" --===============5015315459679750103== Content-Type: message/rfc822 Content-Disposition: inline Return-Path: X-Original-To: pve-devel@lists.proxmox.com Delivered-To: pve-devel@lists.proxmox.com Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 1D587D4E96 for ; Sat, 25 Oct 2025 21:50:28 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 034ACDBD6 for ; Sat, 25 Oct 2025 21:49:58 +0200 (CEST) Received: from PH8PR06CU001.outbound.protection.outlook.com (mail-westus3azolkn190120000.outbound.protection.outlook.com [IPv6:2a01:111:f403:d116::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Sat, 25 Oct 2025 21:49:56 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=HkX+YwR86UpWKdjI19Eat6bXOQ5FAR/VFUL64FTiZTm078/M2WLHmePoP7QcFHglWgzDIS9bXYGXSqbnuie67tWc1/j48Is6O3G9uZOej1IPMU0N1Cy6rct4TrTw80I77Oxn0UzWQWTqBXZaRjbQKqEb5eWCxquU/raXAifw4XHsmNwwq+Y+YMVTWJ1It5h7dZWGIt+6QILKt4+5y2yWbMYrUkOzBz+PB6ObP7hOK+oLoSn1FmAJwhAsrzXYgMEbKJ5Mg3fRrqAXbN0yWqZOOvDn7LXO+Z8HPJKOp3sSdxMgNuVr0K8qghNYI8UJyvFpj3j/N1+HBO23XmpXO7keUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=jIz+u50JfxDs3CwOX7wjt1pS/oXqss0S577e48oNUzE=; b=KNdhhl1oZmZaUBkwQ9QI/KkhKbPWeSxJD9wDDdMwqq6XDqRXJTf+E6QBEZbO7dLViIAqyYjjZ9Ogi9tQj5npmSgpe4VcoRsBWXDfFwzqkmXtK9L5EBb+rZ8ftfNLY+IPL6pgybQzBHUgZao/fgxHhhJfVOVWf+ktErZpRqAfCefaAbAf9ZMXzq7jANxgdJcZGymMBsCHt0qmP3SwkyGEX48zYVZNdsEwm2qoVOKWEB+4ERXnepDu1X0BHm0GlRBRqm4dv6ikJLLbGjpieRGkCrpdRpWBb/p6Kp/SeOAQ5SgLE6TqUFN/5Q8/DvCX+um87IgApZXpAQJ1qaN1WXI9gg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jIz+u50JfxDs3CwOX7wjt1pS/oXqss0S577e48oNUzE=; b=VzUHNkwFEKNyyBuD/9Ac0GS0zqfT+5g4sNYAAff68QWkvmNRc20S9+Pupk2aJFUomrXPsPeMvtMMQSqYVNF33FpquvHN2vA/rJgfxuHBKt3iQ2+01iUOiS5NO2CqOYn3azet9uSwSjSFVkKrlAZxjCaiEETrujoi5n8VtvCQeCvsWpdppJ/WN26jl24sxDDr6PT7oW3B1W8NFndG8KK4d3VID/dS4qKtMBu6myieLTHImEAO4yH/0GhdBHSVP6bkn/zOErGjlxcbqTqtmlu1XqxqLiK0MXRz8nT0ENEYMDaPPKNb0j7GO2nlsRCfW8XQdeL82XvKcVSEAQiqEj8mIQ== Received: from CH3PR22MB5512.namprd22.prod.outlook.com (2603:10b6:610:1e0::13) by CH3PR22MB4140.namprd22.prod.outlook.com (2603:10b6:610:176::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9253.15; Sat, 25 Oct 2025 19:49:47 +0000 Received: from CH3PR22MB5512.namprd22.prod.outlook.com ([fe80::76f5:b6fe:d3dc:b1e2]) by CH3PR22MB5512.namprd22.prod.outlook.com ([fe80::76f5:b6fe:d3dc:b1e2%4]) with mapi id 15.20.9253.013; Sat, 25 Oct 2025 19:49:46 +0000 From: austin hunt To: "pve-devel@lists.proxmox.com" Subject: Feature Request - Move the hostname and fqdn assignments out of the cloudinit userdata section Thread-Topic: Feature Request - Move the hostname and fqdn assignments out of the cloudinit userdata section Thread-Index: AQHcReQG12al19TfsEyOsuf8OVnwdg== Date: Sat, 25 Oct 2025 19:49:46 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CH3PR22MB5512:EE_|CH3PR22MB4140:EE_ x-ms-office365-filtering-correlation-id: 1e4ca36b-0d02-4438-789d-08de13ffa6ca x-microsoft-antispam: BCL:0;ARA:14566002|19110799012|8062599012|8060799015|9400799040|31061999003|12050799012|15030799006|15080799012|461199028|440099028|3412199025|10035399007|19061999003|39105399003|40105399003|51005399003|102099032; x-microsoft-antispam-message-info: =?iso-8859-1?Q?BKlt1dUfioerV8dgEWaiG4B8ym4eE818tEjxkBzL4e3s1BMJszt9rH9Za6?= =?iso-8859-1?Q?BRzgk+NIBrOdA0vf1TkIjyRR8T+Vozb6KdQFON+p0dzcMpz5NuFeYo1bfP?= =?iso-8859-1?Q?DqK44OUjdOfNVGq0Sebu2RociBe+itmJn3OnX+yYwDsQWgEO2X8bkBPAXR?= =?iso-8859-1?Q?1WmjrISGeL6ZrnF71FDC+XQN0v/fDgF8lRKM7cuO8GLSiR1GSmxcCVIfcn?= =?iso-8859-1?Q?Rdtzt+Qgf7YuBgzTPhUWV/eagE4a8n6hxZVNlMRwHdV3Uybr4z/wUP+KKR?= =?iso-8859-1?Q?Lvdhhp0babXs43VbDtLV3WSDv0T4MLf7xLBYVrOS0R5Uw+oHm3QvLhdZBc?= =?iso-8859-1?Q?aFPRBn8ZOqNHSCUU2NJz6e3XK0popQxfPCdlG7tKwbz9I+dbXscq9yYWT2?= =?iso-8859-1?Q?AYNVGABt4k3cDlfmROubYmphj1KKrEDODw8/sodRJy7fTcrzXwusGnZ/Eo?= =?iso-8859-1?Q?hrwyEu1WLHnaYrsm07Qpwi0sGN2fOs9dhmL7c0FNFtVCG+umM0eb2yjE9R?= =?iso-8859-1?Q?Ba2VcwknEws5RqAdRD2Zu8L2nxWsXHlGzfHVW5GXE1Hu5gCoTpxNQytb1m?=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WjZ4zJIVoA=3D=3D?= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?ppVeaK3+awo4wSW0owm+IQ6BS1YkV8XH8MsOpSIvV0T7fexRvQsdbIXIuY?= =?iso-8859-1?Q?aApOiAiH51K/TGprVbBxUHVr5JgOZCQmd16kQNyACTrQeHlaLTIPKDPBnV?= =?iso-8859-1?Q?IIN+V8zQy6DVbrDRQrjmSHKENeyRnXXiaiSt6QUCS4LhA8enslpkG4455T?= =?iso-8859-1?Q?rOTNkwtzWUEDuUFEu5c9wLEJI2WSF4DHFybB4XKvTgje8ZloM2kCLeBMa5?= =?iso-8859-1?Q?XTSSu6pFbVkg4oPRwVatgL1ipchafq/z2qSpoOlwV6yS9RkyBRSyr/rnIP?= =?iso-8859-1?Q?8mDL/Q2zhhWVDDMeh8UFIIGEPeR3U12YV/rU1+JjjqatmuWo0GUtulrtzV?= =?iso-8859-1?Q?9zXFMfl+M3P+/uTMVlLW9baHC+sS29tzKPIQZ8pXZJhFxx2Ebum8bHfE56?= =?iso-8859-1?Q?Yw73bjBtUYCS35i3JQi4ms7f3dslYhpd8OoW9ELL4OcArGZwI5FX/ny+Bp?= =?iso-8859-1?Q?HBkM5SzjaIX/eJwUKPVNTNm3cT4B6CYN7CgWV8LrGEB8s8tsNN0801SP4O?= =?iso-8859-1?Q?xwvfT3xFqr25rWbqHypX46iKe6VXJpm4t+1BLiy9sGKxFF5ksX0TGvUagb?= =?iso-8859-1?Q?ii1VF7AWfrOVocpuiowmTjUR/Pmu055lFgbM1sIq9Yf4sH9MBsccp2LL3O?= =?iso-8859-1?Q?EYWpaiV6lP4pi9QQInBSpw2Woc2FtmjD/d2Rc2FhrzMUylhy5FdrNoqh4G?= =?iso-8859-1?Q?w4Rr36VeTyUgYxOqI30+VjyMR7an9EVeJyPITUCVN3PwApZXG8Wn3l3UnM?= =?iso-8859-1?Q?X04nrW6AFleg5KbYvBt1gnW6G+NKe5mCIRmjvAHatVKWsHoDIMTOu4VlGY?= =?iso-8859-1?Q?v1ftA5TkQJudLbxy3X+eRLXQHPiDvo+hwaTU1EfcJ/Wf9jQlrWR19ZIEqL?= =?iso-8859-1?Q?I0tjBesQwRq222RoUDm/NbQoovheo+Q8cLGtbI88rCj1WzjCCHToLDK367?= =?iso-8859-1?Q?3xOSldQKJaWpU+DtMdTRZPVCqZpzKTC1lbhk2M7fj5LpwNVFcYs9JMhfdD?= =?iso-8859-1?Q?useaxgG02Pn/UbP5QrNst8l09JOGZX60UrXT1gf21auaqrrb3GJ8/O77Pn?= =?iso-8859-1?Q?Pm9UEyk8JOg+RrSpHojZmynd0Bb7gp9vMhip+knQQmZsUfU318sV7SjEwj?= =?iso-8859-1?Q?xW8CiwwQ+lczm+kmX65PwCTm7+R2zCuRJHTBfP+CVOHpnaCzv18UeSeCX9?= =?iso-8859-1?Q?rwlxmy+C3QpnS3oHSYGWVcZRpRGoym65sItLSRDl8vhDMZ+2y1oWtd3p3e?= =?iso-8859-1?Q?BxgXhrvEJqmBvfzrI5Ykg+nKuYG+h/pi5tBaAy1i0=3D?= MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CH3PR22MB5512.namprd22.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 1e4ca36b-0d02-4438-789d-08de13ffa6ca X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Oct 2025 19:49:46.8568 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR22MB4140 X-SPAM-LEVEL: Spam detection results: 0 ARC_SIGNED 0.001 Message has a ARC signature ARC_VALID 0.001 Message has a valid ARC signature BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain DMARC_PASS -0.1 DMARC pass policy FREEMAIL_ENVFROM_END_DIGIT 1 Envelope-from freemail username ends in digit FREEMAIL_FROM 0.001 Sender email is commonly abused enduser mail provider HTML_MESSAGE 0.001 HTML included in message SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record X-Mailman-Approved-At: Mon, 27 Oct 2025 13:12:42 +0100 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Hi PVE team, Thank you for your continual work. I really like working with Proxmox and i= t has been great overall. I want to make a feature request to adjust the lo= gic used in the cloud init portion of the codebase. Topic: Cloud-Init Hostname and FQDN assignments in the userdata section. Request: Move these into the VENDOR data section or META data section; pref= errably the VENDOR data section. Why: As it currently is, users can't create their own userdata file to pass= to cloud init, without having major problems with device hostnames and fqd= n settings. When a user passes a custom userdata file, that file takes prec= edence and the automatic config doesn't get generated. This includes the ho= stname and fqdn not being generated automatically. Users can statically set= the hostname in their custom userdata file, but now that single hostname i= s set for ALL their machines that use that custom userdata snippet file. Th= e problem compounds when I have dozens or hundreds of VMs. I need a way to = pass my own cloud init custom file and NOT mess with the dynamic hostname g= eneration. That is why I'm asking for you to move the hostname and fqdns se= tting to the vendor data portion of cloud init. The vendor data section is = a good place for the hostname and fqdn setting, because the vendor data fil= e is meant for the hypervisor / hosting platform. The userdata section is m= eant for the user's config and the user config can override the vendordata = as needed / desired. I can then create all the custom userdata code I need. Rebuttal: The most common thing I have seen on the internet regarding this = topic is that people put all their code in the vendor data section and pray= it works. That or they create a whole bunch of meta data files and they pu= t the hostnames there which is still static and now we have a whole lot of = files to manage and create. Neither of these options are how cloud init is = meant to be used as I understand. The file and function that need adjustment is this one -> https://github.co= m/proxmox/qemu-server/blob/master/src/PVE/QemuServer/Cloudinit.pm#L127 Thank you for your consideration. Please let me know if you need anything f= rom me. Thank you, Austin Hunt --===============5015315459679750103== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel --===============5015315459679750103==--