• This forum has a zero tolerance policy regarding spam. If you register here to publish advertising, your user account will be deleted without further questions.

Hetzner Proxmox VE KVM/Routed Netzwerkkonfiguration

chiefsucker

New Member
[GELÖST] Hetzner Proxmox VE KVM/Routed Netzwerkkonfiguration

Ich habe einen dedizierten Server und drei Zusatz-IPs, die in einem anderen Subnetz liegen, bestellt. Eigentlich soll Proxmox mit drei VMs darauf laufen.

Nach dem minutiösen Durchführen aller Schritte aus dem Hetzner Wiki und ca. 20 unterschiedlichen Konfigurationsversuchen, bin ich so langsam am verzweifeln. Proxmox läuft, ein Gast läuft auch. Der Host kann nach außen kommunizieren, jedoch ist keine Kommunikation zwischen Host und Gast in beide Richtungen möglich. Der Gast kommt auch nicht nach außen.

Die /etc/sysctl.d/99-hetzner.conf auf meinem Host sieht folgendermaßen aus:
Code:
### Hetzner Online AG installimage
# sysctl config
net.ipv4.ip_forward=1
net.ipv4.conf.default.forwarding=1
net.ipv4.conf.all.forwarding=1
net.ipv4.conf.default.send_redirects=1
kernel.sysrq=1
net.ipv4.conf.all.rp_filter=1
net.ipv4.icmp_echo_ignore_broadcasts=1
net.ipv4.conf.all.proxy_arp=0
net.ipv4.conf.default.proxy_arp=0
# ipv6 settings (no autoconfiguration)
net.ipv6.conf.default.autoconf=0
net.ipv6.conf.default.accept_dad=0
net.ipv6.conf.default.accept_ra=0
net.ipv6.conf.default.accept_ra_defrtr=0
net.ipv6.conf.default.accept_ra_rtr_pref=0
net.ipv6.conf.default.accept_ra_pinfo=0
net.ipv6.conf.default.accept_source_route=0
net.ipv6.conf.default.accept_redirects=1
net.ipv6.conf.default.forwarding=1
net.ipv6.conf.all.autoconf=0
net.ipv6.conf.all.accept_dad=0
net.ipv6.conf.all.accept_ra=0
net.ipv6.conf.all.accept_ra_defrtr=0
net.ipv6.conf.all.accept_ra_rtr_pref=0
net.ipv6.conf.all.accept_ra_pinfo=0
net.ipv6.conf.all.accept_source_route=0
net.ipv6.conf.all.accept_redirects=0
net.ipv6.conf.all.forwarding=1
/etc/network/interfaces:
Code:
### Hetzner Online AG - installimage
# Loopback device:
auto lo
iface lo inet loopback

# device: eth0
auto  eth0
iface eth0 inet static
  address   78.xx.xx.75
  netmask   255.255.255.224
  pointtopoint 78.xx.xx.65
  gateway   78.xx.xx.65

iface eth0 inet6 static
  address 2a01:xx:xx:xx::2
  netmask 128
  gateway fe80::1
  up sysctl -p

auto vmbr0
iface vmbr0 inet static
  address 78.xx.xx.75
  netmask 255.255.255.224
  bridge_ports none
  bridge_stp off
  bridge_fd 0
  up ip route add 188.xx.xx.77/32 dev vmbr0
  up ip route add 188.xx.xx.78/32 dev vmbr0
  up ip route add 188.xx.xx.79/32 dev vmbr0

iface vmbr0 inet6 static
  address 2a01:xx:xx:xx::2
  netmask 64
Nun zum Gast. Die /etc/sysctl.d/99-hetzner.conf auf meinem Host sieht folgendermaßen aus:
Code:
### Hetzner Online AG installimage
# sysctl config
net.ipv4.ip_forward=1
net.ipv4.conf.default.forwarding=1
net.ipv4.conf.all.forwarding=1
net.ipv4.conf.default.send_redirects=1
kernel.sysrq=1

net.ipv6.conf.default.accept_redirects=1
net.ipv6.conf.default.forwarding=1
net.ipv6.conf.all.forwarding=1

Das Netzwerk sieht so aus:
Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
  address 188.xx.xx.79
  netmask 255.255.255.255
  pointtopoint 78.xx.xx.75
  gateway 78.xx.xx.75

iface eth0 inet6 static
  address 2a01:xx:xx:xx::5
  netmask 64
  gateway 2a01:xx:xx:xx::2
In der Proxmox GUI habe ich bei der Netzwerkkarte des Gasts Bridged mode (vmbr0) und VirtIO eingestellt. Die MAC-Adresse wurde automatisch generiert. Im Robot habe ich keine MAC-Adressen beantragt.

Wieso klappt die Netzwerkverbindung nicht? Sieht jemand den Fehler?
 
Last edited by a moderator:
Ouch, vielen Dank! :)

Die Konfiguration läuft so allerdings leider immer noch nicht. Ich habe jetzt noch die Netzmaske auf 255.255.255.255 geändert und bereits vmbr1 für später angelegt. Beim Gast habe ich den pointopoint Fehler korrigiert und broadcast hinzugefügt.

Die Konfigurationen sehen jetzt so aus:
Code:
### Hetzner Online AG - installimage
# Loopback device:
auto lo
iface lo inet loopback

# device: eth0
auto  eth0
iface eth0 inet static
  address   78.xx.xx.75
  netmask   255.255.255.255
  pointopoint 78.xx.xx.65
  gateway   78.xx.xx.65

iface eth0 inet6 static
  address 2a01:xx:xx:xx::2
  netmask 128
  gateway fe80::1
  up sysctl -p

auto vmbr0
iface vmbr0 inet static
  address 78.xx.xx.75
  netmask 255.255.255.255
  bridge_ports none
  bridge_stp off
  bridge_fd 0
  up ip route add 188.xx.xx.77/32 dev vmbr0
  up ip route add 188.xx.xx.78/32 dev vmbr0
  up ip route add 188.xx.xx.79/32 dev vmbr0

iface vmbr0 inet6 static
  address 2a01:xx:xx:xx::2
  netmask 64

auto vmbr1
iface vmbr1 inet static
  address 192.168.2.2
  netmask 255.255.255.0
  bridge_ports none
  bridge_stp off
  bridge_fd 0

Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
  address 188.xx.xx.79
  broadcast 78.xx.xx.95
  netmask 255.255.255.255
  pointopoint 78.xx.xx.75
  gateway 78.xx.xx.75

iface eth0 inet6 static
  address 2a01:xx:xx:xx::5
  netmask 64
  gateway 2a01:xx:xx:xx::2

Ich bin auch nicht sicher, wie ich die Einstellungen in der Proxmox GUI vornehmen muss. Jedenfalls haben weder Bridged mode noch NAT einen Erfolg gebracht.
 
Ich habe jetzt in Proxmox die Netzwerkkarte auf Bridged mode gesetzt, das Modell auf VMWare vmxnet3 geändert, und die MAC-Adresse gelöscht, so dass sie ein erneutes Mal automatisch generiert wird (im Robot habe ich keine MAC-Adressen eingerichtet, da diese für KVM/Routed nicht gebraucht werden).

Nach einem Neustart des Gasts funktioniert jetzt alles wunderbar. Der Vollständigkeit halber: es läuft Debian GNU/Linux 7.5 (wheezy) als Gast.

Danke noch einmal für den Hinweis auf das t!
 
Back
Top