-
February 28th, 2010, 18:00
#1
عضو جدید
Problem glibc VMware Server 2 on CentOS 5.4
Step 1: Go to /etc/yum.repos.d and copy the file CentOS-Base.repo to CentOS53-Base.repo
Step 2: In CentOS53-Base.repo, rename all the packages to reflect the 5.3 version. So, change:
[base] --> [base53]
[updates] --> [updates53]
[addons] --> [addons53]
[extras] --> [extras53]
[centosplus] --> [centosplus53]
[contrib] --> [contrib53]
Step 3: In CentOS53-Base.repo, replace all instances of release=$releasever with release=5.3
Step 4: Now, downgrade the glibc and glibc-common libraries by running the following commands:
yum downgrade glibc glibc-common
Step 5: To avoid any problems with future upgrades/updates, it would be best to exclude them from the list of available updates on yum. Add the following to your /etc/yum.conf file:
exclude=glibc glibc-common glibc-devel glibc-headers glibc-utils nscd
Step 6: Reboot the server, and now re-run /usr/bin/vmware-config.pl to reconfigure with downgraded glibc libraries.
/usr/bin/vmware-config.pl
Step 7: (Optional) Run the following command to make sure future upgrades/updates will not download the updated glibc* libraries.
yum list glibc*
Now, if you have other applications installed on CentOS, and you don’t want to worry about any issues with future use of glibc on your server, please follow the next method to manually link VMware hostd process to use the older glibc libraries.
SOLUTION METHOD 2:
(Make sure you are logged in as root for these steps)
Step 1: Install the latest 2.0.2 VMware Server package and run the configuration. It will crash, but just ignore this for now.
Step 2: Run the following command, and make note of the response.
arch
Step 3: Run the following commands, and replace any instance of {ARCH} with the result of Step 2:
mkdir ~/vmwareglibc
cd ~/vmwareglibc
wget http://mirror.centos.org/centos/5.3/os/{ARCH}/CentOS/glibc-2.5-34.{ARCH}.rpm
rpm2cpio glibc-2.5-34.{ARCH}.rpm | cpio -ivd
mkdir /usr/lib/vmware/lib/libc.so.6
mv lib64/libc-2.5.so /usr/lib/vmware/lib/libc.so.6/libc.so.6
Step 4: Open the VMware hostd process script for editing.
vim /usr/sbin/vmware-hostd
Step 5: At line 372, before the program is called, insert two empty lines and add the following:
export LD_LIBRARY_PATH=/usr/lib/vmware/lib/libc.so.6:$LD_LIBRARY_PATH
Before Example:
if [ ! "@@VMWARE_NO_MALLOC_CHECK@@" = 1 ]; then
export MALLOC_CHECK_=2
fi
eval exec "$DEBUG_CMD" "$binary" "$@"
After Example:
if [ ! "@@VMWARE_NO_MALLOC_CHECK@@" = 1 ]; then
export MALLOC_CHECK_=2
fi
export LD_LIBRARY_PATH=/usr/lib/vmware/lib/libc.so.6:$LD_LIBRARY_PATH
eval exec "$DEBUG_CMD" "$binary" "$@"
NOTE: In Step 3, the wget command may in the future be this as 5.3 repositories are taken off of the main CentOS Mirrors:
wget http://vault.centos.org/5.3/os/{ARCH}/CentOS/glibc-2.5-34.{ARCH}.rpm
Either method you use should get you the desired end result: VMware Server 2 running on CentOS 5.4
Be sure to comment if this helped you. Thanks.
-------------------------------------------------------------
Mohammad Rasoul Kazemi
Manager & Communications Officer| CEO
ParsDade Advanced Technology Corporation
-
تعداد تشکر ها ازParsDade به دلیل پست مفید
-
February 28th, 2010 18:00
# ADS
-
February 28th, 2010, 19:17
#2
عضو انجمن
پاسخ : Problem glibc VMware Server 2 on CentOS 5.4
من برای اینکه به پایداری سیستم عامل سرور لطمه نخوره از Solution 2 استفاده کرده بودم که جواب داد:
-
-
July 18th, 2010, 09:26
#3
پاسخ : Problem glibc VMware Server 2 on CentOS 5.4
در step5 سلوشن دوم فایل ذخسره نمیشه چکار باید کرد؟؟
-
-
July 19th, 2010, 04:02
#4
عضو انجمن
پاسخ : Problem glibc VMware Server 2 on CentOS 5.4

نوشته اصلی توسط
onlyboy13
در step5 سلوشن دوم فایل ذخسره نمیشه چکار باید کرد؟؟
دوست عزیز شما باید دسترسی این فایل را از 555 به دسترسی قابل نوشتن تغییر بدید(در حالت عادی 555 است)که بهتر است به 755 تغییر کند
-