OS/Linux

젠투리눅스 설치하기 - VMware Tools 설치

xProgrammer 2009. 2. 12. 19:49
VMware에 젠투시스템을 설치했을 때 해준다. 실제 시스템에 설치했다면 필요없는 과정이다.

1.임시폴더 생성
# cd /etc/init.d                                                        :: 없을 경우 mkdir /etc/init.d
# for i in {0,1,2,3,4,5,6}; do mkdir rc$i.d; done

2.프로그램 마운트
VM menu > Install VMware Tools                                                             :: VMware Tools 가 CD-ROM에 삽입된다.
# mount /dev/hdc /mnt/cdrom                                                                :: CD-ROM을 마운트한다.
# cp /mnt/cdrom/VMwareTools-x.x.x-xxxxx.tar.gz /usr/local/src/VMwareTools.tar.gz
# cd /usr/local/src
# tar -xvzf VMwareTools.tar.gz
# cd vmware-tools-distrib

3.설치프로그램 시작
# ./vmware-install.pl               :: vmware-install 모드로 진입한다. 네트워크로 접속해서 실행하지 말라.

3.1.에러1
메시지
WARNING: Couldn't open directory /lib/modules/2.6.23: No such file or directory
FATAL: Could not open /lib/modules/2.6.23/modules.dep.temp for writing: No such file or directory
Unable to open kernel module dependency file
.Execution aborted.
해결책
# mkdir /lib/modules/
# mkdir /lib/modules/2.6.23


3.2.vmware-install 모드
3.2.1.프로그램이 설치될 위치
In which directory do you want to install the binary files?
[/usr/bin]

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

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

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

3.2.5.
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]
>> /usr/lib/vmware-tools 폴더가 없어서 프로그램에서 자동생성

3.2.6.
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]

3.2.7.
The installation of VMware Tools 6.0.2 build-59824 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]

Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: done
Trying to find a suitable vmmemctl module for your running kernel.

None of the pre-built vmmemctl modules vor VMware Tools is suitable for your
running kernel. Do you want this program to try to build the vmmemctl module
for your system (you need to have a C compiler installed on your system)?
[yes]

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

4.환경설정 시작
# cp /usr/local/src/vmware-tools-distrib/bin/vmware-config-tools.pl /usr/local/bin/vmware-config-tools.pl
# /usr/local/bin/vmware-config-tools.pl --compile

5.부팅 후 적용
# rc-update add vmware-tools boot

6.임시폴더 삭제
# cd /etc/init.d
# for i in {0,1,2,3,4,5,6}; do rm -rf rc$i.d; done