FS#15858 - [initscripts] adjtime doesn't work in a OpenVZ template
Attached to Project:
Arch Linux
Opened by Henk van de Kamer (hvdkamer) - Saturday, 08 August 2009, 13:04 GMT
Last edited by Roman Kyrylych (Romashka) - Saturday, 03 October 2009, 14:01 GMT
Opened by Henk van de Kamer (hvdkamer) - Saturday, 08 August 2009, 13:04 GMT
Last edited by Roman Kyrylych (Romashka) - Saturday, 03 October 2009, 14:01 GMT
|
Details
Description:
Arch Linux can be used as an OpenVZ (Virtuozzo) tempalte. However this requires a few tricks. Yesterday with the initscripts (and possible the udev as well) another issue was discovered. Every hour an e-mail is received with the following content: Cannot access the Hardware Clock via any known method. Use the --debug option to see the details of our search for an access method. The problem is that OpenVZ templates can't set the hardware clock. That is the reason that udev doesn't create the rtc0. Additional info: udev (141-3 -> 141-5) initscripts (2009.03-2 -> 2009.07-3) Solution: Detect on installing/upgrading if we are running as a container. If so, remove the adjtime from cron.hourly. The detection is something like this: [root@ve180 /]# if [ -e /proc/user_beancounters ]; then echo "OpenVZ"; fi OpenVZ |
This task depends upon
Closed by Roman Kyrylych (Romashka)
Saturday, 03 October 2009, 14:01 GMT
Reason for closing: Implemented
Additional comments about closing: see the last comments
Saturday, 03 October 2009, 14:01 GMT
Reason for closing: Implemented
Additional comments about closing: see the last comments
I think that in these cases, the best is customize your instalation.
For example, some days ago I proposed this, that is ideal for UML or others type of setups (for example minus nr of consoles): "
FS#15715- [initscripts] Make dynamic initilization code for consoles", but not more than this, in this case, not "specific code" is added.$ chmod -x /etc/cron.hourly/adjtime