LINK


(無償)
logo
世界中で使われるISO標準オフィスソフト(MSオフィス互換)
The Document Foundation Wiki

人気の投稿(1ヶ月間)

Ad

Ad

ラベル ESXi 5 の投稿を表示しています。 すべての投稿を表示
ラベル ESXi 5 の投稿を表示しています。 すべての投稿を表示

2012年4月25日水曜日

【VMware vSphere Hypervisor 5.0.0】CentOS6.2 64bit版にVMware Tools(ESXi5.0.0 515841)をインストールする【Linux CentOS6.2 64bit版】

Esxi 5.0.0のゲストCentOS 6.2 64bit版に、VMware Tools(8.6.0 build-515842)をインストールしたときのメモ


(注意)VMwareTools導入のゲストOSLinuxで、VNC-SERVERを利用したい場合

CentOS 6でyumを使用してインストールされるデフォルトのvnc-server(tiger-vnc)を利用している場合、vnc-serverが起動しなくなる不具合が発生した。
tightvnc-server 1.3.9でも不具合が生じた。(VNCクライアントに黒い画面が表示され待機状態のまま変わらなかった。)
(参照)
VMWare 5 Centos 6 VMWareTools Kill VNC 
< http://communities.vmware.com/message/1878825 > 2012年8月16日
★対策として、Turbo VNCを代わりに使用した。


用いたCentOS 6.2 64bit版は、インストーラーでDesktopタイプを選択したものである。

■VMware Tools DVDイメージをマウントした

vSphere Clientから、対象とする仮想マシンを起動し「仮想マシンコンソール」を開いた。
システムが起動した後、この「仮想マシンコンソール」を使ってVMware Tools DVDイメージをマウントした。

GNOMEにログインしておき、

「仮想マシン(V)」→「ゲスト(G)」→「VMware Toolsのインストール/アップグレード(W)」を開いた。

GNOMEのデスクトップ上に、DVDがマウントされたことを示すアイコンが現れた。

次に示すディレクトリに自動的にマウントされていた。


■マウントされたDVDイメージからtar.gzファイルを取り出し、適当な作業ディレクトリにコピーした
[root@localhost ~]# cd /media/
[root@localhost media]# ls
VMware Tools
[root@localhost media]# cd VMware\ Tools/
[root@localhost VMware Tools]# ls
VMwareTools-8.6.0-515842.tar.gz  manifest.txt


■tar.gzファイルを解凍した
[root@localhost software]# ls
VMwareTools-8.6.0-515842.tar.gz

[root@localhost software]# tar xvzf VMwareTools-8.6.0-515842.tar.gz
[root@localhost software]# ls
VMwareTools-8.6.0-515842.tar.gz  vmware-tools-distrib

[root@localhost software]# cd vmware-tools-distrib/
[root@localhost vmware-tools-distrib]# ls
FILES  INSTALL  bin  doc  etc  installer  lib  vmware-install.pl




■スクリプトを実行し、質問に答えた

エンターキーを押すと表示されているデフォルト値が選択されるようだ。
以下すべて、提案されたデフォルト値を適用した。

[root@localhost vmware-tools-distrib]# ./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.6.0 build-515842 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...


Making sure services for VMware Tools are stopped.

[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]

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


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


The module vmxnet3 has already been installed on this system by another
installer or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=vmxnet3 to override.

The module pvscsi has already been installed on this system by another
installer or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=pvscsi to override.

The module vmmemctl has already been installed on this system by another
installer or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=vmmemctl to override.

The VMware Host-Guest Filesystem allows for shared folders between the host OS
and the guest OS in a Fusion or Workstation virtual environment.  Do you wish
to enable this feature? [no]

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


The vmblock enables dragging or copying files between host and guest in a
Fusion or Workstation virtual environment.  Do you wish to enable this feature?
[no]


Disabling timer-based audio scheduling in pulseaudio.


Detected X server version 1.10.4


Distribution provided drivers for Xorg X server are used.

Skipping X configuration because X drivers are not included.

Creating a new initrd boot image for the kernel.
vmware-tools start/running
The configuration of VMware Tools 8.6.0 build-515842 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 "/usr/bin/vmware-toolbox-cmd" from the
command line or by invoking "/usr/bin/vmware-toolbox" from the command line
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/sr0 ...
[root@localhost vmware-tools-distrib]#

インストール作業はこれで終わり。


vSphere Clientで対象仮想マシンの「サマリ」タブ開くと、次のようになっていた。
VMware Tools:  実行(現在)



