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

Michal Privoznik mprivozn at redhat.com
Tue Jul 18 14:45:27 UTC 2017


On 07/18/2017 04:31 PM, c.monty at web.de wrote:
> Hello!
> 
> I have upgraded all libvirt packages to version 3.5.0-655.1 and restarted host.

That wasn't necessary. It's not Windows ;-)

> 
> This is the current default network config:
> ld4004:~ # virsh net-dumpxml default
> <network connections='1'>
>   <name>default</name>
>   <uuid>f511d113-d7d1-4714-ad2b-be29ef8f7fc4</uuid>
>   <forward dev='br0' mode='nat'>
>     <nat>
>       <port start='1024' end='65535'/>
>     </nat>
>     <interface dev='br0'/>
>   </forward>
>   <bridge name='virbr0' stp='on' delay='0'/>
>   <mac address='52:54:00:f5:5f:ca'/>
>   <domain name='local.net' localOnly='yes'/>
>   <ip address='192.168.100.1' netmask='255.255.255.0'>
>     <dhcp>
>       <range start='192.168.100.10' end='192.168.100.254'/>
>     </dhcp>
>   </ip>
> </network>

This is looking good.

> 
> What do I need to configure in order to have NSS working?

What's the domain's <interface/> type? It should look something like this:

<interface type='network'>
  <source network='default'/>
  ...
</interface>

And with this you should be all set.

Michal




More information about the libvirt-users mailing list