Issue : date: cannot set date: Operation not permitted

To fix the issue:

# vzctl stop <veid>
# vzctl set <veid> –save –capability sys_time:on
# vzctl start <veid>

# vzctl enter <veid>
# mv /etc/localtime /etc/localtime.bk
# ln -s /usr/share/zoneinfo/Asia/Calcutta /etc/localtime
or set time by:

date -s "2 OCT 2006 18:00:00"

Advertisements