My VMs don't seem able to download mirrors

Hello,

I think I noticed that before but earlier I tried updating my Arch VM in Gnome boxes once I got it (manually) installed but NONE of the mirrors downloaded.

The list is quite significant even if I deactivated some entries, I read somewhere that it may be the firewall but if so, it doesn’t really indicate me anything.

Has someone had this issue before ? How can I solve this ?

I quite enjoy the concept of VMs but I won’t go too far if they won’t even system update :confused: happened to one of my prior Fedora VMs too but I thought I was the one not inputting right. Seems it’s broader than just typos… And I think for the Fedora trial I was on virt-manager, so I don’t think it’s a Boxes only issue.

And it’s not an permission issue inside the VM iso. There, I run those commands either directly with the root user or with the normal user with sudo rights, doesn’t change anything. It just doesn’t download, I got no input telling me the user didn’t have command permission.

NB : I took the default iso of Arch and ran it in Bios mode. Is it changing anything in the way the VM handles stuff ? I tried like this because anytime I hit UEFI, the VM was just stuck in the secure boot screen without enabling me to go further. It went okay for the majority of the install until the system update.. it’s a pity because I definitely wanted to try.

@anotheruser @gnwiii @glb any ideas ? Sorry to call all of you again lol :laughing: I hoped having answers but no one did send one, so I’m invoking you all

It sounds like a networking or DNS resolution issue. But I don’t use GNOME boxes, so I’m not familiar enough with it to have any idea exactly what might have gone wrong.

I haven’t attempted this, but if I wanted to run another distro in a VM, I’d probably give systemd-vmspawn a try.

Edit: You might need to add --network-user-mode to get networking to work with systemd-vmspawn in unprivileged mode.[1] You will probably want to add --qemu-gui as well.


  1. ↩︎

1 Like

Do you have access to external web servers from the Arch VM? In the VM Manager is the “Virtual Network Interface” using NAT?

Arch is notorious for needing careful manual setup, but also (out of necessity?) has excellent documentation.

Are you using Arch’s firewalld? Fedora uses firewald, so you can also refer to Fedora documentation. Note that Fedora uses the FedoraWorkstation zone by default:

$ firewall-cmd --get-default-zone
FedoraWorkstation

Some zones block access to external sites.

I don’t know exactly what I can access or not, I could download few stuff when I was into the install mode of the iso, but then when I log in with the usernames I created in the VM, and even in root, there are no mirrors available so nothing downloads. I’m connected with my ethernet cable which is recognised by the iso (ip-link shows the port and the IP) but strangely, nothing works. I don’t really understand what’s going on.
Maybe virt manager would work best ? I’ve seen in the forum that Boxes seems to encounter issues.
I couldn’t even install a desktop environment in my arch VM because of that mirror issue lol :laughing: that’s inconvenient

Edit after a little bit : same issue on virt-manager. Idk what’s going on, probably it’s linked to the command you sent, I’ll look it up later. It seems weird because I didn’t install it before.

OMG it seems that I found the solution. When I used ip link in the install ISO all was okay and detected my ethernet as UP, but when I logged into the installed account, it was DOWN.

So I had to reinstall and restart network manager service.
Those two pages helped me in the process, especially finding the good spelling of things (aka caps mattered in this case) :

https://superuser.com/questions/1423959/ubuntu-server-fail-to-restart-networking-service-unit-network-service-not-foun

I’m so happy it seems to work, it went UP again after that ! At least I could launch pacman -Syu without getting the mirrors issues of earlier.

1 Like

Glad your VM is working. Linux (and Unix) insists on correct use of capitalization. At work, the vast majority of new users had only used Windows, so this was something we emphasized when introducing the Linux command-line.

1 Like