After updating to that kernel (under 14.04), the problem is not fixed.
$ uname -a
Linux kit1 3.19.0-031900rc4-generic #201501112135 SMP Sun Jan 11 21:36:48 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
* The LXC instance still does not start if the <memtune><swap_hard_limit unit='KiB'>131072</swap_hard_limit></memtune> setting is included.
$ virsh -c lxc: start gold-lxc-20140717
error: Failed to start domain gold-lxc-20140717
error: internal error: guest failed to start: Unable to write to '/sys/fs/cgroup/memory/machine/gold-lxc-20140717.libvirt-lxc/memory.memsw.limit_in_bytes': No such file or directory
After updating to that kernel (under 14.04), the problem is not fixed.
$ uname -a 031900rc4- generic #201501112135 SMP Sun Jan 11 21:36:48 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Linux kit1 3.19.0-
* The LXC instance still does not start if the <memtune> <swap_hard_ limit unit='KiB' >131072< /swap_hard_ limit>< /memtune> setting is included.
$ virsh -c lxc: start gold-lxc-20140717 cgroup/ memory/ machine/ gold-lxc- 20140717. libvirt- lxc/memory. memsw.limit_ in_bytes' : No such file or directory
error: Failed to start domain gold-lxc-20140717
error: internal error: guest failed to start: Unable to write to '/sys/fs/
$ ls /sys/fs/ cgroup/ memory/ machine/ gold-lxc- 20140717. libvirt- lxc/ clone_children memory. kmem.tcp. failcnt memory.oom_control event_control memory. kmem.tcp. limit_in_ bytes memory. pressure_ level kmem.tcp. max_usage_ in_bytes memory. soft_limit_ in_bytes kmem.tcp. usage_in_ bytes memory.stat kmem.usage_ in_bytes memory.swappiness limit_in_ bytes memory. usage_in_ bytes kmem.limit_ in_bytes memory. max_usage_ in_bytes memory. use_hierarchy kmem.max_ usage_in_ bytes memory. move_charge_ at_immigrate notify_on_release kmem.slabinfo memory.numa_stat tasks
cgroup.
cgroup.
cgroup.procs memory.
memory.failcnt memory.
memory.force_empty memory.
memory.kmem.failcnt memory.
memory.
memory.
memory.
(Note it does not include memory. memsw.limit_ in_bytes)
* After reverting to kernel 3.13.0-43 and doing the same lxc start which fails in the same way:
$ ls /sys/fs/ cgroup/ memory/ machine/ gold-lxc- 20140717. libvirt- lxc/ clone_children memory. kmem.tcp. failcnt memory.oom_control event_control memory. kmem.tcp. limit_in_ bytes memory. pressure_ level kmem.tcp. max_usage_ in_bytes memory. soft_limit_ in_bytes kmem.tcp. usage_in_ bytes memory.stat kmem.usage_ in_bytes memory.swappiness limit_in_ bytes memory. usage_in_ bytes kmem.limit_ in_bytes memory. max_usage_ in_bytes memory. use_hierarchy kmem.max_ usage_in_ bytes memory. move_charge_ at_immigrate notify_on_release kmem.slabinfo memory.numa_stat tasks
cgroup.
cgroup.
cgroup.procs memory.
memory.failcnt memory.
memory.force_empty memory.
memory.kmem.failcnt memory.
memory.
memory.
memory.
Looks identical to me.