Recently, jobs keeped failling because libvirt failed to create a new guest.
The error message was:
can't allocate low memory for domain: Out of memory
sudo mv /etc/default/grub.d/xen.cfg{,.bak}
sudo tee /etc/default/grub.d/xen.cfg << EOC
echo "Including Xen overrides from /etc/default/grub.d/xen.cfg"
-GRUB_CMDLINE_XEN="dom0_mem=7680M,max:7680M dom0_max_vcpus=4 max-console=vga"
+GRUB_CMDLINE_XEN="dom0_mem=7552M,max:7552M dom0_max_vcpus=4 max-console=vga"
GRUB_DEFAULT="Ubuntu GNU/Linux, with Xen hypervisor"
EOC