Properly validate memory limits
Properly validate memory limits

Closes #2483

Signed-off-by: Stéphane Graber <089afc6d81f66f1168a9849e15660feae286e024@ubuntu.com>

atxwebs/lxd,lxc/lxd,hallyn/lxd,stgraber/lxd,pcdummy/lxd,mjeanson/lxd,jsavikko/lxd,chrisglass/lxd,hallyn/lxd,chrisglass/lxd,stgraber/lxd,ollie314/lxd,stgraber/lxd,stgraber/lxd,hallyn/lxd,georghopp/lxd,hallyn/lxd,georghopp/lxd,ollie314/lxd,stgraber/lxd,erikmack/lxd,akshaykarle/lxd,jsavikko/lxd,mjeanson/lxd,pcdummy/lxd,erikmack/lxd,Skarlso/lxd,hallyn/lxd,chrisglass/lxd,akshaykarle/lxd,techtonik/lxd,lxc/lxd,lxc/lxd,lxc/lxd,jsavikko/lxd,stgraber/lxd,lxc/lxd,mjeanson/lxd,techtonik/lxd,Skarlso/lxd,atxwebs/lxd,akshaykarle/lxd,lxc/lxd,atxwebs/lxd,hallyn/lxd,erikmack/lxd,ollie314/lxd,lxc/lxd,Skarlso/lxd,atxwebs/lxd,techtonik/lxd,georghopp/lxd,Skarlso/lxd,pcdummy/lxd,stgraber/lxd