[SOLVED] VM with Ubuntu 22.04.3 can't update

dussyaka

New Member
Aug 21, 2023
4
1
3
Hi.

I've got my proxmox server with 2 VM: ubuntu 20 and ubuntu 22. They are all in the same NAT vmbr1. Ubuntu 20 have network connection and i can update system sudo apt update. But ubuntu 22 can't connect to ubuntu servers and download data. What could be the problem?

P.S. I can connect to ubuntu 22 server via ssh in NAT and via ssh from my PC in another city!

Info.

Debian, PROXMOX
cat /etc/network/interfaces

Bash:
auto lo
iface lo inet loopback

auto enp5s0
iface enp5s0 inet manual
#Ethernet

auto vmbr0
iface vmbr0 inet static
        address my_ip_address/26
        gateway my_gateway
        bridge-ports enp5s0
        bridge-stp off
        bridge-fd 0
#External Bridge

auto vmbr1
iface vmbr1 inet static
        address 192.168.1.1/24
        bridge-ports none
        bridge-stp off
        bridge-fd 0
#NAT

        post-up   echo 1 > /proc/sys/net/ipv4/ip_forward
        post-up   iptables -t nat -A POSTROUTING -s '192.168.1.0/24' -o vmbr0 -j MASQUERADE
        post-down iptables -t nat -D POSTROUTING -s '192.168.1.0/24' -o vmbr0 -j MASQUERADE

Ubuntu 20
sudo cat /etc/netplan/00-installer-config.yaml

Bash:
network:
  ethernets:
    ens18:
      addresses:
      - 192.168.1.2/24
      gateway4: 192.168.1.1
      nameservers:
        addresses:
        - 8.8.8.8
      optional: true
  version: 2
  renderer: networkd

Ubuntu 22
sudo cat /etc/netplan/00-default.yaml

Bash:
network:
  ethernets:
    ens18:
      addresses:
      - 192.168.1.33/24
      nameservers:
        addresses:
        - 8.8.8.8
        search:
        - 8.8.8.8
      routes:
      - to: default
        via: 192.168.1.1
      optional: true #
  version: 2
  renderer: networkd #
 

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!