SDN test with Proxmox 7 can not start VM

Dzung

Well-Known Member
Feb 20, 2019
89
2
48
34
Hello!
I want to test SDN on Proxmox 7 but I can not start VM with error

Code:
no physical interface on bridge 'vnet1'
kvm: -netdev type=tap,id=net0,ifname=tap102i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on: network script /var/lib/qemu-server/pve-bridge failed with status 6400
TASK ERROR: start failed: QEMU exited with code 1
This is my config:
/etc/pve/sdn
Code:
root@pve:/etc/pve/sdn# cat .running-config
{"version":15,"controllers":{"ids":{}},"zones":{"ids":{"vxlan1":{"peers":"192.168.2.45,192.168.2.50,192.168.2.52","type":"vxlan","mtu":1450,"ipam":"pve"}}},"subnets":{"ids":{}},"vnets":{"ids":{"vnet1":{"type":"vnet","zone":"vxlan1","tag":4000}}}}root@pve:/etc/pve/sdn# cat vnets.cfg
vnet: vnet1
        zone vxlan1
        tag 4000

root@pve:/etc/pve/sdn# cat zones.cfg
vxlan: vxlan1
        peers 192.168.2.45,192.168.2.50,192.168.2.52
        ipam pve
        mtu 1450
in /etc/network/interfaces
Code:
auto enp65s0f0
iface enp65s0f0 inet static
        address 10.1.1.2/24
        mtu 9000

auto enp65s0f1
iface enp65s0f1 inet static
        address 10.1.2.2/24
        mtu 9000

auto vmbr0
iface vmbr0 inet static
        address 192.168.2.50/24
        gateway 192.168.2.1
        bridge-ports eno1
        bridge-stp off
        bridge-fd 0
source /etc/network/interfaces.d/*
in /etc/network/interfaces.d/sdn
Code:
#version:15

auto vnet1
iface vnet1
        bridge_ports vxlan_vnet1
        bridge_stp off
        bridge_fd 0
        mtu 1450

auto vxlan_vnet1
iface vxlan_vnet1
        vxlan-id 4000
        vxlan_remoteip 192.168.2.45
        vxlan_remoteip 192.168.2.52
        mtu 1450
Could you please help me to solve this problem? Thanks.