◆インストールしたVMware Toolsをアンインストールする方法

アンインストールするには、次のコマンドを実行するだけだった。(コマンドにはパスが通っているようだった。)
一部、処理に時間がかかるところがあったが、プロンプトに復帰するまで待つ必要がある。

[root@localhost vmware-tools-distrib]# vmware-uninstall-tools.pl
Uninstalling the tar installation of VMware Tools.

Stopping services for VMware Tools

initctl: Unknown instance:
This program previously created the file
/usr/lib/vmware-tools/lib64/libconf/etc/pango/pango.modules, and was about to
remove it.  Somebody else apparently did it already.

File /etc/vmware-tools/vmware-user.desktop is backed up to
/etc/vmware-tools/vmware-user.desktop.old.1.

File /usr/lib/vmware-tools/lib64/libconf/etc/gtk-2.0/gtk.immodules is backed up
to /usr/lib/vmware-tools/lib64/libconf/etc/gtk-2.0/gtk.immodules.old.1.

File /usr/lib/vmware-tools/lib64/libconf/etc/fonts/fonts.conf is backed up to
/usr/lib/vmware-tools/lib64/libconf/etc/fonts/fonts.conf.old.1.

File /usr/lib/vmware-tools/lib64/libconf/etc/gtk-2.0/gdk-pixbuf.loaders is
backed up to
/usr/lib/vmware-tools/lib64/libconf/etc/gtk-2.0/gdk-pixbuf.loaders.old.1.

This program previously created the file
/usr/lib/vmware-tools/libconf/etc/gtk-2.0/gdk-pixbuf.loaders, and was about to
remove it.  Somebody else apparently did it already.

This program previously created the file
/usr/lib/vmware-tools/lib64/libconf/etc/pango/pangorc, and was about to remove
it.  Somebody else apparently did it already.

This program previously created the file
/usr/lib/vmware-tools/libconf/etc/gtk-2.0/gtk.immodules, and was about to
remove it.  Somebody else apparently did it already.

This program previously created the file
/usr/lib/vmware-tools/lib64/libconf/etc/pango/pangox.aliases, and was about to
remove it.  Somebody else apparently did it already.

File /etc/dracut.conf is backed up to /etc/dracut.conf.old.1.

File /etc/pulse/default.pa is backed up to /etc/pulse/default.pa.old.1.


The removal of VMware Tools 8.6.0 build-425873 for Linux completed
successfully. 
Thank you for having tried this software.

2012年3月25日日曜日

【VMware vSphere Hypervisor 5.0.0】ホストにディスクを追加し新しいデータとストアを作成する【ESXi 5】

ESXi 5ホストに、新しいデータストア用のディスクを後付し、データストアを作成したときのメモ


新しくディスク接続したESXiホストに対して、vSphere Clientを用いて、データストアを作成できる。
ただし、追加したディスクに既にパーティションが存在して、新規にパーティションが作成できない場合、エラーが発生した。

そのため、先にパーティション削除の操作が必要になった。



<作業手順>
(注意)以下の手順で今回追加したディスクのパーティションはすべて消去している。


1、ESXi5ホストをシャットダウンし電源を切り、ディスクをSATAポートに接続し再度ホストを起動した

2、追加したディスクにすでにパーティションが存在している場合、次の手順で全て削除した

○新しく接続したディスクのデバイス名を確認した
~ # cd /dev/disks/
/dev/disks # ls
t10.ATA_____C3002DCTFDDAC064MAG______________________00000000104302FE1AB1
t10.ATA_____C3002DCTFDDAC064MAG______________________00000000104302FE1AB1:1
t10.ATA_____C3002DCTFDDAC064MAG______________________00000000104302FE1AB1:2
t10.ATA_____C3002DCTFDDAC064MAG______________________00000000104302FE1AB1:3
t10.ATA_____C3002DCTFDDAC064MAG______________________00000000104302FE1AB1:5
t10.ATA_____C3002DCTFDDAC064MAG______________________00000000104302FE1AB1:6
t10.ATA_____C3002DCTFDDAC064MAG______________________00000000104302FE1AB1:7
t10.ATA_____C3002DCTFDDAC064MAG______________________00000000104302FE1AB1:8
t10.ATA_____ST1000DM0032D9YN162__________________________________Z1D08GKF  ←対象のディスクを型番から確認した
t10.ATA_____ST1000DM0032D9YN162__________________________________Z1D08GKF:1
t10.ATA_____ST1000DM0032D9YN162__________________________________Z1D08GKF:2
vml.01000000002020202020202020202020205a31443038474b46535431303030
vml.01000000002020202020202020202020205a31443038474b46535431303030:1
vml.01000000002020202020202020202020205a31443038474b46535431303030:2
vml.01000000003030303030303030313034333032464531414231433330302d43
vml.01000000003030303030303030313034333032464531414231433330302d43:1
vml.01000000003030303030303030313034333032464531414231433330302d43:2
vml.01000000003030303030303030313034333032464531414231433330302d43:3
vml.01000000003030303030303030313034333032464531414231433330302d43:5
vml.01000000003030303030303030313034333032464531414231433330302d43:6
vml.01000000003030303030303030313034333032464531414231433330302d43:7
vml.01000000003030303030303030313034333032464531414231433330302d43:8

