Error:
When you try to set date in a OpenVZ container, it may show Operation not permitted error.
Reason:
The capability for setting time is not given for the container.
sys_time capability mustbe enabled for the container to set the date and time.
Solution:
1. Login to OpenVZ Hardware Node as root user.
2. [root@HN ~] # vzlist -a | grep <IP of VPS>
<VPSID> 59 running <IP> server.example.com
3. [root@HN ~] # vzctl stop <VPSID>
4. [root@HN ~] # vzctl set <VPSID> --capability sys_time:on --save
5. [root@HN ~] # vzctl start <VPSID>
Now the capability parameter for changing time is given for the container.
Try again changing the date. This time it will permit you to change the date and time.
Reference:
http://wiki.openvz.org/Man/vzctl.8#Capability_option
About Me
Categories
Archives
Populares
-
Domain already exists error while adding a subdomain or addon domain A very common error when adding an addon or parked domain via cpanel....
-
Situation : I have removed some mails from the MDaemon server from the backend,ie, browsed through the mail box and deleted some mails mauna...
-
Here in the following telnet sessions i am using the following details to demonstrate the dovecot verification. You have to replace with you...
-
In Kloxo ftp is running in xinetd. So first of all check this service is listening in port 21. [root@server ~]# netstat -plant | grep xinetd...
-
If you, or your clients, are unable to login to your/their email accounts and the system shows this error message: Plaintext authentication ...
-
BCC to Boss Function - Postfix Postfix provides three mechanisms: always_bcc = address Deliver a copy of all mail to the specifi...
-
Installing Ruby In cpanel it is easy to install Ruby using the following cpanel script. # /scripts/installruby Some times the cPanel script...
-
Bash script To Change password of all mail accounts The bash script given below will change the password of all the mail accounts in ...
-
Install YAZ PHP extension You can cry install yaz using the following command. But you may encounter an erro while the installation. # pecl ...
-
Change Mail sending IP Open the postfix configuration file, /etc/postfix/main.cf Find if there is an entry as follows, in the postfix config...