Where are my CT and VM net connected ?

Pigi_102

New Member
May 24, 2024
10
0
1
Hello all,
I was wondering if there is a way to list where are CT or VM connected to.
I' ll explain better: I have a small three nodes cluster where I'm studing proxmox ( 8.2.2 ) and have created a small number of VMs and CT.
Those objects are connected to different networks either on vmbrX or on a VNet configured via SDN or eventually also on vmbrX with a vlan tag.
Everything works fine.
I would like, though, to have a list of "who is connected where".
To better clarify ( sorry for my poor english ) something like the storage view in the left panel where I can choose a storage object and look inside it to see vm disks and volumes ( like in the image attached ).
ZfsPve.png
Otherwise I have to go in every VM and CT to see where they are attached which is feasible, but time consuming and prone to errors.

Thanks in advance

Pierluigi
 
pvesh get /nodes/proxmox/qemu/104/agent/network-get-interfaces -o json-pretty |grep 'ip-address" :'


qm guest cmd 104 network-get-interfaces


For containers:

lxc-info -i -n 114



/ You could be keeping track of this with a spreadsheet
 
Last edited:
Thanks @Kingneutron for your reply, but this is not what I'm searching for.
What I would like to have is something that tell me on wich bridge the VMs or CT are connected.
Something I eventually can get from

Code:
root@pve1:~# grep ^net /etc/pve/qemu-server/*.conf
net0: virtio=BC:24:11:50:60:72,bridge=vmbr0,firewall=1
net1: virtio=BC:24:11:2B:C2:63,bridge=Vlan10VN,firewall=1

root@pve1:~# grep net /etc/pve/lxc/101.conf 
net0: name=eth0,bridge=vmbr0,firewall=1,gw=192.168.126.200,hwaddr=BC:24:11:A8:B3:7E,ip=192.168.126.199/24,type=veth

but that isn't very pratical as this files depend on where the VM is runnins in that moment ( it could be on wichever node in the cluster ) and also if you have some snapshot it is duplicated in this file.

In other hypervisor there are some ( graphical ) view that shows which wich VM is connected to wich Vswitch.
I will keep hunting for something like this.
Thanks again.
 
That's exactly what I'm searching for.
At the moment I'm trying to gather this infos via a script, by using pvesh.
Hope this RFE would be available soon :)
 

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!