Re: Guests: Unable to get IP address

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

 



On 5/21/24 18:02, Arun Mani J wrote:
> 
> Sorry I thought I clicked Reply instead of Reply All.
> 
> So I restarted my laptop, ran virsh net-destroy
> default && virsh net-start default. Then created a new VM out of Debian 12 KDE Live ISO (to avoid any trailing configurations).
> 
> Still the issue persists. nmcli in the guest says enp1s0: disconnected.

This looks weird. I'm not familiar with networkmanager, but I suspect
this is not telling the state of the link, is it? Because the link
should be up no matter the host side configuration.

> 
> But ps axf | grep dnsmasq gives this:
> 4341 pts/0    S+     0:00  |       \_ grep --color=auto dnsmasq
>    3995 ?        S      0:00 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper
>    3996 ?        S      0:00  \_ /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper
> 
> What am I missing :(

One thing that comes to my mind is - ip forwarding. Libvirt sets up NAT
and should set enable ip forwarding too, but maybe that failed?

Inside the host - can you share the output of:

cat /proc/sys/net/ipv4/ip_forward
brctl show virbr0
for i in nat filter mangle; do iptables -t $i -L -v ; done

Michal



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

  Powered by Linux