From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 A36B568DEA for ; Fri, 10 Sep 2021 20:34:25 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 96C4817CDE for ; Fri, 10 Sep 2021 20:33:55 +0200 (CEST) Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 1992617CD3 for ; Fri, 10 Sep 2021 20:33:54 +0200 (CEST) Received: by mail-lj1-x22d.google.com with SMTP id g14so4648374ljk.5 for ; Fri, 10 Sep 2021 11:33:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=sVgL0CaKi+KzMTXXtkdd43w0Z6uHdavXexPXRgkioW8=; b=hHz2+IQvqdw51O2iqoJm8HcPL3HdBYO+UfYLPCiX50YJHH9MOACgFADzOVj7cWQ50s MEOObcC8Bo7zuP0GiqYSsb5Spdo0eMweTIUB5doBWmXOsEHZ7PUM9mi7TI5ERrTZjnID G0jgL+qNsiwadsdjt1Wi6PTuw7uI62OiYV2qCQmNVF9AsSk5OjeJHJ5Cw4HcSNqFLwWt ktM4hVUlKZrnP/KC7BGgPxSxuC5G3SdIUPs13c+gn3TVdUjAmNa/sBV7FF8UAboWIjTn kPgiGRz9GeoIcNYE5NuhX6aIgg+/xBpaByBvUZyqk1qRDJIXSWywEToWB/7MzMp8lk8y lrFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=sVgL0CaKi+KzMTXXtkdd43w0Z6uHdavXexPXRgkioW8=; b=2SDOgYm3NLX574QhAGWeaecY/uUsQn5VT6U+ZxSPv0w/EC5K0dJjJib8SEd9H/BHr8 q6lXh112S93mIM3deTVlLU1Yn1Ijc3p1/d2GzErtzcqhmSYsRvz281dAHKDvEuXY3qC3 RpX0LKshZLtTyr91u/5WRqtsVRhykjmZk4GESVTk/V2YIFY6yVHDAVyD4tpMIFjXPDtv k8/zXXetp3jGi8coN+RRDmvF6Nj45Px477vOpoDDxevt5IuZvXv6qnHElmrJ/PCq0z5Y rHYcHDYlQARHVMwS6K8FtafttVJIxQKGcwLNZmxmm5GiGvQG8i2qXapQplhqYC3zi4Lk r1+g== X-Gm-Message-State: AOAM533upAGabm7kUGkPiW8fTAbDCUYsWaApQMe0ar/Me0zDD7sFmmAN c2nHc5GZMZiQjZdVFlLpaXpAvd3/LLE= X-Google-Smtp-Source: ABdhPJzRbkCZdEYWDm0V+Pq41YZaZlldMWYwFg305mlZ0wWZnYwqmGqDj+N6GCQEr3XswVDI2dfgDw== X-Received: by 2002:a05:651c:1257:: with SMTP id h23mr5287461ljh.49.1631298827201; Fri, 10 Sep 2021 11:33:47 -0700 (PDT) Received: from HiMini.lan (38-14-191-90.dyn.estpak.ee. [90.191.14.38]) by smtp.gmail.com with ESMTPSA id v124sm628316lfa.205.2021.09.10.11.33.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Sep 2021 11:33:46 -0700 (PDT) From: Serge Logvinov X-Google-Original-From: Serge Logvinov To: pve-devel@lists.proxmox.com Cc: Serge Logvinov Date: Fri, 10 Sep 2021 21:33:42 +0300 Message-Id: <20210910183343.69805-1-serge.logvinov@sinextra.dev> X-Mailer: git-send-email 2.24.3 (Apple Git-128) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 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 FREEMAIL_FROM 0.001 Sender email is commonly abused enduser mail provider RCVD_IN_DNSWL_NONE -0.0001 Sender listed at https://www.dnswl.org/, no trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [readthedocs.io, cloudinit.pm] X-Mailman-Approved-At: Mon, 13 Sep 2021 09:51:21 +0200 Subject: [pve-devel] [PATCH container 0/1] Set hostname to meta-data (nocloud method) X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Sep 2021 18:34:25 -0000 *** BLURB HERE *** Serge Logvinov (1): feat: set hostname to meta Add hostname property in meta-data (nocloud method). Now only user-data has hostname of VM. If you redifine user-data, you lost the hostname. Example meta-data here https://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html#datasource-nocloud --- instance-id: iid-abcdefg network-interfaces: | iface eth0 inet static address 192.168.1.10 network 192.168.1.0 netmask 255.255.255.0 broadcast 192.168.1.255 gateway 192.168.1.254 hostname: myhost --- PVE/QemuServer/Cloudinit.pm | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) -- 2.24.3 (Apple Git-128)