Bandwidth for VMs

Businezz

New Member
Jan 6, 2023
15
1
3
Hi all,

Is there a way to set up a monthly transfer/bandwidth limit per VM? Example: I have 10TB in total from my provider and i want to set up 3 VMs with 2Tb, 3TB, and 5TB bandwidth per month. Is this possible at all?

TIA
 
I'm afraid there is no such mechanism implemented in PVE.
 
@Businezz

If it's limiting Bandwidht Speed, i'd setup some kind of rooted network in Proxmox and place an openWRT or whatever router/firewall in front of the VM's and limit the bandwidth and connection speeds. Squid could be an option.

That's traffic shaping/limiting/QoS.

You want to achieve a Traffic Limit/Bandwidth Usage Limit. Right?


There are various ways to achieve monitoring and Interface traffic counting.

https://openwrt.org/docs/guide-user...itoring/bwmon#view_historical_bandwidth_usage



https://openwrt.org/docs/guide-user/services/network_monitoring/vnstat

Network Traffic Monitor with vnStat​

vnStat is a console-based network traffic monitor for Linux and BSD that keeps a log of network traffic for the selected interface(s). It uses the network interface statistics provided by the kernel as information source. This means that vnStat won't actually be sniffing any traffic and also ensures light use of system resources. As it says on their website


https://github.com/NethServer/bandwidthd && https://bandwidthd.sourceforge.net/ <== be aware, both softwares seem to be outdated. but i guess similar stuff is out there.
BandwidthD tracks usage of TCP/IP network subnets and builds html files with graphs to display utilization. Charts are built by individual IPs, and by default display utilization over 2 day, 8 day, 40 day, and 400 day periods. Furthermore, each ip address's utilization can be logged out at intervals of 3.3 minutes, 10 minutes, 1 hour or 12 hours in cdf format, or to a backend database server. HTTP, TCP, UDP, ICMP, VPN, and P2P traffic are color coded.

For sure, this can be done with a Proxmox Server, but also sure it's not a Proxmox related and focused topic.

For Sure that solutions look a bit hacky, give it a try to set it up and report your solution back.
 
Last edited:
  • Like
Reactions: CanadaGuy

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!