This patch series improves and enhances functionalities of the LXC hypervisor. These patches turns several hard coded parameters into hypervisor parameters, and implements few additional functions of features which wasn't implemented yet. This patch series implements two features which isn't implemented yet: - Instance reboot - Memory ballooning This patch series adds four new hvparams: - lxc_drop_capabilities - list of capabilities should be dropped for the container - lxc_devices - direct device access ACL - lxc_extra_config - extra config parameters - lxc_tty - number of ttys allocated for the container
And few more improvements. Yuto KAWAMURA(kawamuray) (15): LXC: Make the drop capabilities list a hvparam LXC: Implement RebootInstance of LXCHypervisor LXC: Split _GetCgroupInstanceValue function LXC: Add _SetCgroupInstanceValue function LXC: Implement BalloonInstanceMemory LXC: Additional check for cgroup subsystems existence Fix CheckPrereq function of the LUInstanceSetParams wrt cpu_mask LXC: Make devices ACL list an hvparam LXC: Include cputime in return value of GetInstanceInfo LXC: Remove comment LXC: Remove unused function LXC: Add lxc_extra_config hvparam LXC: Raise an error if failed to read cgroup memory limit LXC: Make the number of ttys a hvparam Fix CheckParameterSyntax and ValidateParameters of BaseHypervisor lib/cmdlib/instance.py | 2 +- lib/hypervisor/hv_base.py | 23 ++- lib/hypervisor/hv_lxc.py | 233 ++++++++++++++++++--------- man/gnt-instance.rst | 61 +++++++ src/Ganeti/Constants.hs | 48 +++++- test/py/ganeti.hypervisor.hv_lxc_unittest.py | 7 +- 6 files changed, 288 insertions(+), 86 deletions(-) -- 2.0.4
