How do I debug a network issue for an Ubuntu VM running in virt-manager?

Hi! I’m sorry for the newbie question, but I just imported an OVA Ubuntu image into virt-manager, and no network calls are working. As a final goal, I would like to be able to SSH into the VM.

wget calls fail, as does trying to access any webpage through Firefox. Running ifconfig, I get:

username@vmname:~/Desktop$ ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet  netmask
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 1164  bytes 83908 (83.9 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1164  bytes 83908 (83.9 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

which does not seem right?

I’m using the default Virtual network ‘default’: NAT under the Virtio device model, and the IP address is Unknown within the VM config.

Running ip addr yields:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp1s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 52:54:00:b0:cf:3b brd ff:ff:ff:ff:ff:ff

Confirm the virtual network is up and running and identify the VM name:
Running VMs with VPN on Fedora 38 with KVM - #6 by vgaetera

Also check the VM NIC settings and DHCP leases:

virsh dumpxml VM_NAME --xpath //interface
sudo virsh net-dhcp-leases default

Thank you so much for the suggestion! It was resolved, it was due to a misconfiguration of /etc/netplan/00-installer-config.yaml, where the item under ethernets should follow the listing in ifconfig -a.

Thank you again!