본문 바로가기

Linux(OS)

Network설정과 Display설정(VMware Tool설치)

자 설치 다음으로 네트워크 설정을 해보겟습니다.
ip설정하고 외부로 핑이 나가는지 인터넷을 연결해야 겟죠~?
그럼 설정해봅시다.

oracle계정으로 들어갑니다. 암호는 아시겠죠?
oracle에서 제공하는 리눅스는 oracle을 설치하기 위한것이므로
기본적으로 설정이 되어있습니다 시스템 파라미터라던가
기본적으로 oracle유저가 있습니다. oracle/oracle로 로그인 하시면 됩니다.

바탕화면입니다. 4.x버젼과 약간의 차이가 있긴합니다. ㅎㅎㅎ

마우스 우클릭하고 open terminal 클릭합니다.

그럼 터미날 창이 열립니다.

보이는 화면과 같이 명령어를 입력하고 엔터를 누르면 창이 하나 뜹니다,

Device에서 active라고 선택되어있죠?
두번 클릭해줍니다, 그럼 창이 하나 더 뜹니다.

아이피 설정 창입니다.
NAT의 아이피 대역 192.168.200.3~254까지 암거나 정합니다.
전 100번으로 갑니다.

DNS항목을 클릭합니다.
사진과 같이 입력하고
나머지는 비워 둡시다.

설정이 끝났으므로 File--->두번째꺼 클릭합니다.
그럼 창이 뜨는데 변경 사항 저장할거냐고 물어봅니다.
Yes눌러줍니다.

그리고 핑나가는지 확인합시다.
안나가시는분들 있을겁니다.
VMware를 설치하고 나면 VMnet1과 VMnet8번의 랜카드가 보입니다.
네트워크의 속성에 있어요. 거기서 VMnet8의 아이피와 넷마스크를 수정해줍니다.
192.168.200.1/255.255.255.0입니다.

NAT설정 들어갑니다.
Edit에서 Virtual Network Setting를 클릭합니다.

창이 하나 뜹니다.
VMnet8번의 Subnet IP를 그림과 같이 수정합니다. Netmask도 수정해줍니다.
그럼 설정이 완료됩니다.
그리고 다시 핑테스트를 해봅시다.
자 다음으로 VMware Tool설치 입니다.

위 그림에서는 reinstall~~~로 나오지만 여러분들은 처음 설치하는것이기에
install~~로 나옵니다. 눌러주면 바탕화면에 시디모양의 아이콘이 생깁니다
그럼 터미널을 열고 시작하겠습니다. (환경에 따라 파일명이 틀릴수도 있습니다.)
[root@ocp ~]# cd /media/VMware\ Tools/ -- 이동합니다. 어지간하면 경로는 같을걸로 추측됩니다.(;;;)

[root@ocp VMware Tools]# cp VMwareTools-8.1.4-227600.tar.gz /home/oracle/ -- 파일을 복사합니다. 

[root@ocp VMware Tools]# cd /home/oracle/ -- 복사했으니 이동해야겠죠?

[root@ocp oracle]# ls -- 파일이 제대로 복사됬는지 확인하시고~

VMwareTools-8.1.4-227600.tar.gz

[root@ocp oracle]# tar -xvzf VMwareTools-8.1.4-227600.tar.gz -- 압축을 해제 합니다.

[root@ocp home]# ls -- 해제가 잘되었는가?

oracle  VMwareTools-8.1.4-227600.tar.gz  vmware-tools-distrib

[root@ocp home]# cd vmware-tools-distrib/ -- 새로 생긴 폴더로 이동합시다.

[root@ocp vmware-tools-distrib]# ls -- 어떤 파일이 있는지 확인~

bin  doc  etc  FILES  INSTALL  installer  lib  vmware-install.pl

[root@ocp vmware-tools-distrib]# ./vmware-install.pl -- 이 파일이 설치를 시작하는 파일입니다.

It appears that you are running a Xen kernel.  Running this software on Xen
kernels has not been tested and is unsupported.

Would you like to continue (NOT RECOMMENDED)? [no] yes

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] 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.1.4 build-227600 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  ]

 

Before you can compile modules, you need to have the following installed...

make
gcc
kernel headers of the running kernel


Searching for GCC...
Detected GCC binary at "/usr/bin/gcc".
The path "/usr/bin/gcc" appears to be a valid path to the gcc binary.
Would you like to change it? [no] no

Searching for a valid kernel header path...
The path "" is not valid.
Would you like to change it? [yes] yes

