Running both n8n and Ollama (with a Large Language Model) on a single VM requires a careful balance of resources. The primary bottleneck will be the LLM you choose to run via Ollama, as RAM and CPU/GPU requirements vary wildly between a small model (like Phi-3 or Llama 3.2 1B) and a medium model (like Llama 3.1 8B).
Hi @Elimelikeli Welcome!
Clock speed is not what limits token generation, memory bandwidth is, so a 3.5 GHz core buys you very little over a 2.5 GHz one on the same RAM. Anything modern at 2.5 GHz or above is fine. Give the VM physical cores rather than hyperthreaded vCPUs, and expect the gains to flatten around the physical core count, usually near 8, past which extra threads mostly add overhead.
What changes Ollama’s speed far more than GHz is the guest CPU type. On Proxmox or plain KVM the default generic model hides AVX and AVX2 from the guest, so Ollama drops to its slow path and logs “CPU does not have minimum vector extensions”, which also disables GPU inference if you add a card later. Set the VM CPU type to host, or x86-64-v3 if you need live migration, then confirm it inside the VM: