My host is Silverblue. With libvirtd and virt-manager, I create guests with default network settings.
Let’s say, one of the guest is a Fedora Workstation, and hostname is set by:
sudo hostnamectl set-hostname myguest
sudo systemctl enable sshd --now
At the host terminal, I tried to do
Just got an error:
ssh: Could not resolve hostname myguest: Name or service not known
What I need to do to have guest hostnames resolved at the host ?
After doing that, from host to guest hostname resolution is working.
Now, how about between the two guests?
like, inside guest-a:
ping guest-b or
I tested single-label hostnames and it works with OpenWrt guests.
Fedora guests require the following configuration:
sudo mkdir -p /etc/systemd/resolved.conf.d
sudo tee /etc/systemd/resolved.conf.d/00-custom.conf << EOF
sudo systemctl restart systemd-resolved.service
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.