[SOLVED] Ubuntu Network

arciCZ

New Member
Apr 5, 2021
6
1
3
27
Hello, i have problem. I trying to use Ubuntu Cloud Iso Image as Template by this tutorial: https://pve.proxmox.com/wiki/Cloud-Init_Support
But when i setup it and clone it, then i have problem. Its not have internet Access. But when i try CT or Debian Cloud then it works normally.
Can someone help me with that?.

Host /etc/network/interfaces
Code:
### Hetzner Online GmbH installimage

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

auto eno1
iface eno1 inet static
        address  aaa.bbb.cc.15 #Address of Main IP
        netmask  255.255.255.192
        gateway  aaa.bbb.cc.1 #Address of Main IP Gateway
        post-up echo 1 > /proc/sys/net/ipv4/ip_forward
        post-up echo 1 > /proc/sys/net/ipv4/conf/eno1/proxy_arp

auto vmbr0
iface vmbr0 inet static
        address ddd.e.fff.0 # Address of Subnet /28
        netmask 255.255.255.192
        bridge_ports none
        bridge_stp off
        bridge_fd 0

Network settings at Cloud-Init in Proxmox
Snímek obrazovky 2021-04-12 220858.png

Settings at VM Cloud Debian where networks working fine
Snímek obrazovky 2021-04-12 220956.png
 
i think ubuntu uses systemd as network configuration, not ifupdown...

Means, check in your container /etc/systemd/network/....

I'm not sure if proxmox can configure the network of the newer ubuntu containers.
Probably not, but i may not be right.

Cheers
 
Hello, in container (Ubuntu, where not working internet) is "/etc/systemd/network/" empty.
Im using exactly same image which is writed for download at: https://pve.proxmox.com/wiki/Cloud-Init_Support (if not updated at source).

In container in netplan is 50-cloud-init.yaml and its content is:
Code:
# This file is generated from information provided by the datasource.  Changes
# to it will not persist across an instance reboot.  To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
    version: 2
    ethernets:
        eth0:
            addresses:
            - xxx.y.zzz.4/28 #IP address setted via Cloud-Init in Proxmox
            gateway4: aaa.bbb.cc.15 #Setted Gateway via Cloud-Init in Proxmox (Gateway from Subnet => Main IP of Host)
            match:
                macaddress: e6:72:d4:fe:71:d2
            nameservers:
                addresses:
                - 213.133.98.98
                - 213.133.100.100
                - 213.133.99.99
                search: []
            set-name: eth0
 
Last edited:
Thanks for try. I was trying to search a lot already.. But without success. That i was already readed. I wait if someone know what to do with this or if someone have some experience with that.
 
  • Like
Reactions: Ramalama
Okay, im Sorry.. Im now compare it again and again Ubuntu VM vs Ubuntu in CT where network works.
In CT is /etc/systemd/network/eth.network which containtais:

Code:
[Match]
Name = eth0

[Network]
Description = Interface eth0 autoconfigured by PVE
Address = xxx.y.zzz.1/28 #IP Address setted via Proxmox
Gateway = aaa.bbb.cc.15 #Setted Gateway via Cloud-Init in Proxmox (Gateway from Subnet => Main IP of Host)
DHCP = no
IPv6AcceptRA = false

[Route]
Destination = aaa.bbb.cc.15 #Setted Gateway via Cloud-Init in Proxmox (Gateway from Subnet => Main IP of Host)
Scope = link

And in VM it is empty. When i try copy this file to VM then nothing changed.. And when do command: service systemd-networkd status it writes:
eth0: Could not set route
 
I watching it some time.. and can it be problem with some routing automaticly from Cloud-Init? Because when its starting it write just incoming route but dont write outgoing route.
Snímek obrazovky 2021-04-13 185651.png