هاستینگ میهن وب سرور
« جهت سفارش تبلیغات اینجا کلیک کنید »
رتبه موضوع:
  • 0 رای - 0 میانگین
  • 1
  • 2
  • 3
  • 4
  • 5
آموزش نصب VMware Tools در سرور مجازی لینوکس
#1
Star 
نصب VMware Tools جهت بهبود کارکرد و هماهنگی سرور مجازی بسیار خوب است و نصب آن مفید می باشد.

ابتدا توجه داشته باشید قبل از اقدام به نصب VMware Tools باید سیستم عامل مورد نظر را روی سرور مجازی خود نصب کرده باشد!

نکته مهم: در تمام دستورات زیر هر جا VMwareTools-9.0.0-782409.tar.gz هست باید با نسخه مال خودتان تغییر دهید. برای بدست آوردن نسخه خودتان روشش در بین دستورهای زیر درج شده.
و اینکه هر دستور رو اجرا میکنید باید صبر کنید تا انتها انجام شود و اروری نیز ندهد.

برای شروع به SSH سرور مجازی خود متصل شوید.

اول سیستم عامل رو یه بررسی آپدیت انجام بدید با دستور زیر:
کد:
yum update

بعد:
کد:
yum install gcc kernel-devel
یا
yum install perl gcc make kernel-headers kernel-devel -y

در این قسمت بهتره اگه خودتون دسترسی کنسول دارید خودتون انجام بدید اگه نه به هاستینگ خودتان اطلاع دهید تا VMware Tools را مانت (mount) کنند براتون.
روش مانت کردن: در vmware روی سرور مجازی مورد نظر راست کلیک کنید و Guest و بعد Install/Upgrade VMware Tools را انتخاب کنید.
روش مانت کردن از طریق کنسول: روی تب VM برید و Guest و بعد Install/Upgrade VMware Tools را انتخاب کنید.

بعد:
کد:
mount /dev/cdrom /mnt
cd /mnt
ls
حالا فایل VMwareTools-<??????????>.tar.gz لیست میشود و میتوانید نسخه فایل خودتان را یادداشت کنید.

ادامه کار:
کد:
cd
cp /mnt/VMwareTools-9.0.0-782409.tar.gz /tmp/
cd /tmp
tar -zxvf VMwareTools-9.0.0-782409.tar.gz

کد:
cd vmware-tools-distrib

کد:
./vmware-install.pl
اگه ارور داد با دستور زیر نیز تست کنید
perl ./vmware-install.pl

حالا عملیات نصب آغاز می شود. حدودا مثل نمونه زیر است. تمام گزینه های پیشفرض را اینتر بزنید و برای yes حرف y و برای no حرف n را تایپ و بعد اینتر بزنید.
کد:
Creating a new VMware Tools installer database using the tar4 format.

Installing VMware Tools.

In which directory do you want to install the binary files?
[/usr/bin]

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d]

What is the directory that contains the init scripts?
[/etc/rc.d/init.d]

In which directory do you want to install the daemon files?
[/usr/sbin]

In which directory do you want to install the library files?
[/usr/lib/vmware-tools]

The path "/usr/lib/vmware-tools" does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes] y

In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]

The path "/usr/share/doc/vmware-tools" does not exist currently. This program
is going to create it, including needed parent directories. Is this what you
want? [yes] y

The installation of VMware Tools 9.0.0 build-782409 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".

Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
this program to invoke the command for you now? [yes] y

Initializing...


Making sure services for VMware Tools are stopped.



The VMware FileSystem Sync Driver (vmsync) allows external third-party backup
software that is integrated with vSphere to create backups of the virtual
machine. Do you wish to enable this feature? [no] n

Found a compatible pre-built module for vmci.  Installing it...


Found a compatible pre-built module for vsock.  Installing it...


The module vmxnet3 has already been installed on this system by another
installer or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=vmxnet3 to override.

The module pvscsi has already been installed on this system by another
installer or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=pvscsi to override.

The module vmmemctl has already been installed on this system by another
installer or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=vmmemctl to override.

The VMware Host-Guest Filesystem allows for shared folders between the host OS
and the guest OS in a Fusion or Workstation virtual environment.  Do you wish
to enable this feature? [no] n

Found a compatible pre-built module for vmxnet.  Installing it...


The vmblock enables dragging or copying files between host and guest in a
Fusion or Workstation virtual environment.  Do you wish to enable this feature?
[no] n

!!! [EXPERIMENTAL] !!!
VMware automatic kernel modules enables automatic building and installation of
VMware kernel modules at boot that are not already present.  By selecting yes,
you will be enabling this experimental feature.  You can always disable this
feature by re-running vmware-config-tools.pl.

Would you like to enable VMware automatic kernel modules?
[no] n

No X install found.

Creating a new initrd boot image for the kernel.
vmware-tools start/running
The configuration of VMware Tools 9.0.0 build-782409 for Linux for this running
kernel completed successfully.

You must restart your X session before any mouse or graphics changes take
effect.

You can now run VMware Tools by invoking "/usr/bin/vmware-toolbox-cmd" from the
command line.

To enable advanced X features (e.g., guest resolution fit, drag and drop, and
file and text copy/paste), you will need to do one (or more) of the following:
1. Manually start /usr/bin/vmware-user
2. Log out and log back into your desktop session; and,
3. Restart your X session.

Enjoy,

--the VMware team

Found VMware Tools CDROM mounted at /mnt. Ejecting device /dev/sr0 ...
/sbin/restorecon:  Warning no default label for /tmp/vmware-block-restore0/tmp_file


خب کار تمام است.


اگه خواستین فایل اضافی رو پاک کنید به ترتیب دستورات زیر را اجرا کنید
کد:
umount /mnt/
cd
rm /tmp/VMwareTools-9.0.0-782409.tar.gz
rm -rf /tmp/vmware-tools-distrib

! قبل از ارسال سوال ابتدا جستجو کنید، اگر تاپیک مرتبط وجود ندارد، در بخش مناسب یک تاپیک جدید ایجاد کنید !

* به سوالات عمومی در تلگرام یا پیام خصوصی پاسخی ارسال نخواهد شد! *
کاربرانی که از این پست تشکر کرده اند:
  • معین
پاسخ
#2
توجه: در دستور نصب اگر خواستین برای تنظیمات دونه دونه سوال نکنه و خودش همه رو با تنظیمات پیشفرض نصب کنه، به آخر دستوری که استفاده می کنید یک -d اضافه کنید.

مثل:
کد:
./vmware-install.pl -d
perl ./vmware-install.pl -d
sudo ./vmware-install.pl -d

! قبل از ارسال سوال ابتدا جستجو کنید، اگر تاپیک مرتبط وجود ندارد، در بخش مناسب یک تاپیک جدید ایجاد کنید !

* به سوالات عمومی در تلگرام یا پیام خصوصی پاسخی ارسال نخواهد شد! *
کاربرانی که از این پست تشکر کرده اند:
  • معین
پاسخ
#3
سلام

ممنون از آموزش خوبتون
پاسخ


موضوعات مشابه ...
موضوع نویسنده پاسخ بازدید آخرین ارسال
  سرور های مجازی یا vps morteza54 1 1,230 2022-01-12, 17:24
آخرین ارسال: Admin
Lightbulb آموزش حذف اخطار فعال بودن SSH و ESXi Shell در VMware Admin 0 4,482 2014-08-20, 21:25
آخرین ارسال: Admin

پرش به انجمن:


کاربران در حال بازدید این موضوع: 1 مهمان