Yes, just edit the qemu config (they are the same for libvirt and qm). Solution discussed here:
(Exabit’s answer).
Edit: ok, I was wrong about that, they don’t appear to be similar.