no /var/run symlink in centos-7 template

mmitucha

New Member
Aug 25, 2016
1
0
1
36
Hello

at first I really want to thank you for this perfect product. I discovered Proxmox VE this year and it is the best open-source virtualization platform I have ever worked with.

But the problem:

I am using Centos-7 templates from your repositories, downloaded through Proxmox VE GUI "'storage' - Content - Templates".

Most recent version is 'centos-7-default_20160205_amd64.tar.xz', according to log, the url is 'http://download.proxmox.com/images/system/centos-7-default_20160205_amd64.tar.xz'.

But this version of Centos7 LXC template has inconsistency between '/run' and '/var/run' folders.
'/var/run' folder use to be symlink to '/run' folder, but in this template, they are 2 different folders:

This is output from clear container created from 'centos-7-default_20160205_amd64' template:

[root@at1ct101 ~]# uname -r
4.4.6-1-pve


[root@at1ct101 ~]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"


[root@at1ct101 ~]# ls -l / | grep run
drwxr-xr-x 7 root root 160 aug 25 08:54 run
[root@at1ct101 ~]# ls -l /var | grep run
lrwxrwxrwx 1 root root 11 feb 5 2016 lock -> ../run/lock
drwxr-xr-x 8 root root 4096 aug 25 08:59 run
[root@at1ct101 ~]# ls /run
lock log mount systemd user utmp
[root@at1ct101 ~]# ls /var/run
console dbus faillock netreport sepermit setrans sshd.pid syslogd.pid utmp


I discovered it because systemd could not get state of 'zabbix-proxy v3.0.4' service. The is because pid in zabbix-proxy systemd file is pointing to '/var/run/zabbix/zabbix_proxy.pid',
but pid in zabbix-proxy config file is pointing to '/run/zabbix/zabbix_proxy.pid'.

Here are zabbix related threads:
https://support.zabbix.com/browse/ZBX-9145?jql=text ~ "systemd pid"
https://support.zabbix.com/browse/ZBX-9027


Here is rhel related thread:
https://bugzilla.redhat.com/show_bug.cgi?id=1130939

Maybe this could be the casue, that during building process it creates the /var/run dir ?
https://github.com/ErwanAliasr1/yum/commit/bea1d001a20234211d40768b61b383c5d76eea92

Thank you
 
I just noticed this problem just now.
How did you solve it?

Code:
mv /var/run /var/run_oldy 
cd /var 
ln -sf /run
and the reboot?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!