Fedora 34 - x86_64 Errors during downloading metadata for repository 'fedora'

Is your Fedora guest otherwise “online”?

Yes. The newly upgraded Fedora 34 (guest) from Fedora 32 (guest) can still connect to internet via the VirtualBox (Windows 7; host). I have used Firefox to check gmail and yahoo, and the connection was slightly slow.

You said the ping took long, can you ping from your host OS?

Yes, I can still ping google from my Windows 7 (host).

That host OS is outdated, maybe Virtualbox does not support it anymore, you should upgrade to Win10 (0$).

I run Fedora 30 (guest) using the same VirtualBox (Windows 7; host) at the same time. There is no problem for this Fedora 30 to get online.

I suppose/hope this is not due to Windows 7.

You can surf the web and lookup domains ( nslookup google.com )

The response of nslookup is negative:

[XXX@localhost ~]$ nslookup google.com
Server:		127.0.0.53
Address:	127.0.0.53#53

Non-authoritative answer:
Name:	google.com
Address: 172.217.31.78
;; connection timed out; no servers could be reached


[XXX@localhost ~]$

There is no problem for pinging google.

[XXX@localhost ~]$ ping google.com
PING google.com (216.58.203.78) 56(84) bytes of data.
64 bytes from kul09s03-in-f14.1e100.net (216.58.203.78): icmp_seq=1 ttl=111 time=10.6 ms
64 bytes from kul09s03-in-f14.1e100.net (216.58.203.78): icmp_seq=2 ttl=111 time=9.40 ms
...
...
64 bytes from kul09s03-in-f14.1e100.net (216.58.203.78): icmp_seq=12 ttl=111 time=7.62 ms
64 bytes from kul09s03-in-f14.1e100.net (216.58.203.78): icmp_seq=13 ttl=111 time=11.1 ms
^C
--- google.com ping statistics ---
13 packets transmitted, 13 received, 0% packet loss, time 12020ms
rtt min/avg/max/mdev = 7.618/8.951/11.058/1.193 ms
[XXX@localhost ~]$ 

For the below suggestions,

re DNS, look at: DNS resolution broken - #2 by vgaetera and Resolvectl connection timed out but google chrome working fine

I tried this command:
sudo nmcli connection show

There is no output message. Shall I proceed to

sudo nmcli connection modify id CON_NAME \
    ipv4.ignore-auto-dns yes \
    ipv6.ignore-auto-dns yes \
    ipv4.dns 8.8.8.8,8.8.4.4
sudo nmcli connection up id CON_NAME

If the suggestion is not successful, may I know how to restore to the previous configuration?

Your suggestions and help are very appreciated.