Hyper-V does not expose Virtualization Extensions to Linux VMs (for nested virtualization) automatically.
However, Microsoft provides a PowerShell script to run against the Linux VM in which you want to use nested virtualization.
The PowerShell script runs a few basic Hyper-V PowerShell commands against the VM, which basically enable the exposure of virtualization extensions and MAC address spoofing, among a few other things you should do when using nested virtualization, such as disabling dynamic memory on the VM providing the nested virtualization.
To be honest, the Ubuntu virtual machine installation went much smoother than the Windows installation, primarily because Ubuntu Linux “knew” immediately how to resize the VM screen to fit the MacBook Air at its highest resolution. The Mac mini server was no slouch in terms of speed, but the virtual machine on Apple Silicon is insanely fast. You can't run a VM-accelerated emulator inside another VM, such as a VM hosted by VirtualBox, VMWare, or Docker. You must run a VM-accelerated emulator directly on your host computer. Depending on your operating system and hypervisor, you can't run software that uses another virtualization technology at the same time that you run a VM. VMware Workstation runs on standard x86-based hardware with 64-bit Intel and AMD processors, and on 64-bit Windows or Linux host operating systems. For more detail, see our System Requirements documentation. The original solution to running Docker on OS X and Windows was Docker Toolkit. This was actually a Linux virtual machine running in the VirtualBox Hypervisor. The VM had Docker installed and could run containers. Docker Desktop for Mac still makes use of a virtual machine running Linux running in the HyperKit Hypervisor. So, of course you could run it in a VM in Linux, but only if your Linux machine was actually a Mac which would be rather pointless. They only alternative I'm aware of would be to use a cloud instance & the only one of those I've really heard of though never used is MacinCloud.
Table of Contents
.enableNestedVirt.ps1 VMName
Running the above script is a best practice unless you are experienced and are aware of the consequences of improper configuration of a VM hosting nested virtualization.
Transformer games for mac. If you are comfortable, you may simple enter the PowerShell commands manually to enable the virtualization extensions exposure to the VM. They are written below in the following section.
To disable the exposure of virtualization extensions of a VM running in Hyper-V 2016, you can either delete the VM and create a new one, or you may run the following PowerShell commands in an elevated PowerShell prompt:
Set-VMProcessor -VMName <vmname> -ExposeVirtualizationExtensions $false
Set-VMNetworkAdapter -VMName <vmname> -MacAddressSpoofing off
We’ve outlined how to run Linux on Mac® and how easy it is to get started!
Linux is an incredibly versatile operating system that has been designed to run on a wide range of devices—from mobile devices, to desktop computers, and even servers. Due to the open-source nature that ensures code has active community support, Linux is widely loved by developers. Think of Linux as an operating system “of the people, by the people, for the people.” (Yes, we just quoted the Gettysburg Address to enable readers to understand Linux as a whole.)
Users online have expressed a desire to run Linux on their Mac computer without rebooting. This is where Parallels Desktop® for Mac enters as a solution. Virtualization of Linux is a powerful and easy installation process that allows for an interruption-free environment.
Parallels Desktop provides several popular distributions of Linux for free directly in the product itself. Additionally, Parallels Desktop users can download .ISO files of and install other Linux distributions (for example: Kali Linux & use Vagrant to download and setup Linux environments like a pro!)
The free included systems are shown below. There’s no need to take any additional steps to find the right Linux distribution for you. We’ve made it very easy to run Linux on Mac!
Ubuntu: One of the most popular open-source softwares; based on the Debian GNU/Linux distribution.
Fedora: Formerly Fedora Core. Based on the Linux kernel, developed by the community-supported Fedora project, and sponsored by Red Hat.
CentOS: Provides a stable, predictable, manageable, and reproducible platform.
Debian GNU/Linux: A popular Unix-like operating system that is composed entirely of free software, which is utilized for personal computers and network servers.
Linux Mint: An easy-to-use free distribution that requires little maintenance and goes with full multimedia support.
Android: A Linux-based operating system for mobile devices, such as smartphones and tablet PCs.
All of these Linux distributions are free and easy to install as a virtual machine on your Mac through Parallels Desktop. Linux distributions can be located under the “Free Systems” options available to users within the Installation Assistant when creating a new virtual machine. See the full list of free systems below:
Get started with Linux on Mac with Parallels Desktop and try a free 14-day trial now.