VMs und Container in Proxmox haben kein Internet

Harvester500

Cadet 3rd Year
Registriert
März 2021
Beiträge
36
Hallo,
Ich habe folgendes Problem:
Ich kann in meinen Virtuellen Maschinen keine apt-get Befehle ausführen. Es kommt beispielsweise folgende Fehlermeldung:
Fehlschlag beim Holen von http://deb.debian.org/debian/dists/bullseye/InRelease »deb.debian.org« konnte nicht aufgelöst werden.

wget Befehle funktionieren auch nicht. Woran kann das liegen. Habe in einem Container Nextcloud. Die Cloud ist auch von außen erreichbar. Es funktionieren nur apt-get update und wget Befehle nicht.
 
wahrscheinlich kein nameserver in der vm konfiguriert. cat /etc/resolv.conf bzw. cat /run/systemd/resolve/resolv.conf sollte dir was anzeigen.
 
  • Gefällt mir
Reaktionen: Malaclypse17
Das stand da drin:
# This file is managed by man:systemd-resolved(8). Do not edit.
#
# This is a dynamic resolv.conf file for connecting local clients directly to
# all known uplink DNS servers. This file lists all configured search domains.
#
# Third party programs should typically not access this file directly, but only
# through the symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a
# different way, replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.

# No DNS servers known.
search .

Was muss ich da wo eintragen, dass es funktioniert?
 
Zurück
Oben