<p>I have <code>GKE</code> cluster (Master version: 1.14.10-gke.24).</p>

<p>I'm trying to run the following container (Android-Emulator):
<a href="https://github.com/budtmo/docker-android" rel="nofollow noreferrer">https://github.com/budtmo/docker-android</a> .</p>

<p>*I just create yaml deployment file for this.</p>

<p>After I running my deploy and try to run new android emulator inside the pod using:</p>

<pre><code>emulator @samsung_galaxy_s8_8.0
</code></pre>

<p>I got the following error:</p>

<blockquote>
  <p>emulator: ERROR: x86 emulation currently requires hardware acceleration!</p>
  
  <p>Please ensure KVM is properly installed and usable.</p>
  
  <p>CPU acceleration status: KVM requires a CPU that supports vmx or svm</p>
  
  <p>More info on configuring VM acceleration on Linux:
  <a href="https://developer.android.com/studio/run/emulator-acceleration#vm-linux" rel="nofollow noreferrer">https://developer.android.com/studio/run/emulator-acceleration#vm-linux</a></p>
  
  <p>General information on acceleration: <a href="https://developer.android.com/studio/run/emulator-acceleration" rel="nofollow noreferrer">https://developer.android.com/studio/run/emulator-acceleration</a>.</p>
</blockquote>

<p>How can I solve it? Should I enable VMX on cluster, If so, how can I do it?</p>

<p>Currently nested virtualization is available only on GCE as per <a href="https://cloud.google.com/compute/docs/instances/enable-nested-virtualization-vm-instances" rel="nofollow noreferrer">this docs</a>.</p>

<p>There is already a <a href="https://groups.google.com/forum/#!topic/gce-discussion/kXlnM2m60hY" rel="nofollow noreferrer">question</a> regarding supporting of <code>Nested Virtualization</code> on <code>GKE</code>. I'd say it's not introduced yet, thats why you cannot find proper documentation about GKE and <code>nested virtualization</code>.</p>

<p>So far I can see only one workaround:</p>

<blockquote>
  <p>As a workaround, I've been doing what this user was doing which is to clone the existing GKE node image and add the license, and copy-and-edit the instance group's template to the image:</p>
  
  <p><a href="https://groups.google.com/d/msg/kubernetes-users/Lq0ttadDOYI/1y1RVQMCBgAJ" rel="nofollow noreferrer">https://groups.google.com/d/msg/kubernetes-users/Lq0ttadDOYI/1y1RVQMCBgAJ</a></p>
  
  <p>Obviously it's not 100% supported but I still get a lot of the GKE benefits AND nested virtualization.</p>
</blockquote>

<p>Hope that helps.</p>
