LoginSignup
19
6

Mac M1チップでVirtualBoxをインストールする方法

Posted at

概要

今日はMacのM1チップを使ってVirtualBoxをインストールする方法についてシェアしたいと思います。

現在は Mac M1チップを使っていて、VirtualBoxをインストールしようとしたときに、以下のエラーが出てきました。

brew install --cask virtualbox
==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-cask/8290ef01e26f1fe87714eea55b1175ae1910583b/Casks/v/virtualbox.rb
Already downloaded: /Users/leminhthientoan/Library/Caches/Homebrew/downloads/f8c3d1134ba4b9df0f82b944132ac0b0aca3df829588d69591bf17185b700836--virtualbox.rb
Error: Cask virtualbox depends on hardware architecture being one of [{:type=>:intel, :bits=>64}], but you are running {:type=>:arm, :bits=>64}.

原因は、VirtualBoxがIntelアーキテクチャーを必要とし、私のMacはARMアーキテクチャーを使用しているためです。

対策

一つの対策は Rosetta を使用してインストールする

FinderでTerminalアプリケーションを探し(ユーティリティフォルダの中にある)、それを右クリックして、情報を見るを選択します。
Rosettaを使用して開くというオプションにチェックを入れます。

スクリーンショット 2023-10-23 18.18.55.png

新しいTerminalウィンドウを開き、そこで次のコマンドを実行します。

brew install --cask virtualbox
==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-cask/8290ef0
Already downloaded: /Users/leminhthientoan/Library/Caches/Homebrew/downloads/f8c3d1134ba4b9df0f82b944132ac0b0aca3df829588d69591bf17185b700836--virtualbox.rb
==> Downloading https://download.virtualbox.org/virtualbox/7.0.12/VirtualBox-7.0
######################################################################### 100.0%
==> Installing Cask virtualbox
==> Running installer for virtualbox with sudo; the password may be necessary.
Password:
installer: Package name is Oracle VM VirtualBox
installer: choices changes file '/private/tmp/choices20231023-7920-zyiodv.xml' applied
installer: Installing at base path /
installer: The install was successful.
🍺  virtualbox was successfully installed!

これで、VirtualBoxのインストールが問題なく完了しました!

19
6
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
19
6