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!)
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.
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?
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.
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.)
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.