Rate limit bandwidth on a VM in LXD

What it the best way to limit bandwidth on a LXD VM container?

This question might have been answered elsewhere, but I can’t find it when searching.

You can set such limits on the network device of your VM or container. Here is an example:

lxc config device set v1 eth0 limits.egress=5Mbit limits.ingress=20Mbit

Documentation is here

Sooo, essentially the same way as for lxc containers?

I’m confused at this point because we tried it and its ignored…

What type of NIC device are you using with the VM?

lxc config show <instance> --expanded?