I have a template that I use which needs a certain capability enabled
each time I deploy it. Is there an easy way to set this capability
inside the template itself?
I am sick of having to use this every time:
vzctl set # --capa sys_admin:on --save
If there's a way to script this, that would
Hi,
add capability and more settings to your ct template config file,
like:
$ echo 'CAPABILITY=SYS_ADMIN:on '
/etc/vz/conf/ve-your-CT_template_name.conf-sample
And deploy it ... // some capa need a restart
$ vzctl set CTID --applyconfig template_cfg [...]
or use on your creation:
$ vzctl
Hello,
You can add this in your VE config. The default VE config is
/etc/vz/conf/ve-basic.conf-sample or /etc/vz/conf/ve-basic.conf-sample
depending on distro (you can change this via CONFIGFILE option in
/etc/vz/vz.conf). So you can add
CAPABILITY=NET_ADMIN:on
into default config or create