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.
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 :(
Thanks you
On Tuesday, May 21st, 2024 at 6:51 PM, Michal Prívozník <mprivozn(a)redhat.com>
wrote:
> Please keep the list on CC so that others can benefit from the
> conversation too.
>
> On 5/21/24 14:34, Arun Mani J wrote:
>
> > Thanks for the reply!
> >
> > I recreated the NAT network using the guide from
https://wiki.libvirt.org/Networking.html.
> >
> > The configuration now reads as:
> > <network>
> > <name>default</name>
> > <uuid>33376669-6292-44c9-b26b-9d2ee69826a7</uuid>
> > <forward mode="nat">
> > <nat>
> > <port start="1024" end="65535"/>
> > </nat>
> > </forward>
> > <bridge name="virbr0" stp="on" delay="0"/>
> > <mac address="52:54:00:78:76:0f"/>
> > <ip address="192.168.122.1" netmask="255.255.255.0">
> > <dhcp>
> > <range start="192.168.122.2" end="192.168.122.254"/>
> > </dhcp>
> > </ip>
> > </network>
> >
> > There is a dhcp section but still I'm not able to get my guest working.
> >
> > I have dnsmasq-base package installed in my host. However I'm not sure how
to see if that is running. Like I opened Systems Monitor and can't find any process
with that name.
> >
> > So may be that's the problem?
>
>
> Well, have you restarted the network? You need the 'virsh net-destroy
> default && virsh net-start default' combo to restart it. After that you
> should see dnsmasq process, e.g. via 'ps axf | grep dnsmasq'.
>
> Michal