I remember that this is a Manjaro forum, but I have NixOS on QEMU/KVM, and the ping above is executed on Manjaro host, so the question should be legitimate.
My problem is my ignorance. I can’t understand what they’re talking about.
I asked Phind for help, specifically for Manjaro. Following the advice I even didn’t break anything . No gain either, though. /etc/systemd/network/20-wired.network:
[Network]
DNS=8.8.8.8
DNS=8.8.4.4
sudo systemctl restart systemd-networkd
It was a shot in the dark, actually. I don’t know where to start with the problem. Please, help!
Yes, I can’t use a channel in my NixOS in VM, but the ping won’t pass on my Manjaro host too, as I noted specifically. So it’s a legitimate problem. Here there’s even a recipe:
I generally add a non-ISP DNS server to my routers to avoid this scenario.
I can’t understand a word from it . Please, be patient with me.
On my Manjaro host I can see nixos.org in a browser.
On my Manjaro host I ping nixos.orgunsuccessfully.
I suppose there’s something wrong, NixOS or no NixOS. Is it correct?
It means a tiny bit: ping is the wrong instrument.
My problem in VM:
sudo nixos-rebuild switch --upgrade
warning: unable to download 'https://nixos.org/channels/nixos-21.11': Couldn't resolve host name (6); retrying in 326 ms
warning: unable to download 'https://nixos.org/channels/nixos-21.11': Couldn't resolve host name (6); retrying in 678 ms
warning: unable to download 'https://nixos.org/channels/nixos-21.11': Couldn't resolve host name (6); retrying in 1107 ms
warning: unable to download 'https://nixos.org/channels/nixos-21.11': Couldn't resolve host name (6); retrying in 2664 ms
error: unable to download 'https://nixos.org/channels/nixos-21.11': Couldn't resolve host name (6)
If the URL is correct then it looks like it could be a problem with your VM’s internet or DNS.
Can you ping www.google.com in the VM? It doesn’t have to be google, just a site you can ping successfully in the host. If that works then you’re probably better off asking in the nixos forum (I assume they have one).
As I already said, the trouble is of generic nature, or so I gather. They even give recipes like “I generally add a non-ISP DNS server to my routers to avoid this scenario”, which I simply don’t understand
Could you decipher this one to me? As I said, I’m shamefully ignorant in this field…