You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/lab-services/class-type-ethical-hacking.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,9 +15,7 @@ ms.date: 03/04/2024
15
15
16
16
This article shows you how to set up a class that focuses on the forensics side of ethical hacking with Azure Lab Services. In an ethical hacking class, students can learn modern techniques for defending against vulnerabilities. Penetration testing, a practice that the ethical hacking community uses, occurs when someone attempts to gain access to the system or network to demonstrate vulnerabilities that a malicious attacker might exploit.
Each student gets a Windows host virtual machine (VM) that has two nested virtual machines: one VM with Metasploitable3 image and another VM with the Kali Linux image. Use the Metasploitable VM for exploiting purposes. The Kali VM provides access to the tools you need to run forensic tasks.
18
+
Each student gets a Windows host virtual machine (VM) that has two nested virtual machines: one VM with Metasploitable3 image and another VM with the Kali Linux image. Use the Metasploitable VM to try exploitation tasks. The Kali VM provides access to the tools you need to run forensic tasks.
21
19
22
20
## Prerequisites
23
21
@@ -33,6 +31,8 @@ Each student gets a Windows host virtual machine (VM) that has two nested virtua
33
31
| Virtual machine (VM) size | Medium (Nested Virtualization) |
@@ -61,7 +61,7 @@ To configure the template VM, complete the following tasks:
61
61
62
62
Kali is a Linux distribution that includes tools for penetration testing and security auditing.
63
63
64
-
The Rapid7 Metasploitable image is an image purposely configured with security vulnerabilities. Use this image to test and find issues. The following instructions show you how to use a precreated Metasploitable image. However, if you need a newer version of the Metasploitable image, see [https://github.com/rapid7/metasploitable3](https://github.com/rapid7/metasploitable3).
64
+
The Rapid7 Metasploitable image is an image purposely configured with security vulnerabilities. Use this image to test and find issues. The following instructions show you how to set up a particular Metasploitable image. If you need a newer version of the Metasploitable, see [https://github.com/rapid7/metasploitable3](https://github.com/rapid7/metasploitable3).
65
65
66
66
- To install Kali Linux and Metasploitable on the template VM, run the following command:
67
67
@@ -109,7 +109,7 @@ To install the Metasploitable nested VM on the template VM:
109
109
1. Select **Download Metasploitable Now**.
110
110
1. When the download finishes, extract the zip file, and remember the location of the *Metasploitable.vmdk* file.
111
111
112
-
1. Convert the extracted vmdk file to a Hyper-V vhdx file with StarWind V2V Converter.
112
+
1. Convert the extracted *.vmdk* file to a Hyper-V *.vhdx* file with StarWind V2V Converter.
113
113
114
114
1. Download and install [StarWind V2V Converter](https://www.starwindsoftware.com/starwind-v2v-converter#download).
Copy file name to clipboardExpand all lines: articles/lab-services/how-to-enable-nested-virtualization-template-vm-using-script.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,53 +34,53 @@ For concepts, considerations, and recommendations about nested virtualization, s
34
34
To enable nested virtualization on the template VM, first connect to the VM by using a remote desktop (RDP) client. You can then apply the configuration changes by either running a PowerShell script or using Windows tools.
35
35
36
36
> [!IMPORTANT]
37
-
> It is recommend to use nested virtualization with Windows 11 to take advantage of the 'Default Switch' created when you install Hyper-V on a Windows client OS. Nested virtualization on Windows Server OSes should be used when additional control over the network settings is required.
37
+
> We recommend that you use nested virtualization with Windows 11. You can take advantage of the 'Default Switch' created when you install Hyper-V on a Windows client OS. You should use nested virtualization on Windows Server operating systems when you require additional control over the network settings.
38
38
39
39
# [PowerShell](#tab/powershell)
40
40
41
41
You can use a PowerShell script to set up nested virtualization on a template VM in Azure Lab Services. The following steps guide you through how to use the [Lab Services Hyper-V scripts](https://github.com/Azure/LabServices/tree/main/ClassTypes/PowerShell/HyperV). The script is intended for Windows 11.
42
42
43
43
1. Follow these steps to [connect to and update the template machine](./how-to-create-manage-template.md#update-a-template-vm).
> The script might require you to restart the VM. If so, stop and start the template VM from the [Azure Lab Services website](https://labs.azure.com) and re-run the script until **Script completed** is seen in the output.
61
+
> The script might require you to restart the VM. If so, stop and start the template VM from the [Azure Lab Services website](https://labs.azure.com) and re-run the script until you see **Script completed** in the output.
62
62
63
63
1. Don't forget to reset the execution policy.
64
64
65
65
```powershell
66
66
Set-ExecutionPolicy default -force
67
67
```
68
68
69
-
The template VM is now configured for use with nested virtualization and you can [create VMs](/windows-server/virtualization/hyper-v/get-started/create-a-virtual-machine-in-hyper-v?tabs=hyper-v-manager) inside it. Use the switch specified by the script when creating new Hyper-V VMs.
69
+
The template VM is now configured for use with nested virtualization. You can [create VMs](/windows-server/virtualization/hyper-v/get-started/create-a-virtual-machine-in-hyper-v?tabs=hyper-v-manager) inside it. Use the switch specified by the script when creating new Hyper-V VMs.
70
70
71
71
# [Windows tools](#tab/windows)
72
72
73
-
You can set up nested virtualization on a template VM in Azure Lab Services using Windows features and tools directly. The following steps describe how to manually set up a Lab Services machine template with Hyper-V. Steps are intended for Windows 11.
73
+
You can set up nested virtualization on a template VM in Azure Lab Services by using Windows features and tools directly. The following steps describe how to manually set up a Lab Services machine template with Hyper-V. These steps are intended for Windows 11.
74
74
75
75
1. Open the **Settings** page.
76
76
1. Select **Apps**.
77
77
1. Select **Optional features**.
78
78
1. Select **More Windows features** under the **Related features** section.
79
79
1. The **Windows features** pop-up appears. Check the **Hyper-V** feature and select **OK**.
80
80
1. Wait for the Hyper-V feature to be installed. When prompted to restart the VM, select **Don't restart**.
81
-
1. Go to the [Azure Lab Services website](https://labs.azure.com) to stop and restart the template VM.
81
+
1. To start and stop the template VM, go to the [Azure Lab Services website](https://labs.azure.com).
82
82
83
-
The template VM is now configured to use nested virtualization and you can [create VMs](/windows-server/virtualization/hyper-v/get-started/create-a-virtual-machine-in-hyper-v?tabs=hyper-v-manager) inside it. Use 'Default Switch' when creating new nested VMs with Hyper-V.
83
+
The template VM is now configured to use nested virtualization. You can [create VMs](/windows-server/virtualization/hyper-v/get-started/create-a-virtual-machine-in-hyper-v?tabs=hyper-v-manager) inside it. Use Default Switch when you create new nested VMs with Hyper-V.
84
84
85
85
---
86
86
@@ -156,22 +156,22 @@ We recommend that you set Hyper-V VMs [automatic shutdown action set to shutdown
156
156
157
157
### Hyper-V is too slow
158
158
159
-
Increase the number vCPUs and memory that is assigned to the Hyper-V VM in Hyper-V Manager. The total number of vCPUs can't exceed the number of cores of the host VM (lab VM). If you're using variable memory, the default option, increase the minimum amount of memory assigned to the VM. The maximum amount of assigned memory, if using variable memory, can exceed the amount of memory of the host VM. This approach allows greater flexibility when having to complete intensive operations on just one of the Hyper-V VMs.
159
+
Increase the number vCPUs and memory that is assigned to the Hyper-V VM in Hyper-V Manager. The total number of vCPUs can't exceed the number of cores of the host VM (lab VM). If you're using variable memory, the default option, increase the minimum amount of memory assigned to the VM. The maximum amount of assigned memory, if you use variable memory, can exceed the amount of memory of the host VM. This approach allows greater flexibility when having to complete intensive operations on just one of the Hyper-V VMs.
160
160
161
161
If you're using the **Medium (Nested Virtualization)** VM size for the lab, consider using the **Large (Nested Virtualization)** VM size instead to have more compute resources for each lab VM.
162
162
163
163
### Internet connectivity isn't working for nested VMs
164
164
165
165
- Verify that you followed the previous steps for enabling nested virtualization. Consider using the PowerShell script option.
166
166
167
-
- Check if the host VM (lab VM) has the DHCP role installed if you are using Windows Server.
167
+
- Check if the host VM (lab VM) has the DHCP role installed if you're using Windows Server.
168
168
169
-
Running a lab VM as a DHCP server is an *unsupported* scenario. See [Can I deploy a DHCP server in a virtual network?](/azure/virtual-network/virtual-networks-faq) for details. Changing the settings of the lab VM can cause issues with other lab VMs.
169
+
Running a lab VM as a DHCP server isn't supported. See [Can I deploy a DHCP server in a virtual network?](/azure/virtual-network/virtual-networks-faq). Changing the settings of the lab VM can cause issues with other lab VMs.
170
170
171
171
- Check the network adapter settings for the Hyper-V VM.
172
172
173
173
- Set the IP address of the DNS server and DHCP server to [168.63.129.16](/azure/virtual-network/what-is-ip-address-168-63-129-16).
174
-
- If the guest VM IPv4 address is set manually, verify it is in the range of the NAT network connected to the Hyper-V switch.
174
+
- If the guest VM IPv4 address is set manually, verify that it's in the range of the NAT network connected to the Hyper-V switch.
175
175
- Try enabling Hyper-V [DHCP guard](/archive/blogs/virtual_pc_guy/hyper-v-networkingdhcp-guard) and [Router guard](/archive/blogs/virtual_pc_guy/hyper-v-networkingrouter-guard).
176
176
177
177
```powershell
@@ -183,7 +183,7 @@ If you're using the **Medium (Nested Virtualization)** VM size for the lab, cons
183
183
184
184
### Can't start Hyper-V VMs
185
185
186
-
You might choose to create a non-admin user when creating your lab. To be able to start or stop Hyper-V VMs, the non-admin user must be added to **Hyper-V Administrators** group. For more information about Hyper-V and non-admin users, see [Non-admin user](concept-nested-virtualization-template-vm.md#non-admin-user).
186
+
You might choose to create a non-admin user when you create a lab. To be able to start or stop Hyper-V VMs, you must add such a user to the **Hyper-V Administrators** group. For more information about Hyper-V and non-admin users, see [Non-admin user](concept-nested-virtualization-template-vm.md#non-admin-user).
0 commit comments