LoginSignup
2
0

More than 3 years have passed since last update.

BitVisor on VirtualBox チャレンジ (AMD編)

Posted at

Intelプロセッサについては以下の記事があります:
https://qiita.com/mmi/items/27ef3d2b3de64d0170a3

今回はAMDプロセッサで試します。

つかうもの

  • AMD Athlon 5350
  • Microsoft Windows 10 バージョン1909
  • Oracle VirtualBox 6.1.0
  • https://qiita.com/hdk_2/items/628067fb886c7f8238d1 で使用したBitVisorとFreeDOSが入ったUSBメモリーをディスクイメージファイルに変換したもの

結果

VirtualBox_DOS_15_12_2019_09_07_22.png

おっと、DOS用の仮想マシンを作成した場合、デフォルトではRAMが32MBしか割り当てられていないのでした。256MBに増やします。

VirtualBox_DOS_15_12_2019_09_11_55.png

おっと、DOS用の仮想マシンの設定では、AMD64が有効になっていないのでした。設定を64bitのunknownオペレーティングシステムに変更します。

VirtualBox_DOS_15_12_2019_09_13_19.png

おっと、デフォルトではネステッドVT-x/AMD-Vが有効化されていないのでした。有効にします。

VirtualBox_DOS_15_12_2019_09_22_42.png
VirtualBox_DOS_15_12_2019_09_14_31.png
(´・ω・`)

$ objdump -m i386:x86-64 -S bitvisor.elf|sed -n '/^4012bd95/{N;p;q}'
objdump: warning: bitvisor.elf: corrupt GNU_PROPERTY_TYPE (5) size: 0x10
4012bd95:       0f 30                   wrmsr  
        asm_wrmsr64 (MSR_AMD_VM_CR, tmp);

MSR_AMD_VM_CRへの書き込みということは、ずいぶん最初のほうです。うーん。とりあえず、CPU 1個だとやらなくてもいいので、スキップしましょう。

VirtualBox_DOS_15_12_2019_09_48_59.png

DJGPPでこれをコンパイルして実行して、修正版を作成し、それを使って起動します。

VirtualBox_DOS_15_12_2019_09_46_49.png
VirtualBox_DOS_15_12_2019_09_47_20.png

動きました! なぜかここでキーがきかなかったのですが、今回はここまでにします。

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0