How to get apt
to access the internet on fresh UTM + Debian on M1 ?
#2435
Unanswered
HenkPoley
asked this question in
UTM Help (macOS)
Replies: 2 comments 4 replies
-
To fix this on the 'Debian 10.4 (XFCE) ARM64' from the UTM Gallery: Note that On the guest:
This will bypass the DNS resolver in UTM's slirp VLAN, and thus bypass your modem and your provider's DNS servers. |
Beta Was this translation helpful? Give feedback.
1 reply
-
To make it work on an Ubuntu Server (ARM64) guest. Note that Edit /etc/netplan/00-installer-config.yaml to read: network:
version: 2
ethernets:
enp0s4:
dhcp4: true
nameservers:
addresses: [1.1.1.1, 8.8.4.4]
This will bypass the DNS resolver in UTM's slirp VLAN, and thus bypass your modem and your provider's DNS servers. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Fairly straightforward question, recipe:
sudo apt update
, enter the 'debian' password againHow do you get
apt
to access the internet ?Or is this just not supposed to work at this point ? (I mean, that's also fine, just would be nice to know.)
There is supposed to be some kind of answer in here: #2353 (comment) . But I can't make much sense of it, or at least it doesn't work as handwavingly described. And I'm not sure what I have to do with "slirp" on the guest or the host.
ip a
output on the guest:rtl8139 config (which is enabled, yes):
Notice the nonsense 5 digit "IPv4" (+1?) addresses for DHCP Start and DNS Server.
Installed Wireshark:
brew install wireshark
% sudo /opt/homebrew/Cellar/wireshark/3.4.4/bin/tshark | rg example
getent hosts example.com
Output:
These requests trickle out very slowly. It takes seconds for the first request to come out after starting
getent
. And then a few seconds for every next step.I don't see any 'query response' to the DNS requests coming from UTM.
Ah.. I've got it to work, by setting the DNS on the host to 1.1.1.1 and 8.8.4.4.
But this is not a configuration I would like to run in. As this means my laptop won't know many of the local devices. And these third party DNS servers tend to do sneaky things like insert advertisement for unknown domains. Or they will point me to remote CDN. I surely trust XS4ALL's DNS servers more.
Maybe the IPv6 address for the DNS server (
fd00::2e3a:fdff:feec:7839
) gets read wrong? Like it reads 4 bytes of 'borrowed' data in front0:0:
and then drops the:feec:7839
.Beta Was this translation helpful? Give feedback.
All reactions