pimox / pimox7

Proxmox V7 for Raspberry Pi
1.71k stars 156 forks source link

VLAN support on pimox7 #44

Open bronkoo opened 2 years ago

bronkoo commented 2 years ago

Hi,

given by the fact 'vlan' package isn't installed by 'RPiOS64-IA-Install.sh' script I tried to do it, but this will remove 'proxmox-ve' and 'pve-manager' packages... I need to add VLAN's on my eth0 for untagged interfaces on CT's, as normal I think...

Best.

Sysadminfromhell commented 2 years ago

Did you try to activate it via GUI ?

bronkoo commented 2 years ago

Yes, at first. But 'VLAN Tag" is grayed out in ->Network ->Create ->Linux Vlan That's why I've checked 'vlan' package...

kernel has vlan support:

# modinfo 8021q
filename:       /lib/modules/5.10.63-v8+/kernel/net/8021q/8021q.ko
version:        1.8
license:        GPL
alias:          rtnl-link-vlan
srcversion:     CFFE1C2D7D6CC32F92D6CAF
depends:        garp
intree:         Y
name:           8021q
vermagic:       5.10.63-v8+ SMP preempt mod_unload modversions aarch64
Sysadminfromhell commented 2 years ago

Did you create a Linux bridge first and activate VLAN awareness then then or otherwise? Because I can activate it.

bronkoo commented 2 years ago

Ok, thanks. Just stumbled over: Default Bridge 'vmbr0' works without any changes - 'VLAN aware' is unmarked - and simple configure the 'VLAN Tag' in network device for my CT's. Like KISS...

Not an issue currently, but 'VLAN Tag" is still grayed out in ->Network ->Create ->Linux Vlan.

Sysadminfromhell commented 2 years ago

Ok, thanks. Just stumbled over: Default Bridge 'vmbr0' works without any changes - 'VLAN aware' is unmarked - and simple configure the 'VLAN Tag' in network device for my CT's. Like KISS...

Not an issue currently, but 'VLAN Tag" is still grayed out in ->Network ->Create ->Linux Vlan.

afaik you need to create a linux bond before you can create a linux vlan. Read the manual, I guess its described like this.

bronkoo commented 2 years ago

afaik you need to create a linux bond before you can create a linux vlan. Read the manual, I guess its described like this.

sorry in the hell ;-), but that doesn't make sense... RTFM for sure.

salman-uk commented 2 years ago

Did you try to

Did you try to activate it via GUI ?

Hi. For me activating the vlan aware feature on the bridge in the gui and then rebooting causes me to lose access to the pi and requiring me to start again from scratch with a reinstall. Tried a few times.

I don't get this issue on my other non pi nodes full proxmox clusters.

Any ideas.

aanon4 commented 2 years ago

The vlan aware feature is a kernel compile option which the standard pi kernel doesn't enable. You can try this custom kernel which does have it enabled (see https://github.com/pimox/pimox7/issues/28)

MakiseKurisu commented 2 years ago

Also you may be able to do what you want with openvswitch-switch package.

AlwinAntreich commented 2 years ago

Just to add our trickery to get vlan-aware working, might not apply to your case. We needed to set our nics in promisc mode. Sounds like a bug. :)

https://community.mellanox.com/s/question/0D51T00008ansfP/vlan-aware-linux-bridging-is-not-functional-on-connectx4lx-card-unless-manually-put-in-promiscuous-mode