[SOLVED] avahi advertises the wrong hostname
I have been setting up 4 qemu virtual machines to set up an aur package for testing with different inits. These are based on the isos
artix-lxde-{openrc,s6,runit,dinit}-20230814-x86_64.iso and have hostnames artix-{openrc,s6,runit,dinit}
I have had no real troubles with virt-manager, but for some reason the s6 vm has difficulty in advertising its hostname.
On this machine instead of the expected artix-s6 I see that the avahi ssh server browser shows the advertised name as artixlinux.
Where is this coming from. I tried searching all the files under /etc using
but nothing seems to make the advertised hostname that value.
# find /etc -type f | xargs grep -l artixlinux
/etc/issue
/etc/debuginfod/artixlinux.urls
/etc/xdg/kcm-about-distrorc
/etc/pacman.d/mirrorlist
/etc/pacman.d/gnupg/pubring.gpg~
/etc/pacman.d/gnupg/pubring.gpg
/etc/skel/.config/falkon/profiles/default/settings.ini
/etc/skel/.config/falkon/profiles/default/browsedata.db
/etc/skel/.config/falkon/profiles/default/session.dat
/etc/skel/.config/xfce4/panel/whiskermenu-1.rc
/etc/skel/.local/share/epiphany/session_state.xml
Strangely sometimes I see the correct hostname in the avahi browser. It seems to go wrong most often when I reboot the vm.
Any ideas welcome.