セキュリティ分野に特化した人間になるにはハッキングは避けて通れません。そこで私もホワイトハッカーを目指すため勉強を始めました。
手始めに VirtualBox を Windows11PC にインストールします。いきなりすんなりとはインストールされなかったので記録に残します。
なぜ VirtualBox が必要かというと、のちに ハッキングに特化したLinux OS (Parrot OS) をインストールする予定だからです。ちなみにPCのスペックは以下の通りです。
ThinkPad T14s Gen1 2020年発売モデル
CPU: Core i7 vPRO 10th Gen
メモリ: 16GB
SSD: 512GB
4年前のモデルなのでそれほど新しくありませんが、i7のCPUや16GBのメモリがあるので今でも戦える機種だと思います。複数仮想OSを起動させてもサクサク動いてくれるメモリの量なのではと期待しています。それから複数仮想OSを搭載させることを考えて512GBの容量を積みました。
VirtualBox のインストール方法
まずは以下のサイトにアクセスします。
Windows Hosts をクリックしてセットアップファイルをダウンロードします。

Microsoft Visual C++ 再頒布可能パッケージ のインストール
VirtualBox セットアップファイルを実行すると以下の画面がでることがあります。

Oracle VM VirtualBox 7.0.20 needs the Microsoft Visual C++ 2019 Redistributable Package being installed first. Please install and restart the installation of Oracle VM VirtualBox 7.0.20.
これは何と言っているかといいますと、「VirtualBox インストール前に、Microsoft Visual C++ 再頒布可能パッケージ をインストールしてね」ということです。
では早速「Microsoft Visual C++ 再頒布可能パッケージ」をインストールしましょう。まずは以下のサイトにアクセスし最適なインストーラーをダウンロードします。


わたくしの環境には「x64」版をインストールしました。以下インストールウィザード画面です。
ライセンスに同意して

「インストール」ボタンを押せば完了です!とても簡単でした。

Python のインストール
無事 VirtualBox のセットアップウィザードが表示され進めていくと以下の画面が表示されました。

Installing the Oracle VM VirtualBox 7.0.20 Python bindings requires the Python Core package and the win32api bindings to be installed first.
これは何を言っているかと言いますと「Python の core と win32api をインストールする必要があるよ!」という警告を出しています。(おおざっぱ翻訳・説明であることをご了承ください)
とりあえず VirtualBox のインストールを続けて完了させます。その後 Python のインストーラーを以下のサイトからダウンロードします。


インストーラーを実行するとセットアップウィザードが表示されます。Add python.exe to PATH にチェックを入れてから Install Now を押下します。

インストール完了です。Close で閉じてください。

Python pywin32 のインストール
Python win32api が必要だと言われていましたので、pywin32 をインストールします。
C:\Users\papa>pip install pywin32
Collecting pywin32
Downloading pywin32-306-cp312-cp312-win_amd64.whl.metadata (6.5 kB)
Downloading pywin32-306-cp312-cp312-win_amd64.whl (9.2 MB)
---------------------------------------- 9.2/9.2 MB 10.3 MB/s eta 0:00:00
Installing collected packages: pywin32
Successfully installed pywin32-306
「Successfully installed pywin32-…」と最後に表示されています。pywin32 のインストール成功です。
VirtualBox のインストールが完了いたしました!
まとめ
Oracle VM VirtualBox X.XX.XX needs the Microsoft Visual C++ 2019 Redistributable Package being installed first と表示されたら、Microsoft Visual C++ 再頒布可能パッケージ のインストールを行う
Installing the Oracle VM VirtualBox X.XX.XX Python bindings requires the Python Core package and the win32api bindings to be installed first. と表示されたら、Pythonとpywin32をインストールする。
VirtualBox をインストールするタイプの人はすでに「Microsoft Visual C++ 再頒布可能パッケージ」や Python をインストール済みかと思いますので、このようなエラーは出ないかと思います。今回私のPCは新しく購入したものだったためなんの設定も入っていない状態でした。よって今回のエラーが発生したものと考えられます。
コメント