|
1 | 1 | ---
|
2 |
| -title: Enable nested virtualization on a template VM in Azure Lab Services (Script) | Microsoft Docs |
3 |
| -description: Learn how to create a template VM with multiple VMs inside by using a script. In other words, enable nested virtualization on a template VM in Azure Lab Services. |
| 2 | +title: Enable nested virtualization on a template VM |
| 3 | +titleSuffix: Azure Lab Services |
| 4 | +description: Learn how to enable nested virtualization on a template VM in Azure Lab Services by using a script. Nested virtualization enables you to create a lab with multiple VMs inside it. |
| 5 | +services: lab-services |
| 6 | +ms.service: lab-services |
| 7 | +author: ntrogh |
| 8 | +ms.author: nicktrog |
4 | 9 | ms.topic: how-to
|
5 |
| -ms.date: 06/26/2020 |
| 10 | +ms.date: 01/13/2023 |
6 | 11 | ---
|
7 | 12 |
|
8 |
| -# Enable nested virtualization on a template virtual machine in Azure Lab Services using a script |
| 13 | +# Enable nested virtualization on a template virtual machine in Azure Lab Services by using a script |
9 | 14 |
|
10 |
| -Nested virtualization enables you to create a multi-VM environment inside a lab's template virtual machine. Publishing the template will provide each user in the lab with a virtual machine set up with multiple VMs within it. For more information about nested virtualization and Azure Lab Services, see [Enable nested virtualization on a template virtual machine in Azure Lab Services](how-to-enable-nested-virtualization-template-vm.md). |
| 15 | +Nested virtualization enables you to create a multi-VM environment inside a lab's template virtual machine. Publishing the template will provide each user in the lab with a virtual machine set up with multiple VMs within it. For more information about nested virtualization and Azure Lab Services, see [Enable nested virtualization on a template virtual machine in Azure Lab Services](how-to-enable-nested-virtualization-template-vm.md). |
11 | 16 |
|
12 |
| -The steps in this article focus on setting up nested virtualization for Windows Server 2016, Windows Server 2019, or Windows 10. You will use a script to set up template machine with Hyper-V. The following steps will guide you through how to use the [Lab Services Hyper-V scripts](https://github.com/Azure/LabServices/tree/main/ClassTypes/PowerShell/HyperV). |
| 17 | +The steps in this article focus on setting up nested virtualization for Windows Server 2016, Windows Server 2019, or Windows 10. You will use a script to set up a template VM with Hyper-V. The following steps will guide you through how to use the [Lab Services Hyper-V scripts](https://github.com/Azure/LabServices/tree/main/ClassTypes/PowerShell/HyperV). |
13 | 18 |
|
14 | 19 | >[!IMPORTANT]
|
15 |
| ->Select **Large (nested virtualization)** or **Medium (nested virtualization)** for the virtual machine size when creating the lab. Nested virtualization will not work otherwise. |
| 20 | +>Select **Large (nested virtualization)** or **Medium (nested virtualization)** for the virtual machine size when creating the lab. Nested virtualization will not work otherwise. |
| 21 | +
|
| 22 | +## Prerequisites |
| 23 | + |
| 24 | +- A lab plan and one or more labs. Learn how to [Set up a lab plan](tutorial-setup-lab-plan.md) and [Set up a lab](tutorial-setup-lab.md). |
| 25 | +- Permission to edit the lab. Learn how to [Add a user to the Lab Creator role](tutorial-setup-lab-plan.md#add-a-user-to-the-lab-creator-role). For more role options, see [Lab Services built-in roles](administrator-guide.md#rbac-roles). |
16 | 26 |
|
17 | 27 | ## Run script
|
18 | 28 |
|
@@ -40,7 +50,7 @@ The steps in this article focus on setting up nested virtualization for Windows
|
40 | 50 |
|
41 | 51 | ## Conclusion
|
42 | 52 |
|
43 |
| -Now your template machine is ready to create Hyper-V virtual machines. See [Create a Virtual Machine in Hyper-V](/windows-server/virtualization/hyper-v/get-started/create-a-virtual-machine-in-hyper-v) for instructions on how to create Hyper-V virtual machines. Also, see [Microsoft Evaluation Center](https://www.microsoft.com/evalcenter/) to check out available operating systems and software. |
| 53 | +Now your template machine is ready to create Hyper-V virtual machines. See [Create a Virtual Machine in Hyper-V](/windows-server/virtualization/hyper-v/get-started/create-a-virtual-machine-in-hyper-v) for instructions on how to create Hyper-V virtual machines. Also, see [Microsoft Evaluation Center](https://www.microsoft.com/evalcenter/) to check out available operating systems and software. |
44 | 54 |
|
45 | 55 | ## Next steps
|
46 | 56 |
|
|
0 commit comments