no way to compare when less than two revisions
差分
このページの2つのバージョン間の差分を表示します。
— | android:android_x86:qemu [2020/05/19 06:52] (現在) – 作成 ともやん | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== QEMU で Android x86 8.1-r1 を動かす ====== | ||
+ | |||
+ | ===== Android x86 の入手 ===== | ||
+ | [[http:// | ||
+ | <WRAP prewrap 100%> | ||
+ | < | ||
+ | $ curl -OL https:// | ||
+ | $ sha256sum android-x86_64-8.1-r1.iso | ||
+ | 3f85f3b8d5a01884c5cd1ad490eb170b7f84f26af96b720d64510b56dc596e09 | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== 仮想ディスクイメージを準備 ===== | ||
+ | <WRAP prewrap 100%> | ||
+ | < | ||
+ | $ sudo qemu-img create -f qcow2 / | ||
+ | Formatting '/ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== 仮想マシンの定義 ===== | ||
+ | < | ||
+ | $ vi android_x86_64.xml | ||
+ | </ | ||
+ | <WRAP prewrap 100%> | ||
+ | <file xml android_x86_64.xml> | ||
+ | <domain type=' | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | <memory unit=' | ||
+ | < | ||
+ | <vcpu placement=' | ||
+ | <os> | ||
+ | <type arch=' | ||
+ | </os> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | <vmport state=' | ||
+ | </ | ||
+ | <cpu mode=' | ||
+ | <model fallback=' | ||
+ | </ | ||
+ | <clock offset=' | ||
+ | <timer name=' | ||
+ | <timer name=' | ||
+ | <timer name=' | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | <pm> | ||
+ | < | ||
+ | < | ||
+ | </pm> | ||
+ | < | ||
+ | < | ||
+ | <disk type=' | ||
+ | <driver name=' | ||
+ | <source file='/ | ||
+ | <target dev=' | ||
+ | <boot order=' | ||
+ | <address type=' | ||
+ | </ | ||
+ | <disk type=' | ||
+ | <driver name=' | ||
+ | <source file='/ | ||
+ | <target dev=' | ||
+ | < | ||
+ | <boot order=' | ||
+ | <address type=' | ||
+ | </ | ||
+ | < | ||
+ | <address type=' | ||
+ | </ | ||
+ | < | ||
+ | <master startport=' | ||
+ | <address type=' | ||
+ | </ | ||
+ | < | ||
+ | <master startport=' | ||
+ | <address type=' | ||
+ | </ | ||
+ | < | ||
+ | <master startport=' | ||
+ | <address type=' | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | <address type=' | ||
+ | </ | ||
+ | < | ||
+ | <mac address=' | ||
+ | <source bridge=' | ||
+ | <model type=' | ||
+ | <address type=' | ||
+ | </ | ||
+ | <serial type=' | ||
+ | <target type=' | ||
+ | <model name=' | ||
+ | </ | ||
+ | </ | ||
+ | <console type=' | ||
+ | <target type=' | ||
+ | </ | ||
+ | <input type=' | ||
+ | <address type=' | ||
+ | </ | ||
+ | <input type=' | ||
+ | <input type=' | ||
+ | < | ||
+ | <listen type=' | ||
+ | <image compression=' | ||
+ | </ | ||
+ | <sound model=' | ||
+ | <address type=' | ||
+ | </ | ||
+ | < | ||
+ | <model type=' | ||
+ | <address type=' | ||
+ | </ | ||
+ | < | ||
+ | <address type=' | ||
+ | </ | ||
+ | < | ||
+ | <address type=' | ||
+ | </ | ||
+ | < | ||
+ | <address type=' | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | ネットワークインターフェースのモデルは e1000 を選んでブリッジ br0 へ接続する。\\ | ||
+ | <code xml> | ||
+ | < | ||
+ | <mac address=' | ||
+ | <source bridge=' | ||
+ | <model type=' | ||
+ | <address type=' | ||
+ | </ | ||
+ | </ | ||
+ | マウスの動きを良くする為に USB タブレットを追加する。\\ | ||
+ | <code xml> | ||
+ | <input type=' | ||
+ | <address type=' | ||
+ | </ | ||
+ | </ | ||
+ | サウンドは es1370 を選ぶ。\\ | ||
+ | <code xml> | ||
+ | <sound model=' | ||
+ | <address type=' | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | < | ||
+ | $ sudo virsh define android_x86_64.xml | ||
+ | ドメイン android_x86_64 が android_x86_64.xml から定義されました | ||
+ | </ | ||
+ | |||
+ | ===== インストール ===== | ||
+ | 「Installation - Install Android-x86 to harddisk」選択して Enter を押す。\\ | ||
+ | {{: | ||
+ | ↓下矢印キーを1回押すと「Create/ | ||
+ | {{: | ||
+ | GPT にはしないので <No> のまま Enter を押す。\\ | ||
+ | {{: | ||
+ | [ New ] を選択して Enter を押す。\\ | ||
+ | {{: | ||
+ | [Primary] を選択して Enter を押す。\\ | ||
+ | {{: | ||
+ | Size (in MB): 10734 を入力して Enter を押す。\\ | ||
+ | {{: | ||
+ | [ Bootable ] を選択して Enter を押す。\\ | ||
+ | {{: | ||
+ | [ Write ] を選択して Enter を押す。\\ | ||
+ | {{: | ||
+ | yes を入力して Enter を押す。\\ | ||
+ | {{: | ||
+ | [ Quit ] を選択して Enter を押す。\\ | ||
+ | {{: | ||
+ | sda1 が選択された状態で < OK > を選択して Enter を押す。\\ | ||
+ | {{: | ||
+ | ext4 を選択し < OK > を選択して Enter を押す。\\ | ||
+ | {{: | ||
+ | < Yes > を選択して Enter を押す。\\ | ||
+ | {{: | ||
+ | < Yes > を選択して Enter を押す。\\ | ||
+ | {{: | ||
+ | < Yes > を選択して Enter を押す。\\ | ||
+ | {{: | ||
+ | Android-x86 のインストールが始まる。\\ | ||
+ | {{: | ||
+ | Reboot 選択し < OK > を選択して Enter を押す。\\ | ||
+ | {{: | ||
+ | ハードディスクから「Android-x86 8.1-r1」を起動する。\\ | ||
+ | {{: | ||
+ | Android-x86 が起動するのを待つ。\\ | ||
+ | {{: | ||
+ | 「Hi there」の画面で ENGLISH (UNITED STATES) をクリックして日本語を選択する。\\ | ||
+ | {{: | ||
+ | 「ようこそ」に変わったら [開始] を押す。\\ | ||
+ | {{: | ||
+ | 「アップデートを確認中...」でアップデート確認が終るのを待つ。\\ | ||
+ | {{: | ||
+ | 「アプリとデータのコピー」で「データのコピー」か「新規としてセットアップ」するかをお好みで好きな方を選択する。\\ | ||
+ | {{: | ||
+ | 「Google ログイン」で自分の Google アカウントでログインする。\\ | ||
+ | {{: | ||
+ | 「ホームアプリの選択」で「Launcher3」を選択し「常時」をクリックする。\\ | ||
+ | {{: | ||
+ | 「Android x86 8.1-r1」が使えるようになる。\\ | ||
+ | {{: | ||
+ | |||
+ | ===== システムログを見る ===== | ||
+ | < | ||
+ | $ logcat | less | ||
+ | </ | ||