Monday, February 13, 2012

steps taken from vmware server 2.0 dropping vms under load

Notes from vmware server 2.0 dropping vms under load


Here are the steps that I have taken:
1 - Create the directory /usr/lib/vmware/lib/libc.so.6
2 - Grab /lib/libc-2.5.so and copy it to /usr/lib/vmware/lib/libc.so.6 the version that I retrieved came from glibc-2.5-34 I got mine from a backup. If you do not have a backup version follow instructions 3a to 3e. I explain on how to get this library from the CentOS repository.
3a - mkdir /tmp/glibc-2.5.34
3b - cd /tmp/glibc-2.5.34
3c - wget http://mirror.centos.org/centos/5.3/os/x86_64/CentOS/glibc-2.5-34.i686.rpm
3d - rpm2cpio glibc-2.5-34.i686.rpm | cpio –ivd
3e - Grab /tmp/glibc-2.5.34/lib/libc-2.5.so and copy it to /usr/lib/vmware/lib/libc.so.6
4 - Rename the file libc-2.5.so within /usr/lib/vmware/lib/libc.so.6 to libc.so.6
5 - Open /usr/sbin/vmware-hostd and add /usr/lib/vmware/lib/libc.so.6 to the LD_LIBRARY_PATH. I just added:
export LD_LIBRARY_PATH=/usr/lib/vmware/lib/libc.so.6:$LD_LIBRARY_PATH
before the last line.
6 - Restart your VMware service and your Virtual Machine(s)



rpm -Uvh --oldpackage http://mirror.centos.org/centos/5.3/os/x86_64/CentOS/glibc-2.5-34.x86_64.rpm

Thursday, February 9, 2012

reference tools on nix

ldd lists the libraries the executable uses

nm lists the references

Tuesday, January 24, 2012

view pf rules

To view the rules being used by pf

pfctl -g -s rules

from http://www.thedeepsky.com/howto/newbie_pf_guide.php