<?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/en-us/tags/virtualbox/</link><description>Recent content in VirtualBox on Ivon's Blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>infoivonblog.nkfjt@aleeas.com (Ivon Huang)</managingEditor><webMaster>infoivonblog.nkfjt@aleeas.com (Ivon Huang)</webMaster><copyright>You are welcome to share articles from Ivon's blog (ivonblog.com). Please cite the source article URL when sharing. All article content is licensed under a Creative Commons Attribution-ShareAlike 4.0 license, unless otherwise stated. For commercial use, please contact me first.</copyright><lastBuildDate>Wed, 14 Feb 2024 20:00:00 +0800</lastBuildDate><atom:link href="https://ivonblog.com/en-us/tags/virtualbox/index.xml" rel="self" type="application/rss+xml"/><follow_challenge><feedId>56005902658351104</feedId><userId>1132431067563556864</userId></follow_challenge><item><title>Installing Genymotion for Linux: A Cross-Platform Android Gaming Emulator</title><link>https://ivonblog.com/en-us/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/en-us/posts/genymotion-for-linux/</guid><description>&lt;!-- Co-translated by ChatGPT --&gt;
&lt;p&gt;&amp;ldquo;Genymotion Android Emulator&amp;rdquo;, developed by Genymobile, is a cross-platform Android emulator with rich features. It can play games, and it is currently the only commercial Android emulator that supports Linux.
&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;Among the many &lt;a href="https://ivonblog.com/en-us/posts/android-emulators-for-linux" target="_blank" rel="noreferrer"&gt;Linux Android Emulators&lt;/a&gt; solutions, Genymotion&amp;rsquo;s features are on par with Android Studio&amp;rsquo;s AVD. It likewise supports GPU acceleration and ARM translation, and can emulate many Android devices.&lt;/p&gt;
&lt;p&gt;And Genymotion does not consume as many resources as Android Studio when running, so gaming is not a burden.
&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;However, rather than saying Genymotion is for playing games, Genymotion is more of an emulator developed for enterprise customers for large-scale testing and development. They also provide a cloud phone service.&lt;/p&gt;</description><content:encoded>&lt;!-- Co-translated by ChatGPT --&gt;
&lt;p&gt;&amp;ldquo;Genymotion Android Emulator&amp;rdquo;, developed by Genymobile, is a cross-platform Android emulator with rich features. It can play games, and it is currently the only commercial Android emulator that supports Linux.
&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;Among the many &lt;a href="https://ivonblog.com/en-us/posts/android-emulators-for-linux" target="_blank" rel="noreferrer"&gt;Linux Android Emulators&lt;/a&gt; solutions, Genymotion&amp;rsquo;s features are on par with Android Studio&amp;rsquo;s AVD. It likewise supports GPU acceleration and ARM translation, and can emulate many Android devices.&lt;/p&gt;
&lt;p&gt;And Genymotion does not consume as many resources as Android Studio when running, so gaming is not a burden.
&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;However, rather than saying Genymotion is for playing games, Genymotion is more of an emulator developed for enterprise customers for large-scale testing and development. They also provide a cloud phone service.&lt;/p&gt;
&lt;p&gt;By the way: Genymobile is the developer of the famous phone remote control program &amp;ldquo;Scrcpy&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;Genymotion is closed source software under a mixed open source license. Ordinary users need to register an account to use it, and its features are limited. You need to pay for a subscription license to unlock all features.&lt;/p&gt;

&lt;h2 class="relative group"&gt;1. Install Genymotion Desktop
 &lt;div id="1-install-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-install-genymotion-desktop" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;Test system: Ubuntu 22.04 LTS&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;The Linux version of Genymotion can choose KVM or VirtualBox as the virtualization backend. I use the former. Therefore, first install the &lt;a href="https://ivonblog.com/posts/ubuntu-virt-manager" target="_blank" rel="noreferrer"&gt;QMEU/KVM&lt;/a&gt; on Ubuntu&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Go to the &lt;a href="https://www.genymotion.com/" target="_blank" rel="noreferrer"&gt;Genymotion official website&lt;/a&gt; to register an account. It does not matter what you fill in for company name.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Go to the &lt;a href="https://www.genymotion.com/product-desktop/download/" target="_blank" rel="noreferrer"&gt;Genymotion Desktop page&lt;/a&gt; to download the Linux installer&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Genymotion&amp;rsquo;s bin file is essentially an archive containing the main program. I move it to the &lt;code&gt;~/Applications&lt;/code&gt; directory and then extract it&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;Add the genymotion binary path to 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;Run the &lt;code&gt;genymotion&lt;/code&gt; command, or go to &lt;code&gt;~/Applications/genymotion/&lt;/code&gt; and double-click the genymotion executable to open the main program.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;After startup, log in to your Genymotion account and select 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;After installation, Genymotion will automatically be added to the application list.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 class="relative group"&gt;2. Add an Android Emulator
 &lt;div id="2-add-an-android-emulator" 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-add-an-android-emulator" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Genymotion&amp;rsquo;s interface is very intuitive. Select the phone model you want to emulate, download the image, and install it. Although these phone models are all very old, the Android versions do keep up with the latest releases.
&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;After booting into Android, you will see a watermark in the lower-left corner. You need to pay to remove it. Later I will tell everyone a little trick to bypass it. You can operate the phone directly with the keyboard, and the clipboards on both sides will sync automatically.
&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;Users who need the Play Store should click this button on the right to install 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;You can drag APKs directly from Linux&amp;rsquo;s file manager into the Genymotion window to install them. When installing, I recommend prioritizing x86_64 or Universal APKs. If those are unavailable, then install the ARM version. The reason is that Genymotion&amp;rsquo;s built-in ARM translator may not necessarily run ARM apps correctly.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 class="relative group"&gt;3. Enable ADB Debugging for the Genymotion Emulator
 &lt;div id="3-enable-adb-debugging-for-the-genymotion-emulator" 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-enable-adb-debugging-for-the-genymotion-emulator" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;Genymotion can be used with Android Studio, replacing AVD as the Android emulator.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Install &lt;a href="https://developer.android.com/tools/releases/platform-tools?hl=zh-tw" target="_blank" rel="noreferrer"&gt;Platform Tools&lt;/a&gt; on Linux&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Enable USB debugging in &amp;ldquo;Developer options&amp;rdquo; in the Android virtual machine settings&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Open a terminal and use the ADB command to list devices&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;Connect&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;After setting up ADB debugging, you can run &lt;a href="https://ivonblog.com/posts/android-qtscrcpy-usage" target="_blank" rel="noreferrer"&gt;QTScrcpy&lt;/a&gt; to bypass Genymotion&amp;rsquo;s watermark restriction. Use your magic against them!
&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/en-us/posts/genymotion-for-linux/featured.webp"/></item></channel></rss>