Hide VMs behind a VPN?

I want to hide all network traffic from my VMs behind a Mullvad VPN, but I have no idea how. I can only find tutorials for Docker containers, but not VMs. Is there an easy way to do this? I am not very experienced with networks.