[lxc-users] Question about ps STARTTIME being in the future

Jonathan Opperman jonathan at opperman.za.net
Thu Apr 20 20:48:09 UTC 2017


Hi LXC Team,

Firstly let me hit off by saying great works and thanks for the awesome 
work you guys
are doing around the lxc/lxd container space. It's opened up a whole new 
world for
me.

I need some advice on how to fix this issue I am having, I have 
containerized a
centos 5.x vm and for all intensive purposes it works as expected but I 
am faced
with 1 anomaly, the ps START time for the ps tree is wrong and I am not 
sure
how to troubleshoot the issue:

The container was booted in April 20 04:50 CEST but the time on PID 1:

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0  10420   100 pts/0    Ss+  Jun07   0:13 init 
[3]

ls -ld /proc/1
dr-xr-xr-x 9 root root 0 Apr 20 04:50 /proc/1

/etc/fstab contains:

tmpfs                   /dev/shm                tmpfs   defaults        
0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  
0 0
sysfs                   /sys                    sysfs   defaults        
0 0
proc                    /proc                   proc    defaults        
0 0

Container host details:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"

apiextensions:
- id_map
apistatus: stable
apiversion: "1.0"
auth: trusted
public: false
environment:
   addresses:
   - 10.127.247.98:9000
   architectures:
   - x86_64
   - i686
   driver: lxc
   driverversion: 2.0.7
   kernel: Linux
   kernelarchitecture: x86_64
   kernelversion: 4.4.0-62-generic
   server: lxd
   serverpid: 24158
   serverversion: 2.0.9
   storage: zfs
   storageversion: "5"

Container details:

CentOS release 5.4 (Final)

Any help or advice would be really appreciated.

Thanks in advance.

Regards,
Jono









More information about the lxc-users mailing list