Re: Set hostname of guest during installation time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/30/2020 1:20 PM, Andrea Bolognani wrote:
> On Mon, 2020-03-30 at 12:04 +0200, Michal Prívozník wrote:
>> On 27. 3. 2020 20:49, john doe wrote:
>>> If my understanding is correct, using 'try06' or 'debian' should do the
>>> same thing?
>>
>> Yes, that is the idea. However, these plugins were not introduced at the
>> same time. I think that especially Debian has delayed libvirt_guest
>> plugin. You can check if both plugins exist:
>>
>> ls /usr/lib64/libnss_libvirt*
>>
>> /usr/lib64/libnss_libvirt_guest.so.2
>> /usr/lib64/libnss_libvirt.so.2
>
> Note that paths are different in Debian-based distros, so the correct
> ones in this case are actually
>
>   /lib/x86_64-linux-gnu/libnss_libvirt.so.2
>   /lib/x86_64-linux-gnu/libnss_libvirt_guest.so.2
>

I have upgraded that Buster host to Bullseye, so I have now a 6... version.
I have also the above two modules.

I'm still not able to use 'libvirt_guest' though:

--- Guest output (try06):

root@try06:~# cat /etc/hostname
try06

--- Host output (host):

root@host:# grep hosts: /etc/ns*
hosts: libvirt_guest
root@host:# virsh net-dhcp-leases default
 Expiry Time           MAC address         Protocol   IP address
   Hostname   Client ID or DUID
---------------------------------------------------------------------------------------------------------
 2020-03-30 16:03:41   52:54:00:d4:e6:f0   ipv4       192.168.122.137/24
  -          -


root@host:# getent hosts try06; echo $?
2


What am I missing?


Thanks to both of you for  your help:
Andrea Bolognani <abologna@xxxxxxxxxx>
Michal Prívozník <mprivozn@xxxxxxxxxx>

--
John Doe






[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux