dnsmasq in openvz will not start

RobFantini

Famous Member
May 24, 2012
2,042
110
133
Boston,Mass
when dnsmasq starts the following error is the result:

Code:
dnsmasq: setting capabilities failed: Operation not permitted

Is there a way to fix that?
 
Did you try to run these? These may fix the issue.

# vzctl set <ct_id> --capability setuid: on --save
# vzctl set <ct_id> --capability net_admin: on --save
# vzctl set <ct_id> --capability net_raw: on --save
Running dnsmasq as root will also can fix this issue. You can add user=root in /etc/dnsmasq.conf. I am not sure if this is right path to dnsmasq.conf.