<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>VirtualBox on Ivon's Blog</title><link>https://ivonblog.com/ja-jp/tags/virtualbox/</link><description>Recent content in VirtualBox on Ivon's Blog</description><generator>Hugo -- gohugo.io</generator><language>ja-jp</language><managingEditor>infoivonblog.nkfjt@aleeas.com (Ivon Huang)</managingEditor><webMaster>infoivonblog.nkfjt@aleeas.com (Ivon Huang)</webMaster><copyright>Ivon's Blog（ivonblog.com）の記事はご自由に共有いただけます。引用の際は、記事のURLを明記してください。特に明記されていない限り、すべての記事CC BY-SA 4.0 表示-継承 4.0 国際 ライセンスの下で提供されています。商用利用をご希望の場合は、お問い合わせください。</copyright><lastBuildDate>Wed, 14 Feb 2024 20:00:00 +0800</lastBuildDate><atom:link href="https://ivonblog.com/ja-jp/tags/virtualbox/index.xml" rel="self" type="application/rss+xml"/><follow_challenge><feedId>56005902658351104</feedId><userId>1132431067563556864</userId></follow_challenge><item><title>Linux版Genymotionのインストール手順：クロスプラットフォームAndroidゲームエミュレーター</title><link>https://ivonblog.com/ja-jp/posts/genymotion-for-linux/</link><pubDate>Wed, 14 Feb 2024 20:00:00 +0800</pubDate><author>infoivonblog.nkfjt@aleeas.com (Ivon Huang)</author><guid>https://ivonblog.com/ja-jp/posts/genymotion-for-linux/</guid><description>&lt;!-- Co-translated by ChatGPT --&gt;
&lt;p&gt;Genymobileが開発する「Genymotion Android Emulator」は、機能豊富なクロスプラットフォームAndroidエミュレーターソフトです。ゲームも遊べ、現在Linuxをサポートする唯一の商用Androidエミュレーターです。
&lt;figure&gt;
 &lt;img
 class="my-0 rounded-md"
 loading="lazy"
 decoding="async"
 fetchpriority="low"
 alt=""
 src="https://static.ivonblog.com/posts/genymotion-for-linux/images/genymotion.webp"
 onerror="this.onerror=null;this.src='https://ivonblog.com/images/unable-to-load-the-image-pepe.webp'"
 &gt;&lt;/figure&gt;
&lt;/p&gt;</description><content:encoded>&lt;!-- Co-translated by ChatGPT --&gt;
&lt;p&gt;Genymobileが開発する「Genymotion Android Emulator」は、機能豊富なクロスプラットフォームAndroidエミュレーターソフトです。ゲームも遊べ、現在Linuxをサポートする唯一の商用Androidエミュレーターです。
&lt;figure&gt;
 &lt;img
 class="my-0 rounded-md"
 loading="lazy"
 decoding="async"
 fetchpriority="low"
 alt=""
 src="https://static.ivonblog.com/posts/genymotion-for-linux/images/genymotion.webp"
 onerror="this.onerror=null;this.src='https://ivonblog.com/images/unable-to-load-the-image-pepe.webp'"
 &gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;多くの&lt;a href="https://ivonblog.com/ja-jp/posts/android-emulators-for-linux" target="_blank" rel="noreferrer"&gt;Linux Android Emulators&lt;/a&gt;方案の中で、Genymotionの機能はAndroid StudioのAVDと肩を並べます。同じくGPUアクセラレーションとARMトランスレーションに対応し、多くのAndroidデバイスをエミュレートできます。&lt;/p&gt;
&lt;p&gt;さらにGenymotionはAndroid Studioほど実行時にリソースを食わず、ゲームも気軽に遊べます。
&lt;figure&gt;
 &lt;img
 class="my-0 rounded-md"
 loading="lazy"
 decoding="async"
 fetchpriority="low"
 alt=""
 src="https://static.ivonblog.com/posts/genymotion-for-linux/images/Screenshot_20240215_024744.webp"
 onerror="this.onerror=null;this.src='https://ivonblog.com/images/unable-to-load-the-image-pepe.webp'"
 &gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;ただし、Genymotionでゲームを遊ぶというより、Genymotionは企業顧客向けの研究開発、大規模なテスト開発用エミュレーターという性格が強いです。クラウドスマホのサービスも提供しています。&lt;/p&gt;