○新しいディスクに対してfdiskコマンドを起動する
/dev/disks # fdisk t10.ATA_____ST1000DM0032D9YN162__________________________________Z1D08GKF

○既存のパーティションテーブルの確認
Command (m for help): p
Disk t10.ATA_____ST1000DM0032D9YN162__________________________________Z1D08GKF: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

                                                                     Device Boot      Start         End      Blocks  Id System
t10.ATA_____ST1000DM0032D9YN162__________________________________Z1D08GKFp1   *         1        64    512000   83  Linux
Partition 1 does not end on cylinder boundary
t10.ATA_____ST1000DM0032D9YN162__________________________________Z1D08GKFp2            64    267350 2146970624   8e  Linux LVM
パーティションが2つ存在することが分かった。


○一つ目のパーティションを削除した (dコマンドを用いた)
Command (m for help): d
Partition number (1-4): 1

○削除の確認を行った
Command (m for help): p

Disk t10.ATA_____ST1000DM0032D9YN162__________________________________Z1D08GKF: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

                                                                     Device Boot      Start         End      Blocks  Id System
t10.ATA_____ST1000DM0032D9YN162__________________________________Z1D08GKFp2            64    267350 2146970624   8e  Linux LVM


○残り(2つ目)のパーティションの削除を行った
Command (m for help): d
Selected partition 2


○確認を行った
Command (m for help): p

Disk t10.ATA_____ST1000DM0032D9YN162__________________________________Z1D08GKF: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

                                                                     Device Boot      Start         End      Blocks  Id System


○今回の変更をこのディスクに書き込んだ
Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table
/dev/disks #



3、vSphere Clientを用いて、新しいディスクにデータストアを作成した

「構成」 →「ストレージの追加」 →「ディスク/LUN」 →「次へ」 と進み、
表示される使用可能なディスク一覧から、対象のディスクを選択する。

つづいて質問に答えていき、フォーマットの方法などを選択すれば、自動的にデータストアが作成された。


2012年3月1日木曜日

【VMware vSphere Hypervisor 5.0.0】パッチをあてるための手順【ESXi 5】

ESXi5(無償ライセンス)に対してパッチを行う手順



■VMwareのサイトから対応するパッチをダウンロードする

http://www.vmware.com/patchmgr/download.portal で条件(ESXi 5.0.0)を入力し検索した。
結果ページから最新のパッチ(2012年3月1日現在ではESXi500-201112001が最新だった )を選択してダウンロードを行った。


■ダウンロードしたパッチ(ZIPファイル)をデータストアにアップロードする

vSphere Clientのデータストアブラウザから行った。
以下、更新用ファイルは、/vmfs/volumes/datastore1/ESXi500-201112001.zip に存在しているものとする。



■SSHでESXi5ホストに入って、次の手順でアップデート作業を行う

仮想マシンは全て終了させた

1、メンテナンスモードに切り替える
# vim-cmd hostsvc/maintenance_mode_enter
'vim.Task:haTask-ha-host-vim.HostSystem.enterMaintenanceMode-240760841'


2、アップデートを行う
# esxcli software vib install --maintenance-mode --depot /vmfs/volumes/datastore1/ESXi500-201112001.zip

