Installing NetworkManager is failing

Hi, I tried to install NetworkManager on my Fedora 34 to use the WiFi adapter on my VM.
But sadly it does not work. This was my command:

sudo dnf install NetworkManager

And this is the answer:

Fedora 34 openh264 (From Cisco) - x86_64        0.0  B/s |   0  B     00:00    
Errors during downloading metadata for repository 'fedora-cisco-openh264':
  - Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-34&arch=x86_64 [Could not resolve host: mirrors.fedoraproject.org]
Error: Failed to download metadata for repo 'fedora-cisco-openh264': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-34&arch=x86_64 [Could not resolve host: mirrors.fedoraproject.org]
Fedora Modular 34 - x86_64                      0.0  B/s |   0  B     00:00    
Errors during downloading metadata for repository 'fedora-modular':
  - Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=fedora-modular-34&arch=x86_64 [Could not resolve host: mirrors.fedoraproject.org]
Error: Failed to download metadata for repo 'fedora-modular': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=fedora-modular-34&arch=x86_64 [Could not resolve host: mirrors.fedoraproject.org]

(The HTML is not displayed correctly for me right now but I cannot insert it as a normal text. If you can’t read it properly, I can send it via message, thank you really much!)

Which Desktop Environment you are using?

By default, Fedora-34 Workstation already have NetworkManager installed.

Can you check the output of
sudo systemctl status NetworkManager?

2 Likes

That means your VM is not online or has a DNS issue.

I think you should explain us why you want your VM have access to the Wifi Card. That is very unusual as explained in your other topic, see Cannot use WiFi on my QEMU VM?

Hi, I am not sure, I just want to have WiFi access in my VM. I thought I have to use a NAT connection and therefore I need a WiFi adapter.

Hi, I am using Gnome.
Here we go:

Sep 06 09:28:51 localhost-live NetworkManager[1151]: <info>  [1630934931.5537]>
Sep 06 09:28:51 localhost-live NetworkManager[1151]: <info>  [1630934931.5544]>
Sep 06 09:29:36 localhost-live NetworkManager[1151]: <warn>  [1630934976.4478]>
Sep 06 09:29:36 localhost-live NetworkManager[1151]: <info>  [1630934976.4488]>
Sep 06 09:29:36 localhost-live NetworkManager[1151]: <info>  [1630934976.4492]>
Sep 06 09:29:36 localhost-live NetworkManager[1151]: <info>  [1630934976.4499]>
Sep 06 09:29:36 localhost-live NetworkManager[1151]: <warn>  [1630934976.4514]>
Sep 06 09:29:36 localhost-live NetworkManager[1151]: <info>  [1630934976.4520]>
Sep 06 09:29:36 localhost-live NetworkManager[1151]: <info>  [1630934976.4843]>
Sep 06 09:29:36 localhost-live NetworkManager[1151]: <info>  [1630934976.4845]>
lines 1-21/21 (END)

It seems to be running apparently. Then I was wrong about this. But my main problem is that I cannot access WiFi on my VM. :frowning:
Apparently I need a WiFi adapter which I have activated in the VM settings, but it still shows me that I do not have one. Can you help me on this?

again, you should tell us why this is a good idea.

1 Like

I want to use my VM for internet activities and therefore I need to use the internet. I’m unsure why this is unusual.

Your host provides network access and internet to your guests (through a virtualized, wired network adapter), not your router.

1 Like

A post was split to a new topic: Network connection in VM failing

I have split your last post into a new topic. This allows for a fresh start to solve your network issue.

With most installations the system is configured with the host using the wifi to access the internet.
The guest VM has a virtual adapter that appears as wired to connect directly to the host. The host then uses NAT to forward connections from the VM via the router to the internet.

The VM does not need direct access to the wifi adapter since the host does that in the background.

It is not unusual for a VM to connect to the internet. It IS unusual for the VM to directly use the wifi adapter since that makes it not usable to the host.

Got it. So there should actually be a wired connection that I can use for the guest, right? But this is not the case unfortunately.

I got that, but the wired connection doesn’t work for the guest because no possible connection is shown.

(As I mentioned before, I’m not sure if this plays a role here but I’ll mention it again:
I noticed that when I boot the VM, it says “Failed to start network manager wait online”.
Perhaps it has something to do with this.)

Open up vmm and see if you have something similar to this


To me it sounds as if you did not get network configured when you installed the VM.

As I said, it looks exactly like this for me, just without the IP address. Instead of an address, it says “Unknown”. The rest is identical.

Please post the output of “ip address show” from both the host and the VM. Also post the output of “ip route” from both as well. Make sure we can identify which is from the host which is from the VM. That will tell us what is actually configured and may give us a starting point.