[lxc-users] Can a container modify the host rtc?

Paul Giordano paulgiordano at webpass.net
Tue Jul 26 15:30:18 UTC 2016


Running LXD 2.0.3 

I'm trying to have a container be an ntp server, but the container gets an EPERM trying to set the hw clock: 

clock_settime(CLOCK_REALTIME, {1469546956, 258938000}) = -1 EPERM (Operation not permitted) 
adjtimex(0x7ffffb0d6bf0) = -1 EPERM (Operation not permitted) 
settimeofday({1469546956, 258938}, NULL) = -1 EPERM (Operation not permitted) 
settimeofday({1469546956, 0}, NULL) = -1 EPERM (Operation not permitted) 

Is there a way to configure the container to allow access to /dev/rtc0? 



Paul Giordano 
Systems Administrator 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160726/4046c623/attachment.html>


More information about the lxc-users mailing list