date: cannot set date: Operation not permitted


# date 10192055
date: cannot set date: Operation not permitted
Tue Oct 19 20:55:00 UTC 2010

 

 

# vzctl stop <veid>
Stopping container ...
Container was stopped

 


# vzctl set <veid> --save --capability sys_time:on
Saved parameters for CT <veid>

 

 

# vzctl start <veid>
Starting container ...
Container is mounted
Adding IP address(es): IP
Setting CPU units: 1000
Setting CPUs: 1
Configure meminfo: 524288
Set hostname: hostname
File resolv.conf was modified
Setting quota ugidlimit: 0
Container start in progress...

 

 

# rm /etc/localtime
# ln -s /usr/share/zoneinfo/Asia/Bangkok /etc/localtime
# date 10192101
Tue Oct 19 21:01:02 CEST 2010

 

Thanks.  :  http://blog.cheramy.name/2010/10/19/openvz-cannot-set-date-operation-not-permitted/