&lt;p&gt;ついでに言うと、Genymobileは有名なスマホ遠隔操作プログラム「Scrcpy」の開発元です。&lt;/p&gt;
&lt;p&gt;Genymotionは混合オープンソースライセンスのクローズドソースソフトウェアです。一般ユーザーが使うにはアカウント登録が必要で、機能にも制限があります。すべての機能を解放するには有料サブスクリプションライセンスが必要です。&lt;/p&gt;

&lt;h2 class="relative group"&gt;1. Genymotion Desktopをインストール
 &lt;div id="1-genymotion-desktopをインストール" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#1-genymotion-desktop%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab" aria-label="アンカー"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;テスト環境：Ubuntu 22.04 LTS&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Linux版GenymotionはKVMまたはVirtualBoxを仮想化バックエンドとして選べます。私は前者を使います。そのため、まずUbuntuに&lt;a href="https://ivonblog.com/posts/ubuntu-virt-manager" target="_blank" rel="noreferrer"&gt;QMEU/KVM&lt;/a&gt;をインストールしてください&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="https://www.genymotion.com/" target="_blank" rel="noreferrer"&gt;Genymotion公式サイト&lt;/a&gt;でアカウントを登録します。会社名は適当に入力して構いません。&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="https://www.genymotion.com/product-desktop/download/" target="_blank" rel="noreferrer"&gt;Genymotion Desktopページ&lt;/a&gt;からLinuxインストーラーをダウンロードします&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Genymotionのbinファイルは本質的には圧縮ファイルで、中にメインプログラムが入っています。私はそれを&lt;code&gt;~/Applications&lt;/code&gt;ディレクトリに移動してから展開します&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; ~/Downloads
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;mkdir ~/Applications
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;mv genymotion-3.6.0-linux_x64.bin ~/Applications
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; ~/Applications
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;./genymotion-3.6.0-linux_x64.bin&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;ol start="5"&gt;
&lt;li&gt;genymotionのバイナリパスをPATHに追加します&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;PATH=&lt;/span&gt;&lt;span class="nv"&gt;$PATH&lt;/span&gt;&lt;span class="s2"&gt;:~/Applications/genymotion/genymotion&amp;#34;&lt;/span&gt; &amp;gt;&amp;gt; ~/.bashrc
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;source&lt;/span&gt; ~/.bashrc&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;ol start="6"&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;genymotion&lt;/code&gt;コマンドを実行するか、&lt;code&gt;~/Applications/genymotion/&lt;/code&gt;でgenymotion実行ファイルをダブルクリックしてメインプログラムを開きます。&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;起動後、Genymotionアカウントにログインし、Personal Useを選択します
&lt;figure&gt;
 &lt;img
 class="my-0 rounded-md"
 loading="lazy"
 decoding="async"
 fetchpriority="low"
 alt=""
 src="https://static.ivonblog.com/posts/genymotion-for-linux/images/Screenshot_20240214_214016.webp"
 onerror="this.onerror=null;this.src='https://ivonblog.com/images/unable-to-load-the-image-pepe.webp'"
 &gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Genymotionはインストール後、自動的にアプリケーション一覧へ追加されます。&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 class="relative group"&gt;2. Androidエミュレーターを追加
 &lt;div id="2-androidエミュレーターを追加" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#2-android%e3%82%a8%e3%83%9f%e3%83%a5%e3%83%ac%e3%83%bc%e3%82%bf%e3%83%bc%e3%82%92%e8%bf%bd%e5%8a%a0" aria-label="アンカー"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;GenymotionのUI操作はとても直感的です。エミュレートしたいスマホ機種を選び、イメージをダウンロードしてインストールするだけです。これらのスマホ機種は古いものばかりですが、Androidバージョンはちゃんと最新版に追いついています。
