[libvirt-users] SSH from host to domain using hostname

Michal Privoznik mprivozn at redhat.com
Wed Jul 19 14:35:56 UTC 2017


On 07/19/2017 04:27 PM, c.monty at web.de wrote:
> <snip/>
>
> Guest OS is Debian 9 with this network configuration:
> thomas at vm02-fai:~$ cat /etc/network/interfaces
> # This file describes the network interfaces available on your system
> # and how to activate them. For more information, see interfaces(5).
> 
> source /etc/network/interfaces.d/*
> 
> # The loopback network interface
> auto lo
> iface lo inet loopback
> 
> # The primary network interface
> allow-hotplug ens3
> iface ens3 inet dhcp
> 
> # The secondary network interface
> allow-hotplug ens8
> iface ens8 inet static
>   address 192.168.33.250/25
> 

> So, to answer your question: yes, 1st interface is doing DHCP.

Well, this doesn't prove it. ens3 might actually be the one that's
connected to the 'internal' network. What's the output of 'ip a a s' ran
from within the guest? What's the output of 'virsh domifaddr --source
agent $domain'?

BTW: if you sniff on virbr0 while the domain is starting up do you see
any DHCP traffic?

Michal




More information about the libvirt-users mailing list