コマンドラインからのゲストOS起動

Contributed by: akira on 2010年 9月21日(火) 13:49 JST

Last modified on

コマンドラインはroot権限で実行する必要がある。
SQL Injection用のCentOS 5のサーバは、vmidが16でなので。

# vmware-vim-cmd vmsvc/power.on 16

もしくは、

$ sudo vmware-vim-cmd vmsvc/power.on 16

ですむはずである。

-------------------------------------------------------------------------------------

VMwareのコマンドラインshellは、
$ sudo vmware-vimsh
で起動可能である。
[/]$ vmsvc/getallvms
Vmid    Name                  File                 Guest OS    Version   Annotation
16     CentOS5   [standard] CentOS5/CentOS5.vmx   rhel4Guest   vmx-07
状態確認
[/]$ vmsvc/power.getstate 16
Retrieved runtime info
Powered on

[/]$ vmsvc/power.on 16
 

コメント (0件)

Geeklog Site - コマンドラインからのゲストOS起動
https://geeklog.craine.ne.jp/article.php?story=20100921134922263