0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

M1macにVirtualBoxをインストールしたいです

Last updated at Posted at 2024-09-02

結論

  1. FinderのApplicationsタブからターミナルアプリを右クリックしGetInfoをクリック

  2. Generalからopen rosettaのチェックマークをつける

  3. 以下をターミナルから実行

brew install --cask virtualbox

私が詰まったところから解決まで

私はターミナルからHomebrewでインストールしました

brew install --cask virtualbox

ですがここでエラー。エラー内容を確認するとarchitectureが違うらしいです。

Screenshot 2024-09-02 at 22.32.57.png

現在のアーキテクチャはarm。
エラー文見る感じVirtualBoxをインストールするにはintelである必要がありそうです

uname -m  // arm64

ここで神資料発見
rosettaを使用してターミナルを開くとアーキテクチャがintelのものになるらしいです

uname -m  // x86_64

こうなればインストールが成功します。

brew install --cask virtualbox

rosettaとは

Rosettaとは特定のアーキテクチャのプログラムコードを持つバイナリを、別のアーキテクチャに適宜変換することでバイナリの互換性を維持するAppleの技術。

Rosettaを使えば、Apple シリコンを搭載した Mac でも、Intel プロセッサ搭載 Mac 用に開発されたアプリを使えるようになるらしいです

追記

インストールはできましたがkali linuxの構築もアーキテクチャ関連で無理そうだったので諦めてUTMにて構築しました

0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?