Selasa, 11 Oktober 2011

Install VMware-Tools pada Virtual Machine Linux OS




Disini saya akan menjelaskan sedikit bagimana caranya melakukan instalasi vmwaretools pada VM OS linux yang ada di VMware. Dengan melakukan instalasi vmware tools ini pada virtual machine yang dibuat, maka kita dapat melakukan monitoring full, seperti IP, storage, performa pada VCenter VMware untuk virtual machine tersebut. Selain itu virtual machine tersebut juga akan terinstall driver-driver yang dibutuhkan untuk meningkatkan kinerja dari virtual machine nya sendiri.

Misalnya disini saya mempunyai virtual machine di VMware yang OS nya adalah linux. Pertama-tama tentunya kita harus sudah memiliki file "VMwareTools-8.3.7-341836.tar.gz" (versinya tergantung dari vmware yang digunakan). Untuk mendapatkan file tersebut tinggal klik kanan virtual machine yang ada pada VCenter dari vmwarenya, kemudian pilih "Guest" dan pilih "Install/Upgrade VMware Tools"

Setelah itu tinggal di mounting /dev/cdromnya :

# mkdir /media/cdrom
# mount /dev/cdrom /media/cdrom

Nah.. sekarang file itu sudah ada di /media/cdrom/

Cara-cara install nya sebagai berikut :

1. Copy dulu ke folder yang dinginkan, misal saya copy ke /root


# cp VMwareTools-8.3.7-341836.tar.gz /root/

2. Extract file nya.

# tar -xvzf VMwareTools-8.3.7-341836.tar.gz

3. Masuk ke folder hasil extract tadi.

# cd vmware-tools-distrib/

# ls -l
total 560
drwxr-xr-x 2 201 201 4096 Dec 24 2010 bin
drwxr-xr-x 2 201 201 4096 Dec 24 2010 doc
drwxr-xr-x 3 201 201 4096 Dec 24 2010 etc
-rw-r--r-- 1 201 201 545315 Dec 24 2010 FILES
lrwxrwxrwx 1 201 201 13 Oct 7 14:16 INSTALL -> ./doc/INSTALL
drwxr-xr-x 2 201 201 4096 Dec 24 2010 installer
drwxr-xr-x 17 201 201 4096 Dec 24 2010 lib
lrwxrwxrwx 1 201 201 31 Oct 7 14:16 vmware-install.pl -> ./bin/vmware-uninstall-tools.pl

4. Install file installernya. (Jika ada pilihan-pilihan pada saat install, maka tinggal tekan enter-enter saja untuk default instalasinya)

# ./vmware-install.pl

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]

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]

The installation of VMware Tools 8.3.7 build-341836 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]

Initializing...


Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: [ OK ]
Virtual Printing daemon: [ OK ]
Unmounting HGFS shares: [ OK ]
Guest filesystem driver: [ OK ]


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


Could not create the '/mnt/hgfs' directory.
The filesystem driver (vmhgfs module) is used only for the shared folder
feature. The rest of the software provided by VMware Tools is designed to work
independently of this feature.

If you wish to have the shared folders feature, you can install the driver by
running vmware-config-tools.pl again after making sure that gcc, binutils, make
and the kernel sources for your running kernel are installed on your machine.
These packages are available on your distribution's installation CD.
[ Press Enter key to continue ]

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


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


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


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


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


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




Detected Xorg X server version 7.1.


Host resolution detected as "0 x 0".


Please choose one of the following display sizes that X will start with:

[1] "320x200"
[2] "320x240"
[3] "400x300"
[4] "512x384"
[5] "640x400"
[6] "640x480"
[7] "720x480"
[8] "800x480"
[9] "854x480"
[10] "720x576"
[11] "800x600"
[12] "1024x768"
[13] "1280x720"
[14] "1280x768"
[15] "1152x864"
[16] "1280x800"
[17] "1366x768"
[18] "1280x960"
[19] "1440x900"
[20] "1280x1024"
[21] "1400x1050"
[22] "1680x1050"
[23] "1600x1200"
[24] "1920x1080"
[25] "1920x1200"
[26] "1920x1440"
[27] "2048x1536"
[28] "2560x1600"
[29] "2560x1920"
Please enter a number between 1 and 29:

[3]


X Window System Version 7.1.1
Release Date: 12 May 2006
X Protocol Version 11, Revision 0, Release 7.1.1
Build Operating System: Linux 2.6.18-164.11.1.el5 x86_64 Red Hat, Inc.
Current Operating System: Linux im2mailns01.indosat.net.id 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64
Build Date: 06 March 2010
Build ID: xorg-x11-server 1.1.1-48.76.el5
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(++) Log file: "/tmp/vmware-config0/XF86ConfigLog.19594", Time: Fri Oct 7 14:18:36 2011
(++) Using config file: "/tmp/vmware-config0/XF86Config.19594"
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning: Multiple symbols for level 1/group 1 on key
> Using XF86Sleep, ignoring XF86Standby
> Warning: Symbol map for key redefined
> Using last definition for conflicting fields
Errors from xkbcomp are not fatal to the X server

X is running fine with the new config file.

FreeFontPath: FPE "unix/:7100" refcount is 2, should be 1; fixing.
Creating a new initrd boot image for the kernel.
Checking acpi hot plug [ OK ]
Starting VMware Tools services in the virtual machine:
Switching to guest configuration: [ OK ]
Paravirtual SCSI module: [ OK ]
Guest memory manager: [ OK ]
VM communication interface: [ OK ]
VM communication interface socket family: [ OK ]
Guest operating system daemon: [ OK ]
Virtual Printing daemon: [ OK ]

The configuration of VMware Tools 8.3.7 build-341836 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 the following command:
"/usr/bin/vmware-toolbox" during an X server session.

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/cdrom ...

5. Jika sudah muncul tampilan seperti diatas maka instalasi sudah selesai. Bisa dicek juga di VCenternya untuk virtual machine tersebut saat ini seharusnya sudah bisa dimonitor IP addressnya.


Dony Ramansyah
site : http://dony-ramansyah.bravehost.com
blog : dony-ramansyah.blogspot.com
email : dony.ramansyah[at]gmail.com
Registered linux user : ID 400171

Tidak ada komentar: