Newbie with Proxmox on Hetzner server need help

Malozorus

New Member
Jul 25, 2023
3
0
1
Hi i've recently inherited form a Promox environnement to managed, but i'm struggling to get a new VM connected to the "world". I've followed multiple documentatio nand understood that the node is in "routed" mode for the vmbr1, thus i used "point-to-point" inside the newley created VM (Z.Z.Z.Z) i tried reboot the node, reboot the vm, check the dns wich work for the other VM that are working actualy on the node, check if they were the "same" config and YES it's the same type of configuration... what i'm i missing ? Please help thx.

"
auto lo
iface lo inet loopback

iface enp7s0 inet manual

auto vmbr0
iface vmbr0 inet static
address 6.6.6.6/26
gateway 6.6.6.5
bridge-ports enp7s0
bridge-stp off
bridge-fd 0

auto vmbr1
iface vmbr1 inet static
address 1.1.1.1/32
bridge-ports none
bridge-stp off
bridge-fd 0
post-up ip route add X.X.X.X/32 via 1.1.1.1
pre-down ip route del X.X.X.X/32 via 1.1.1.1
post-up ip route add Y.Y.Y.Y/32 via 1.1.1.1
pre-down ip route del Y.Y.Y.Y/32 via 1.1.1.1
post up ip route add Z.Z.Z.Z/32 via 1.1.1.1
pre-down ip route del Z.Z.Z.Z/32 via 1.1.1.1

"
and the guest VM config is :

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto ens18
iface ens18 inet static
address Z.Z.Z.Z/32
gateway 1.1.1.1
point-to-point 1.1.1.1
dns-nameservers 8.8.8.8
dns-search my.private.dns.com
 
Yes ! here :
root@hetzner-allemagne-1:~# qm config 107 boot: order=scsi0;net0 cores: 2 memory: 2048 meta: creation-qemu=7.2.0,ctime=1692353492 name: dyn-db-ia net0: virtio=9E:FD:92:CF:03:CA,bridge=vmbr1,firewall=1 numa: 0 ostype: l26 scsi0: data-ia-storage:vm-107-disk-0,iothread=1,size=32G scsihw: virtio-scsi-single smbios1: uuid=f075c741-073b-4ca5-9856-2c6f53ddbe72 sockets: 1 vmgenid: 35e4c23a-28f8-44aa-965d-bde3815184b3

By the way i managed to get internet from inside the VM, realized after reading the doc that it is not as simple than just editing /etc/network/interface to get some modification done. Thus i added an ip route from the root node with : ip route add X.X.X.X/32 via 1.1.1.1 this get the VM able to reach internet, but still unreachable from outside...
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!