What is the location of the directory of C header files that match your running
kernel?

The path "" is not valid.
Would you like to change it? [yes] no


WARNING: This program cannot compile any modules for the following reason(s)...

- This program could not find a valid path to the kernel headers of the running
kernel.  Please ensure that the header files for the running kernel are
installed on this sytem.

[ Press Enter key to continue ]


The memory manager driver (vmmemctl module) is used by VMware host software to
efficiently reclaim memory from a virtual machine.
If the driver is not available, VMware host software may instead need to swap
guest memory to disk, which may reduce performance.
The rest of the software provided by VMware Tools is designed to work
independently of this feature.
If you want the memory management 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 ]


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 ]


The fast network device driver (vmxnet module) is used only for our fast
networking interface. The rest of the software provided by VMware Tools is
designed to work independently of this feature.
If you wish to have the fast network driver enabled, 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 ]


The vmblock module enables dragging or copying files from within a host and
dropping or pasting them onto your guest (host to guest drag and drop and file
copy/paste).  The rest of the software provided by VMware Tools is designed to
work independently of this feature (including guest to host drag and drop and
file copy/paste).

If you would like the host to guest drag and drop and file copy/paste features,
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 ]

 

[EXPERIMENTAL] The VMware FileSystem Sync Driver (vmsync) is a new feature that
creates backups of virtual machines. Please refer to the VMware Knowledge Base
for more details on this capability. Do you wish to enable this feature?
[no]


The communication service is used in addition to the standard communication
between the guest and the host.  The rest of the software provided by VMware
Tools is designed to work independently of this feature.
If you wish to have the VMCI 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 ]


The VM communication interface socket family is used in conjunction with the VM
communication interface to provide a new communication path among guests and
host.  The rest of this software provided by VMware Tools is designed to work
independently of this feature.  If you wish to have the VSOCK 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 the Enter key to continue.]


The driver for the VMXNET 3 virtual network card is used only for our advanced
networking interface. The rest of the software provided by VMware Tools is
designed to work independently of this feature.
If you wish to have the advanced network driver enabled, 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 ]


Unable to compile the pvscsi module.  If you wish to have the pvscsi 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 ]

 

-- 계속해서 엔터를 입력해주면 여기까지 오게됩니다.

-- 마지막이네요.

 

Detected X.org version 7.1.


Host resolution detected as "1280 x 800".


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"
Please enter a number between 1 and 12:

[12]

 

-- 최적의 해상도를 선택하면됩니다.


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.20-1.3002.fc6xen x86_64 Oracle Corp.
Current Operating System: Linux ocp.oracle.com 2.6.18-194.el5xen #1 SMP Mon Mar 29 22:22:00 EDT 2010 x86_64
Build Date: 31 March 2010
Build ID: xorg-x11-server 1.1.1-48.76.0.1.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.4062", Time: Fri May 28 03:53:56 2010
(++) Using config file: "/tmp/vmware-config0/XF86Config.4062"
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Multiple symbols for level 1/group 1 on key <I5F>
>                   Using XF86Sleep, ignoring XF86Standby
> Warning:          Symbol map for key <I5F> 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  ]
   File system sync driver:                                [  OK  ]
   Guest operating system daemon:                          [  OK  ]
   Virtual Printing daemon:                                [  OK  ]

The configuration of VMware Tools 8.1.4 build-227600 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 /media/VMware Tools. Ejecting device
/dev/hdc ...
[root@ocp vmware-tools-distrib]# cd

 

여기까지오면 vmware tool이 설치가 된겁니다.

그러면 윈도우와 리눅스간의 파일공유가 가능해진거죠

윈도우의 가상머신안에 폴더를 하나 만들었죠?

그 폴더안에 파일을 넣어두면 리눅스 안에서 그 파일을 볼수 있습니다.

리눅스는 어디로 가냐

cd /mnt/hgfs/shared

여기로 가면 됩니다.

일단 복사한 파일과 압축 해제한 폴더를 삭제합시다

용량이 적으니 삭제를~~

[root@ocp oracle]# rm -rf VMwareTools-8.1.4-227600.tar.gz vmware-tools-distrib/ -- 엔터를 누르면 삭제됩니다.

 앞서 언급했듯이 위 방법으로도 윈도우와의 파일공유가 가능하나 원격 프로그램인 XME를 사용하면 편리합니다.
30일 체험판이므로 정품 구매를 권장합니다. 이 프로그램은 자체 FTP가 있어서 파일 업로드가 편리합니다.