Please elaborate. Do you suggest to run Linux on the Mac or to run it in a VM?
I would think that one would get better battery life from running it in a VM, especially a headless one compared to running Linux 'natively' mainly because Linux desktop is notorious for worse battery life than Mac/Windows.
(yes there are ways to improve the out-of-the box battery life of Linux but that's another topic)