On 07/17/2017 04:17 PM, c.monty@xxxxxx wrote: > Hello! > > I want to SSH from host to specific guest using hostname, e.g. > ssh <user>@<guest> > or > ssh test@vm02-fai > > ssh to guest using IP works w/o issues. > > I found Wiki article for "NSS module" (http://wiki.libvirt.org/page/NSS_module), Also, until 3.2.0 it was mandatory to restart the virtual network after configuring the libvirt_guest module (I've updated the wiki accordingly). > but there are no results for the following commands: > ld4004:/home # virsh net-dhcp-leases default > Expiry Time MAC address Protocol IP address Hostname Client ID or DUID > ------------------------------------------------------------------------------------------------------------------- This is the problem. Libvirt is not the one who's assigning IP addresses and thus the NSS module doesn't work. > > ld4004:/home # virsh domifaddr --source lease vm02-fai > Name MAC address Protocol Address > ------------------------------------------------------------------------------- > > ld4004:/home # virsh list > Id Name State > ---------------------------------------------------- > 1 vm02-fai running > > > dnsmasq is running: > ld4004:/home # netstat -nulpd | grep dnsmasq > udp 0 0 192.168.33.1:53 0.0.0.0:* 10318/dnsmasq > udp 0 0 192.168.100.1:53 0.0.0.0:* 20145/dnsmasq > udp 0 0 0.0.0.0:67 0.0.0.0:* 20145/dnsmasq > > > How can I fix this issue? By having libvirt network assign IP addresses. Generally, <interface type='network'/> is what you should look for. Michal _______________________________________________ libvirt-users mailing list libvirt-users@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvirt-users