7
5

More than 3 years have passed since last update.

MacでQEMUを動かしてみる

Last updated at Posted at 2020-06-07

目的

MacでQEMUを動かしてみる

QEMUとは

QEMU is a generic and open source machine emulator and virtualizer.
https://www.qemu.org

QEMUインストール

Macの場合は以下

brew install qemu

参考

Download QEMU

OS build

core

Running CoreOS Container Linux on QEMU

mkdir coreos; cd coreos
curl -O https://stable.release.core-os.net/amd64-usr/current/coreos_production_qemu.sh
curl -O https://stable.release.core-os.net/amd64-usr/current/coreos_production_qemu.sh.sig
curl -O https://stable.release.core-os.net/amd64-usr/current/coreos_production_qemu_image.img.bz2
curl -O https://stable.release.core-os.net/amd64-usr/current/coreos_production_qemu_image.img.bz2.sig
gpg --verify coreos_production_qemu.sh.sig
gpg --verify coreos_production_qemu_image.img.bz2.sig
bzip2 -d coreos_production_qemu_image.img.bz2
chmod +x coreos_production_qemu.sh

起動するコマンドがそのままではMacで実行できないため、
以下の記事を参考に修正させて頂きます(困っていたところ記事を見つけました。ありがとうございます)

MacでQEMUを使ってCoreOS環境を構築する

https://blog.lufia.org/entry/2016/03/23/205200
を参考に、coreos_production_qemu.sh を修正

修正後、coreos_production_qemu.shを実行してQEMU上でcoreosが起動すればOK

$ ./coreos_production_qemu.sh

スクリーンショット 2020-06-02 19.51.51.png

mouse pointerのコントロールを奪う

Macの場合は、SHIFT+F12 でmouse pointerのコントロールを奪うことができた

参考

https://www.qemu.org/
MacでQEMUのビルドをしてみた。
LinuxカーネルをARM向けにビルドしてQEMUで起動する
QEMU
Download QEMU
Automotive Grade Linuxことはじめ
QEMUを使って最新のLinuxカーネル(v4.0-rc7)を起動する
Linux Kernel をBuildしてqemuで動かす
Raspberry pi(Raspbian Jessie)を OS X の QEMU で動かす
Raspbian Stretch 2018/3/13版をQEMUで動かす
juokelis/qemu-rpi-kernel
QEMU4.0.0 + Raspbian Buster による RaspberryPi のエミュレーション環境構築(超シンプル手順バージョン)
MacでQEMUを使ってCoreOS環境を構築する
Running CoreOS Container Linux on QEMU
VMware playerからQEMU-KVMへ: Ubuntu 16.04 MATEにて

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