Installation Result
   Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.
   Reboot Required: true
   VIBs Installed: VMware_bootbank_esx-base_5.0.0-0.7.515841, VMware_bootbank_misc-drivers_5.0.0-0.7.515841, VMware_bootbank_net-be2net_4.0.88.0-1vmw.500.0.7.515841, VMware_bootbank_net-e1000_8.0.3.1-2vmw.500.0.7.515841, VMware_bootbank_net-e1000e_1.1.2-3vmw.500.0.7.515841, VMware_locker_tools-light_5.0.0-0.7.515841
   VIBs Removed: VMware_bootbank_esx-base_5.0.0-0.0.469512, VMware_bootbank_misc-drivers_5.0.0-0.0.469512, VMware_bootbank_net-be2net_4.0.88.0-1vmw.500.0.0.469512, VMware_bootbank_net-e1000_8.0.3.1-2vmw.500.0.0.469512, VMware_bootbank_net-e1000e_1.1.2-3vmw.500.0.0.469512, VMware_locker_tools-light_5.0.0-0.0.469512
   VIBs Skipped: VMware_bootbank_ata-pata-amd_0.3.10-3vmw.500.0.0.469512, VMware_bootbank_ata-pata-atiixp_0.4.6-3vmw.500.0.0.469512, VMware_bootbank_ata-pata-cmd64x_0.2.5-3vmw.500.0.0.469512, VMware_bootbank_ata-pata-hpt3x2n_0.3.4-3vmw.500.0.0.469512, VMware_bootbank_ata-pata-pdc2027x_1.0-3vmw.500.0.0.469512, VMware_bootbank_ata-pata-serverworks_0.4.3-3vmw.500.0.0.469512, VMware_bootbank_ata-pata-sil680_0.4.8-3vmw.500.0.0.469512, VMware_bootbank_ata-pata-via_0.3.3-2vmw.500.0.0.469512, VMware_bootbank_block-cciss_3.6.14-10vmw.500.0.0.469512, VMware_bootbank_ehci-ehci-hcd_1.0-3vmw.500.0.0.469512, VMware_bootbank_esx-tboot_5.0.0-0.0.469512, VMware_bootbank_ima-qla4xxx_2.01.07-1vmw.500.0.0.469512, VMware_bootbank_ipmi-ipmi-devintf_39.1-4vmw.500.0.0.469512, VMware_bootbank_ipmi-ipmi-msghandler_39.1-4vmw.500.0.0.469512, VMware_bootbank_ipmi-ipmi-si-drv_39.1-4vmw.500.0.0.469512, VMware_bootbank_misc-cnic-register_1.1-1vmw.500.0.0.469512, VMware_bootbank_net-bnx2_2.0.15g.v50.11-5vmw.500.0.0.469512, VMware_bootbank_net-bnx2x_1.61.15.v50.1-1vmw.500.0.0.469512, VMware_bootbank_net-cnic_1.10.2j.v50.7-2vmw.500.0.0.469512, VMware_bootbank_net-enic_1.4.2.15a-1vmw.500.0.0.469512, VMware_bootbank_net-forcedeth_0.61-2vmw.500.0.0.469512, VMware_bootbank_net-igb_2.1.11.1-3vmw.500.0.0.469512, VMware_bootbank_net-ixgbe_2.0.84.8.2-10vmw.500.0.0.469512, VMware_bootbank_net-nx-nic_4.0.557-3vmw.500.0.0.469512, VMware_bootbank_net-r8168_8.013.00-3vmw.500.0.0.469512, VMware_bootbank_net-r8169_6.011.00-2vmw.500.0.0.469512, VMware_bootbank_net-s2io_2.1.4.13427-3vmw.500.0.0.469512, VMware_bootbank_net-sky2_1.20-2vmw.500.0.0.469512, VMware_bootbank_net-tg3_3.110h.v50.4-4vmw.500.0.0.469512, VMware_bootbank_ohci-usb-ohci_1.0-3vmw.500.0.0.469512, VMware_bootbank_sata-ahci_3.0-6vmw.500.0.0.469512, VMware_bootbank_sata-ata-piix_2.12-4vmw.500.0.0.469512, VMware_bootbank_sata-sata-nv_3.5-3vmw.500.0.0.469512, VMware_bootbank_sata-sata-promise_2.12-3vmw.500.0.0.469512, VMware_bootbank_sata-sata-sil_2.3-3vmw.500.0.0.469512, VMware_bootbank_sata-sata-svw_2.3-3vmw.500.0.0.469512, VMware_bootbank_scsi-aacraid_1.1.5.1-9vmw.500.0.0.469512, VMware_bootbank_scsi-adp94xx_1.0.8.12-6vmw.500.0.0.469512, VMware_bootbank_scsi-aic79xx_3.1-5vmw.500.0.0.469512, VMware_bootbank_scsi-bnx2i_1.9.1d.v50.1-3vmw.500.0.0.469512, VMware_bootbank_scsi-fnic_1.5.0.3-1vmw.500.0.0.469512, VMware_bootbank_scsi-hpsa_5.0.0-17vmw.500.0.0.469512, VMware_bootbank_scsi-ips_7.12.05-4vmw.500.0.0.469512, VMware_bootbank_scsi-lpfc820_8.2.2.1-18vmw.500.0.0.469512, VMware_bootbank_scsi-megaraid-mbox_2.20.5.1-6vmw.500.0.0.469512, VMware_bootbank_scsi-megaraid-sas_4.32-1vmw.500.0.0.469512, VMware_bootbank_scsi-megaraid2_2.00.4-9vmw.500.0.0.469512, VMware_bootbank_scsi-mpt2sas_06.00.00.00-5vmw.500.0.0.469512, VMware_bootbank_scsi-mptsas_4.23.01.00-5vmw.500.0.0.469512, VMware_bootbank_scsi-mptspi_4.23.01.00-5vmw.500.0.0.469512, VMware_bootbank_scsi-qla2xxx_901.k1.1-14vmw.500.0.0.469512, VMware_bootbank_scsi-qla4xxx_5.01.03.2-3vmw.500.0.0.469512, VMware_bootbank_uhci-usb-uhci_1.0-3vmw.500.0.0.469512

