3
2

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.

aptでQEMUをインスコしたら古かったので自力でビルドした話

Last updated at Posted at 2022-02-12

#初めに
今回は短編です。
前回の記事でqemu-system-aarch64を使いましたが、バージョンを確認したところ4.x.x(厳密なところを忘れてしまった...)でした。
最新の安定ビルドは6.2.0ですので、少なくとも2世代も古いものになります。
そこで、コードからビルドして最新版をインストールしたいと思います。

$ qemu-system-aarch64 -version 

#最新をダウンロード&ビルドする
まずはビルドに必要なツールをインストールします。

$ sudo apt update
$ sudo apt install build-essential ninja-buildlibglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev

次にQemuのソースコードをダウンロードし、ディレクトリに移動します。

$ wget https://download.qemu.org/qemu-6.2.0.tar.xz
$ tar xvJf qemu-6.2.0.tar.xz
$ cd qemu-6.2.0

ビルドします

ビルドには非常に長い時間かかります。
自分の環境では3時間ほどかかりました。
早朝や就寝前など、時間に余裕のある時に実行しましょう。

ビルド後のqemuのフォルダーは10GB程度になります。
ストレージに十分な容量があることを確認してから実行してください。

既にQemuをインストールしている場合、上書きでインストールされますのでバージョン依存関係がある場合は注意してください。

手順内で異常終了などによる損害に関して一切の責任を筆者は負いません。

$ ./configure
$ make

ビルド完了後は以下のコマンドでインストールできます

$ make install

#おわり
本記事は以上となります。ありがとうございました。

3
2
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
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?