[SOLVED] systemd-networkd and Proxmox

Darato

New Member
Aug 10, 2022
4
0
1
Hello,

I just reinstalled my server with Debian, then configured network with systemd-networkd, then installed Proxmox with this Ansible role lae.ansible-role-proxmox

On the network page on the proxmox UI, I see only my physical network interfaces, not the bridge created with systemd-networkd.
Is proxmox compatible with systemd-networkd ? I have bridge-utils installed on the server.


These are the Proxmox role vars I use :
YAML:
pve_group: pve
pve_groups:
  - name: adm
    comment: Admin Team
pve_users:
  - name: test@pve
    password: "Test456"
    groups:
      - adm
pve_acls:
  - path: /
    roles: ["Administrator"]
    groups: ["adm"]
pve_storages:
  - name: localdir_iso
    type: dir
    content: ["iso"]
    path: /localdir_iso
    disable: no
  - name: lvm_r1_ssd0
    type: lvm
    content: ["images", "rootdir"]
    vgname: "{{ mdadm_arrays_names[0] }}-vg"
pve_ssh_port: 22
pve_reboot_on_kernel_update: false
pve_datacenter_cfg:
  keyboard: fr-fr

About networking, I use the role ansible-role-systemd-networkd, as you might not know the role, I can provide the generated files if it more readable.

YAML:
systemd_networkd_netdev:
  netdev_bond0:
    - NetDev:
        - Name: bond0
        - Kind: bond
    - Bond:
        - Mode: active-backup
        - TransmitHashPolicy: layer2+3

  netdev_vlan10:
    - NetDev:
        - Name: netdev_vlan10
        - Kind: vlan
    - VLAN:
        - Id: 10
  netdev_bridge_vm_vlan10:
    - NetDev:
        - Name: netdev_bridge_vlan10
        - Kind: bridge

systemd_networkd_network:
  # Physical interfaces
  eno3:
    - Match:
        - Name: eno3
    - Network:
        - Bond: bond0

  eno4:
    - Match:
        - Name: eno4
    - Network:
        - Bond: bond0

  # Bond interface
  bond0:
    - Match:
        - Name: bond0
    - Network:
        - Description: "Static/Unconfigured bond, for eno3 & eno4"
        - VLAN: netdev_vlan10

  network_interface_vlan10:
    - Match:
        - Name: netdev_vlan10
        - Type: vlan
    - Network:
        - Description: "Network interface on vlan10, connected to netdev_bridge_vm_vlan10"
        - Bridge: "netdev_bridge_vm_vlan10"
        - DHCP: "no"
        - DNS: "10.0.10.1"
        - Address: "10.0.10.161/24"
        - DNS: "10.0.10.1"
        - Gateway: "10.0.10.1"
 
Last edited:
No, all Proxmox products use /etc/network/interfaces and ifupdown2 for network configuration.
 
Hello,
Thank you in case it's not a feature anytime soon, I translated all these files in /etc/network/interfaces.

I can close this as solved
 

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!