2010年4月19日月曜日

仮想マシン上での動作を拒否するソフトウェアを使用する場合のvmxファイルの設定

仮想マシンを作成した段階では仮想マシンであることを通知しているようなので,それを切る設定をします.
実際には仮想マシン本体(.vmxファイル)にパラメータを書き加えます.
場所はたぶんどこでもいいですが,最後に追加しておくのが無難だと思います.


参考2のページに様々なパラメータが載っていますが,今回使用するのは
disable VM-detection
の部分と
this example prevents that the app
Sword of the New World
detects that it is running in a VM
の部分です.
参考2を Advanced setup of the host -> monitor_control と行った辺りにあります.

monitor_control.disable_directexec = "true"
monitor_control.disable_chksimd = "true"
monitor_control.disable_ntreloc = "true"
monitor_control.disable_selfmod = "true"
monitor_control.disable_reloc = "true"
monitor_control.disable_btinout = "true"
monitor_control.disable_btmemspace = "true"
monitor_control.disable_btpriv = "true"
monitor_control.disable_btseg = "true"
monitor_control.virtual_rdtsc = "false"
monitor_control.restrict_backdoor = "true"
isolation.tools.getPtrLocation.disable = "true"
isolation.tools.setPtrLocation.disable = "true"
isolation.tools.setVersion.disable = "true"
isolation.tools.getVersion.disable = "true"

両方採用するとこうなりますが,参考1によると
monitor_control.virtual_rdtsc = "false"
が重い上に,ホストとのタイマー同期するだけのようなので削除して

monitor_control.disable_directexec = "true"
monitor_control.disable_chksimd = "true"
monitor_control.disable_ntreloc = "true"
monitor_control.disable_selfmod = "true"
monitor_control.disable_reloc = "true"
monitor_control.disable_btinout = "true"
monitor_control.disable_btmemspace = "true"
monitor_control.disable_btpriv = "true"
monitor_control.disable_btseg = "true"
monitor_control.restrict_backdoor = "true"
isolation.tools.getPtrLocation.disable = "true"
isolation.tools.setPtrLocation.disable = "true"
isolation.tools.setVersion.disable = "true"
isolation.tools.getVersion.disable = "true"
これが最大構成.
最少構成では
monitor_control.restrict_backdoor = "true"
この一行を追加してVMWareToolsが通信に使用するバックドアを閉じるだけで動くものもあるそうです.(参考1)

追記:VMWareToolsをフルで入れるとDeamonが落ちてエラーメッセージが出ます(仮想マシン内).
VMWareToolsをインストールする際にドライバだけをインストールすることでこの問題が解決できます.

参考1:相方が携帯紛失
参考2:sambarrow.com VMX-file parameters

1 件のコメント:

  1. 通りすがり2011年9月19日 18:32

    MacでVMware使ってるんですがvmxファイルってどこにあるんですか?
    探してもみつからないです;;

    返信削除