How to attribute VLAN/sub Net for machine in a pool

VinceAuTravail

New Member
Mar 1, 2023
3
0
1
Hi everyone,
I'm currently working on a project and I'd like to know if there is any way to attribute a subnetwork or a VLAN to every machine in the same pool.
Or maybe another way so that VMs can't ping each other when they are in differents pool, but they can when they are in the same one.

Thanks you
 
I'm currently working on a project and I'd like to know if there is any way to attribute a subnetwork or a VLAN to every machine in the same pool.
Or maybe another way so that VMs can't ping each other when they are in differents pool, but they can when they are in the same one.
Nothing directly. You need to apply the VLAN to each VM individually. You can however write a script that does that via the API.
 
  • Like
Reactions: VinceAuTravail
I'm trying using the API,
So i'm making a script using the python wrapper of the api Proxmoxer.

But I can't find how I can listen on the proxmox event so that when a VM is create it return me something
 

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!