3、再起動を行う
# reboot

4、再起動後、再度ログインして、メンテナンスモードから出る
# vim-cmd hostsvc/maintenance_mode_exit

'vim.Task:haTask-ha-host-vim.HostSystem.exitMaintenanceMode-80765156'


以上です。



○vSphere Clientで、ESXi5のバージョンが変化した。
パッチ前: ビルド 469512
パッチ後: ビルド 515841

○ESXi5のパッチには新しいVMware Toolsも含まれている場合がある。



(参考)
・How do I patch ESXi 5?
< http://communities.vmware.com/thread/328758 >  2012-3-1

・HOWTO: Patch VMware vSphere ESXi 5.0 Free Edition
< http://www.itadmintools.com/2012/02/howto-patch-vmware-vsphere-esxi-50-free.html > 2012-3-1

2012年2月19日日曜日

【VMwareServer 2.0.2】仮想マシンを変換しESXi 5ホストに移動する

VMware Server 2.0の仮想マシンを、ESXI 5のゲストに変換し、ESXI 5ホストに移動する。

<準備>
1、移動元のVMware Server 2.0が動作しているWindowsマシンに、VMware vCenter Conver Standalone 5.0をインストールしておく。

2、移動先になるESXI 5がインストールされたマシンを(同じ)ネットワーク上に動作させておく。


<手順>
1、VMware Server 2.0で動作している移動対象のゲストマシンはシャットダウンさせておく。
2、VMware Serverが動作しているマシンにインストールされたVMware vCenter Conver Standalone 5.0を起動し、以下の操作を行う。

○ソースシステム 変換するソースシステムの選択
・「ソースのタイプを選択(T):」において、「VMware Workstation または、その他の VMware 仮想マシン」を選ぶ。
・「仮想マシンファイル(V):」において、「参照(R)」ボタンを押して、移動する仮想マシンファイル(vmxファイル)を選ぶ。

○ターゲットシステムを選択 新しい仮想マシンのホストを選択
・「ターゲットのタイプを選択(T):」において、「VMware Infrastructure 仮想マシン」を選ぶ。
・「サーバ」、「ユーザー名」、「パスワード」について、移動先のESXI 5ホストの情報を入力する。

後も、指示された項目を設定していく。
変換には、仮想マシンの大きさにも拠ると思うが、10分ほど要した。


(注意)
・オプションというページでは、仮想ディスクのタイプなどを設定できる。
デフォルトではシックだったので、シンタイプで移動するにはここで設定が必要になる。

・変換後の仮想マシンではNICのMACが変化するため、DHCPで取得しているIPアドレスが変化した。

・VMware toolsのバージョンをアップデートしなければ、vSphere Clientのコンソールが正常に動作しなかった。

このvmtoolsをアップデートするためには、vSphere Clientで、
インベントリ(N)→ 仮想マシン(V)→  ゲスト(G) →VMware tools のインストール/アップデート(W)を選択し、
開くウインドウで、「自動アップデート」を選択し、「OK」をクリックする。
自動的にアップデート処理が行われ、再起動が行われる。
(ゲストマシンがwindowsの場合、ログインしていない状態でもアップデートが可能だった。)

Ad

Ad