目次~
#contents
**概要 [#ma4285d9]
CentOS 7に過去との互換性・利便性を改善することを目的とした初期設定例。~

**インストール [#bd774070]
インストールタイプは最小構成を選択。~


**初期設定 [#o9beb134]
-SELinuxの無効化
 vi /etc/selinux/config
 
 【変更前】 SELINUX=enforcing
 【変更後】 SELINUX=disabled

-Firewallの無効化
 systemctl stop firewalld
 systemctl disable firewalld

-再起動
 reboot

**互換性改善 [#sce6e1a3]
-ネットワーク関連コマンド(ifconfig、route、netstat、arp等)
 yum install -y net-tools

-DNS関連コマンド(dig、nslookup、host、nsupdate等)
 yum install -y bind-utils

-プロセス関連コマンド(killall、pstree等)
 yum install -y psmisc


**利便性改善 [#j7d13a6e]

-ネットワーク関連コマンド
 yum install -y wget
 yum install -y telnet
 yum install -y nmap

-systemctlへの入力補完機能追加
 yum install -y bash-completion
 wget https://github.com/terralinux/systemd/raw/master/src/systemctl-bash-completion.sh -O /etc/bash_completion.d/systemctl-bash-completion.sh

**VMware Tools [#l94a6fce]
VMware Toolsが必要とするコマンド(ifconfig等)が含まれていないため、open-vm-toolsを使用する様に警告される。~
前述の手順を済ませていれば純正のVMware Toolsをインストールすることができる。~

-手順~
vSphere ClientからVMwareToolsのインストールを選択。~
以下をroot権限で実行~
~
 mount /dev/cdrom /medeia
 cp /media/VMwareTools-9.10.0-2476743.tar.gz /usr/local/src
 cd /usr/local/src
 tar xfvz /media/VMwareTools-9.10.0-2476743.tar.gz
 ./vmware-tools-distrib/vmware-install.pl 
~
純正のVMwareToolsをインストールするか確認されるため、yesを入力する~
~
 open-vm-tools are available from the OS vendor and VMware recommends using 
 open-vm-tools. See http://kb.vmware.com/kb/2073803 for more information.
 Do you still want to proceed with this legacy installer? [yes]
~
以降は通常の手順と同じ。(Enterを20回入力する)~
~
vmware-tools.serviceが追加されるため、手動での起動・停止は以下の手順となる。~
-起動
 systemctl start vmware-tools.service 

-停止
 systemctl stop vmware-tools.service 

-稼働確認
 systemctl status vmware-tools.service
 
 ● vmware-tools.service - SYSV: Manages the services needed to run VMware software
   Loaded: loaded (/etc/rc.d/init.d/vmware-tools)
   Active: active (running) since 木 2016-07-21 11:38:10 JST; 18min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 632 ExecStart=/etc/rc.d/init.d/vmware-tools start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/vmware-tools.service
           ├─751 /usr/sbin/vmtoolsd
           └─786 /usr/lib/vmware-vgauth/VGAuthService -s
 
 7月 21 11:43:28 centos7-master systemd[1]: Starting SYSV: Manages the services needed to run VMware s...e...
 7月 21 11:43:28 centos7-master vmware-tools[632]: Checking acpi hot plug[  OK  ]
 7月 21 11:43:28 centos7-master vmware-tools[632]: Starting VMware Tools services in the virtual machine:
 7月 21 11:43:29 centos7-master vmware-tools[632]: Switching to guest configuration:[  OK  ]
 7月 21 11:43:29 centos7-master vmware-tools[632]: Guest operating system daemon:[  OK  ]
 7月 21 11:38:10 centos7-master vmware-tools[632]: VGAuthService:[  OK  ]
 7月 21 11:38:10 centos7-master systemd[1]: Started SYSV: Manages the services needed to run VMware software.
 Hint: Some lines were ellipsized, use -l to show in full.

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS