goo

Virtualization UPDATE から

Q. コマンド・ラインからどのようにVMware ESX バーチャル・マシン (VM)をどのようにスタートできますか?

A. 下記のようにコマンド・ラインから管理することができます。



最初にvmware-cmd -l コマンドを使用してサーバ上のすべてのVMをリストできます。

例:

vmware-cmd -l

produces

/vmfs/volumes/f27f61fa-1c0f60ae/Test/Test.vmx
/vmfs/volumes/f27f61fa-1c0f60ae/savdalvdi01/savdalvdi01.vmx
/vmfs/volumes/f27f61fa-1c0f60ae/savdalesxvc/savdalesxvc.vmx
/vmfs/volumes/f27f61fa-1c0f60ae/savdalappv01/savdalappv01
.vmx

Note that you're shown the VMX location for each VMs. You need these paths to actually control the VMs.

To check if a VM is running, specify the VMX file and the getstate switch. For example,

vmware-cmd /vmfs/volumes/f27f61fa-1c0f60ae/savdalesxvc/
savdalesxvc.vmx getstate

returns

getstate() = off

To start a VM, just use the start switch. For example,

vmware-cmd /vmfs/volumes/f27f61fa-1c0f60ae/savdalesxvc/
savdalesxvc.vmx start

returns

start() = 1

The VM will now be running.

Q. コマンドラインからメインテナンス・モードでVMware ESX serverをセットできますか?

A.VIクライアントを使用してメインテナンス・モードでサーバをセットできます。

vimsh -n -e /hostsvc/maintenance_mode_enter

You can exit maintenance mode using the command

vimsh -n -e /hostsvc/maintenance_mode_exit

Q. コマンドラインからどのようにVMware ESX パッチをインストールできますか?

A. vSphere 4 has a neat Update Manager that can automatically download patches and apply them. If you need to manually apply them, however, you can install patches from the command prompt once you've enabled maintenance mode (see the previous FAQ for more on maintenance mode).

Once you've downloaded the ESX updates from VMware's site, you should copy them to a location accessible through ESX and then open a command prompt session (e.g. via Putty).
Use the esxupdate command to apply patches. Note that you can first check what's contained in the patch file downloaded using the scan option. For example, I used the command



esxupdate --bundle ESX400-200912001.zip scan

and saw the following:

ESX400-200912001.zip #####################################
### [100%]

Applicable bulletins with updates are listed.
----Bulletin ID---- ---Date--- ---------Summary---------
ESX400-200912401-BG 2010-01-05 Updates vmx, vmkernel etc
ESX400-200912402-SG 2010-01-05 Updates OpenSSL
ESX400-200912403-SG 2010-01-05 Updates NSS and NSPR
ESX400-200912404-SG 2010-01-05 Updates DHCP
Esxupdate local cache states:
Location: /tmp/updatecache
Available space: 2015 [MB]

Note that when you specify the bundle, there are two dashes (--bundle).

To install, use the update switch. For example,

esxupdate --bundle ESX400-200912001.zip update

You'll get output similar to the following:

ESX400-200912001.zip ####################################
#### [100%]

Unpacking vmware-esx-perftool.. #########################
############### [100%]

Unpacking vmware-esx-vmkernel.. #########################
############### [100%]

Installing nspr ########################################
[100%]

Installing vmware-esx-vmkerne.. #########################
############### [100%]

Cleaning up vmware-esx-perfto.. #########################
############### [100%]

Cleaning up vmware-esx-vmkern.. #########################
############### [100%]

Running [/usr/sbin/vmkmod-install.sh]...
ok.
The update completed successfully, but the system needs
to be rebooted for the changes to be effective.

You can then reboot using the reboot command.

Q. VMware Workstationにバーチャル・マシンを作成しようとした時に「VT isn't enabled」というエラーが出ました何が悪いのでしょうか?

A:これはプロセッサーが仮想化機能(Intel VT or AMD-V) がイネーブルになっていないからです。BIOSのVT機能をイネーブルにしてください。

-------------------------
by John Savill
コメント ( 0 ) | Trackback ( 0 )
« SQL Serverでのdi... VMware社がConsol... »
 
コメント
 
コメントはありません。
コメントを投稿する
ブログ作成者から承認されるまでコメントは反映されません
 
名前
タイトル
URL
コメント
規約に同意の上 コメント投稿を行ってください。
※文字化け等の原因になりますので、顔文字の利用はお控えください。
下記数字4桁を入力し、投稿ボタンを押してください。この数字を読み取っていただくことで自動化されたプログラムによる投稿でないことを確認させていただいております。
数字4桁
 
この記事のトラックバック Ping-URL
 


ブログ作成者から承認されるまでトラックバックは反映されません
 
※ブログ管理者のみ、編集画面で設定の変更が可能です。