&lt;figure&gt;
 &lt;img
 class="my-0 rounded-md"
 loading="lazy"
 decoding="async"
 fetchpriority="low"
 alt=""
 src="https://static.ivonblog.com/posts/genymotion-for-linux/images/Screenshot_20240215_023344.webp"
 onerror="this.onerror=null;this.src='https://ivonblog.com/images/unable-to-load-the-image-pepe.webp'"
 &gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;起動してAndroidに入ると、左下にウォーターマークが表示されます。消すにはお金が必要ですが、後でちょっとした解除の小技を紹介します。キーボードでそのままスマホを操作でき、両側のクリップボードも自動同期されます。
&lt;figure&gt;
 &lt;img
 class="my-0 rounded-md"
 loading="lazy"
 decoding="async"
 fetchpriority="low"
 alt=""
 src="https://static.ivonblog.com/posts/genymotion-for-linux/images/Screenshot_20240215_023736.webp"
 onerror="this.onerror=null;this.src='https://ivonblog.com/images/unable-to-load-the-image-pepe.webp'"
 &gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Playストアが必要なユーザーは、右側のこのボタンをクリックしてGAppsをインストールしてください
&lt;figure&gt;
 &lt;img
 class="my-0 rounded-md"
 loading="lazy"
 decoding="async"
 fetchpriority="low"
 alt=""
 src="https://static.ivonblog.com/posts/genymotion-for-linux/images/Screenshot_20240215_024211.webp"
 onerror="this.onerror=null;this.src='https://ivonblog.com/images/unable-to-load-the-image-pepe.webp'"
 &gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;LinuxのファイルマネージャーからAPKをGenymotionのウィンドウへ直接ドラッグしてインストールできます。インストール時はx86_64またはUniversalのAPKを優先することをおすすめします。なければARM版を入れます。こうする理由は、Genymotion内蔵のARMトランスレーターがARMアーキテクチャのアプリを必ず正常に実行できるとは限らないためです。&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 class="relative group"&gt;3. GenymotionエミュレーターでADBデバッグを有効化
 &lt;div id="3-genymotionエミュレーターでadbデバッグを有効化" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#3-genymotion%e3%82%a8%e3%83%9f%e3%83%a5%e3%83%ac%e3%83%bc%e3%82%bf%e3%83%bc%e3%81%a7adb%e3%83%87%e3%83%90%e3%83%83%e3%82%b0%e3%82%92%e6%9c%89%e5%8a%b9%e5%8c%96" aria-label="アンカー"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;GenymotionはAndroid Studioと組み合わせて使え、AVDの代わりにAndroidエミュレーターとして利用できます。&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Linuxに&lt;a href="https://developer.android.com/tools/releases/platform-tools?hl=zh-tw" target="_blank" rel="noreferrer"&gt;Platform Tools&lt;/a&gt;をインストールします&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Android仮想マシン設定の「開発者向けオプション」でUSBデバッグを有効化します&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;端末を開き、ADBコマンドでデバイスを一覧表示します&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;adb devices&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;ol start="4"&gt;
&lt;li&gt;接続&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;adb connect 127.0.0.1:6555&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;ol start="5"&gt;
&lt;li&gt;ADBデバッグを設定したら、&lt;a href="https://ivonblog.com/posts/android-qtscrcpy-usage" target="_blank" rel="noreferrer"&gt;QTScrcpy&lt;/a&gt;を動かしてGenymotionのウォーターマーク制限を回避できます。相手の魔法をそのまま返してやりましょう！
&lt;figure&gt;
 &lt;img
 class="my-0 rounded-md"
 loading="lazy"
 decoding="async"
 fetchpriority="low"
 alt=""
 src="https://static.ivonblog.com/posts/genymotion-for-linux/images/Screenshot_20240215_030018.webp"
 onerror="this.onerror=null;this.src='https://ivonblog.com/images/unable-to-load-the-image-pepe.webp'"
 &gt;&lt;/figure&gt;
&lt;/li&gt;
&lt;/ol&gt;</content:encoded><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://ivonblog.com/ja-jp/posts/genymotion-for-linux/featured.webp"/></item></channel></rss>