orz.conf

技術メモ✍

久しぶりにCentOSをインストール

CentOSが起動しなくなったのでCentOS7を久しぶりにインストールしました。

f:id:toshtone:20161204181530p:plain

NHMを使ってスナップショットをとっていて、VMWarePlayerから使わなくなった
仮想マシン(スナップショット)を削除したら上記の通り起動しなくなってしまい
ました。

たいしたモノが入ってないので諦めてさっさと再セットアップ。


f:id:toshtone:20161204182215p:plain

男は黙って最小限でセットアップです。


f:id:toshtone:20161204182349p:plain

ネットワーク設定しとかないと接続出来ません。
オンにしましょう。


f:id:toshtone:20161204182519p:plain

起動出来ました。

sshでも接続出来ます。

f:id:toshtone:20161204183518p:plain


vmware-toolsをインストールします。

f:id:toshtone:20161204183750p:plain

[root@localhost vmware-tools-distrib]# ./vmware-install.pl
-bash: ./vmware-install.pl: /usr/bin/perl: 誤ったインタプリタです: そのようなファイルやディレクトリはありません

と出力されます。
最小限だとperlが無さそうです。

perlをインストール

yum update
yum install -y install perl

再度インストールすると

Setup is unable to find the "ifconfig" program on your machine.  Please make
sure it is installed.  Do you want to specify the location of this program by
hand? [yes]

What is the location of the "ifconfig" program on your
machine?

と出力されます。
ifconfigが無くてip addrを使ってたけどvmware-toolsインストール時に
こんなの出てたかな。

vmwareのknowledge baseを見ると
RHEL7やCentOS7はnet-toolsをインストールしないといけないらしい。

ということでインストール

yum install -y net-tools

ここまでやるとvmware-toolsのインストールが完了しました。