Hi Everyone! I have a small but a very annoying problem... I can't do "rpm" within a container. Example: # cat /etc/redhat-release CentOS release 5.4 (Final) # uname -r 2.6.18-164.2.1.el5.028stab066.7 This command works fine: # rpm --dbpath /vz/root/101/var/lib/rpm -qa While this command shows nothing: # vzctl enter 101 entered into CT 101 # rpm -qa Any hints why? Thanks in advance, Michael
What are RPM software versions on the host system and inside the CT? I.e. the output of the below executed on the host system: rpm --version vzctl exec 101 rpm --version
what if you try yum? does it make any errors? with some containers which i had migrated from xen based virtualization (xen guests) i had problems also with yum, and also rpm makes no output you can try some suggestions provided by me in: https://www.centos.org/modules/newbb/viewtopic.php?topic_id= 20237&forum=37&post_id=76684#forumpost76684
Hi! creating a new /dev/urandom i.e: # vzctl stop 101 # mknod --mode 644 /vz/private/101/dev/urandom c 1 9 # vzctl start 101 solved the problem I guess something got messed up when I upgraded from 5.3 to 5.4... Thanks for all help! Michael