On 1/17/22 11:27, Tim via users wrote: > On Mon, 2022-01-17 at 08:42 +0100, Peter Boy wrote: >> The default configuration rather follows the opposite principle. The >> hostname should be well defined and independent of changing IP >> addresses. > I sort-of go along with that. If you've set a hostname, there's sense > in it not getting changed. On the other hand, if you use a DHCP server > to centrally manage the allocation of addresses, you might also want it > (or your DNS server) to control hostnames. I do. Some devices on my > network obey naming instructions from the DHCP &/or DNS servers, others > ignore it. > I think it might make more sense to correctly detect hostname during installation. If you define hostname on installation from network, it should be kept. I expect it should keep the same hostname during reboots. I think only diskless terminals may want always obtaining hostname on every boot. Anything storing state on local disk should want to keep its name. I think more tight integration with libvirt names would be useful. I admit I know little of that. I usually define name AFTER installation for my VMs, which would not work with what I propose. I would like easy way to set hostname from libvirt during installation. I don't need always fixed IP, but I want fixed DNS name for given VM. I expect that is common requirement. dnsmasq from libvirt would provide hostname to machine in case it has static lease for given DUID/hwaddr. Is there tool to create static lease from machine name on VM creation? For example libvirt can detect name of distribution from ISO image. It would be nice if it could propagate it forward. I am afraid I did not help much. Regards, Petr -- Petr Menšík Software Engineer Red Hat, http://www.redhat.com/ email: pemensik@xxxxxxxxxx PGP: DFCF908DB7C87E8E529925BC4931CA5B6C9FC5CB _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure