LoginSignup
1
0

More than 3 years have passed since last update.

VirtualBox で AndroidStudio の Emulator を実行したい

Posted at

VirtualBox で AndroidStudio の Emulator を実行したい

したいよね。 VirtualBox 6.0 以降ならできるんです。

今年になって、VagrantとVirtualBoxを弄ってから気づいたんだけど、

ここの記事 の通り、
- VirtualBox 6.0 ... AMD の CPU
- VirtualBox 6.1 ... Intel の CPU

で、Nested Virtualization 機能がサポートされたらしい。
実際に手元のVirtualBox6.1を見たら項目が存在してた。

image.png

もちろん、処理が軽いわけではないのだが。

Vagrantfileとしては、vb.customizeの欄が追加になる。
--nested-hw-virt を on にすればいいだけ。

  config.vm.provider :virtualbox do |vb|
    vb.customize [
      "modifyvm", :id,
      "--nested-hw-virt", "on", # VT-x のNested/AMD-Vを有効にする
    ]

これで仮想環境でビルドしてそのまま確認できるぜ!

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