VLAN tag for the container

hakayova

New Member
Dec 9, 2023
5
2
3
Hi all,

I can successfully tag a container in proxmox for a certain VLAN; however, I would like to replicate it on Debian/KVM/QEMU. So far, I did not succeed. I suspect that the VM on Debian/KVM/QEMU is not appropriately tagged for the VLAN. The VLAN tag is set in Proxmox container creation wizard, but where is the actual config file for this?I would like to inspire from and replicate it on the above setup. Thanks for any pointers.
 
Hello
You can tag a VM the same way you did with the CT, also in the Creation Wizard.

You can find the actual configuration file of the CT at /etc/pve/nodes/<your_node>/lxc/<CT_ID>.conf.
Or the easier way pct conf <ct_id>

There you should find a line comparable to :
net0: name=eth0,[...],tag=1
where tag is the VLAN tag you've set

If you tag a VM, its the same way and you can find the config at /etc/pve/nodes/<your_node>/qemu-server/<CT_ID>.conf
Or the easier way qm conf <vm_id>
 
  • Like
Reactions: hakayova
Thank you so very much for your quick response. Let me see if I can replicate it in KVM VM. This is very helpful and much appreciated!
 
Unfortunately, I couldn't find a way to define an access port for KVM/QEMU VMs. It is amazing how easy it is for proxmox, kudos to the developers! Thanks for the guidance.
 
  • Like
Reactions: hd--

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!