|
| 1 | +--- |
| 2 | +title: Labs concepts |
| 3 | +titleSuffix: Azure Lab Services |
| 4 | +description: Learn the different approaches for troubleshooting lab VMs in Azure Lab Services. Understand how each apporach affects user data. |
| 5 | +services: lab-services |
| 6 | +ms.service: lab-services |
| 7 | +author: ntrogh |
| 8 | +ms.author: nicktrog |
| 9 | +ms.topic: conceptual |
| 10 | +ms.date: 12/05/2022 |
| 11 | +--- |
| 12 | + |
| 13 | +# Approaches for troubleshooting lab VMs in Azure Lab Services |
| 14 | + |
| 15 | +In this article, you learn about the different approaches for troubleshooting lab VMs. Understand how each approach affects your lab environment and user data on the lab VM. There can be different reasons why you're unable to connect to a lab VM in Azure Lab Services, or why you're stuck to complete a course. For example, the underlying VM is experiencing issues, your organization's firewall settings have changed, or a software change in the lab VM operating system. |
| 16 | + |
| 17 | +## Lab VM troubleshooting workflow |
| 18 | + |
| 19 | +Use the following process for troubleshooting issues with a lab VM in Azure Lab Services: |
| 20 | + |
| 21 | +1. If you're not able to connect to the lab VM with Remote Desktop (RDP) or Secure Shell (SSH): |
| 22 | + |
| 23 | + 1. [Redeploy your lab VM](./how-to-reset-and-redeploy-vm.md#redeploy-vms) to another infrastructure node, while maintaining the user data. |
| 24 | + |
| 25 | + This approach might help resolve issues with the underlying virtual machine. Learn more about [redeploying versus resetting a lab VM](#redeploy-versus-reset-a-lab-vm) and how they affect your user data. |
| 26 | + |
| 27 | + 1. [Verify your organization's firewall settings for your lab](./how-to-configure-firewall-settings.md) with the educator and IT admin. |
| 28 | + |
| 29 | + A change in the organization's firewall or network settings might prevent your computer to connect to the lab VM. |
| 30 | + |
| 31 | + 1. If you still can't connect to the lab VM, [reset the lab VM](./how-to-reset-and-redeploy-vm.md#reset-vms). |
| 32 | + |
| 33 | + > [!IMPORTANT] |
| 34 | + > Resetting a lab VM deletes the user data in the VM. Make sure to [store the user data outside the lab VM](#store-user-data-outside-the-lab-vm). |
| 35 | + |
| 36 | +1. After you connect to the lab VM, it's not working correctly. |
| 37 | + |
| 38 | + The lab VM might be malfunctioning as a result of installing a software component, or making a change to the operating system configuration. |
| 39 | + |
| 40 | + 1. If the lab VM uses Windows, you might use the Windows System Restore built-in functionality to undo a previous change to the operating system. Verify with an educator or IT admin how to use [System Restore](https://support.microsoft.com/windows/use-system-restore-a5ae3ed9-07c4-fd56-45ee-096777ecd14e). |
| 41 | + |
| 42 | + 1. If the lab VM is still in an incorrect state, [reset the lab VM](./how-to-reset-and-redeploy-vm.md#reset-vms). |
| 43 | + |
| 44 | + > [!IMPORTANT] |
| 45 | + > Resetting a lab VM deletes the user data in the VM. Make sure to [store the user data outside the lab VM](#store-user-data-outside-the-lab-vm). |
| 46 | +
|
| 47 | +## Redeploy versus reset a lab VM |
| 48 | + |
| 49 | +Azure Lab Services lets you redeploy, labeled *troubleshooting* in the Azure portal, or reset a lab VM. Both operations are similar, and result in the creation of a new virtual machine instance. However, there are fundamental differences that affect the user data on the lab VM. |
| 50 | + |
| 51 | +When you redeploy a lab VM, Azure Lab Services will shut down the VM, move the VM to a new node in within the Azure infrastructure, and then power it back on. You can think of a redeploy operation as a refresh of the underlying VM for your lab. All data that you saved in the [OS disk](/azure/virtual-machines/managed-disks-overview#os-disk) (usually the C: drive on Windows) of the VM will still be available after the redeploy operation. Any data on the [temporary disk](/azure/virtual-machines/managed-disks-overview#temporary-disk) (usually the D: drive on Windows) is lost after a redeploy operation and after a VM shutdown. |
| 52 | + |
| 53 | +Learn more about how to [redeploy a lab VM in the Azure Lab Services website](./how-to-reset-and-redeploy-vm.md#redeploy-vms). |
| 54 | + |
| 55 | +When you reset a lab VM, Azure Lab Services will shut down the VM, delete it, and recreate a new lab VM from the original template VM. You can think of a reset as a refresh of the entire lab VM, including the underlying VM. After you reset a lab VM, all the data that you saved on the OS disk (usually the C: drive on Windows), and the temporary disk (usually the D: drive on Windows), is lost. To avoid losing data on the VM, [store the user data outside the lab VM](#store-user-data-outside-the-lab-vm). |
| 56 | + |
| 57 | +Learn more about how to [reset a lab VM in the Azure Lab Services website](./how-to-reset-and-redeploy-vm.md#reset-vms). |
| 58 | + |
| 59 | +> [!NOTE] |
| 60 | +> Redeploying a VM is only available for lab VMs that you created in a lab plan. VMs that are connected to a lab account only support the reset operation. |
| 61 | +
|
| 62 | +## Store user data outside the lab VM |
| 63 | + |
| 64 | +When you reset a lab VM, all user data on the VM is lost. To avoid losing this data, you have to store the user data outside of the lab VM. You have different options to configure the template VM: |
| 65 | + |
| 66 | +- [Use OneDrive to store user data](./how-to-prepare-windows-template.md#install-and-configure-onedrive). |
| 67 | +- [Attach external file storage](./how-to-attach-external-storage.md), such as Azure Files or Azure NetApp Files. |
| 68 | + |
| 69 | +## Create multiple labs for a course |
| 70 | + |
| 71 | +As students use a lab VM to advance through a course, they might get stuck at specific steps. For example, they're unable to install and configure a software component on the lab VM. To unblock students, you can create multiple labs, based off different template VMs, for each of the key stages in the course. |
| 72 | + |
| 73 | +Learn how to [set up a new lab](./tutorial-setup-lab.md#create-a-lab) and how to [create and manage templates](./how-to-create-manage-template.md). |
| 74 | + |
| 75 | +## Next steps |
| 76 | + |
| 77 | +- As a student, learn how to [reset or deploy lab VMs](./how-to-reset-and-redeploy-vm.md). |
| 78 | +- As an admin or educator, [attach external file storage to a lab](./how-to-attach-external-storage.md). |
| 79 | +- As an educator, [use OneDrive to store user data](./how-to-prepare-windows-template.md#install-and-configure-onedrive). |
0 commit comments