Your department needs to decommission a VM and retain the data on that VMs disk. You decide that the best option is to attach the disk to a different VM that is currently running. Attach the data disk to the VM and ensure that the disk is accessible by the operating system.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Decommission one VM and Attach Disk to Another
Click on the Virtual Machines icon.
Select the winVM2 link and click the Delete, along with Yes to remove this VM.
Note: This process may take up to ten minutes. So, now is the time to stretch.
Once completed, navigate back to the Virtual machines page.
Select the only VM left, winVM1, and click Disks.
Select Attach existing disks.
Under Disk name, choose the winVM2 disk from the drop-down menu. (If you don’t see it in the list try refreshing the page.)
Click on Save.
Once the disk is saved to the VM, click Connect and RDP.
Choose the Download RDP File, clicking thru the saved options from the prompts.
- Connect and Recognize Disk in Windows
If you have a Windows laptop, this should already have a pre-installed RDP client.
- Open the RDP file using your native RDP client.
- When prompted, use the Winvm1 credentials located in our hands-on lab, and click Continue on the pop-up window.
- Once logged into VM, click on the File Explorer icon located at the bottom of the screen.
- Select This PC.
- Click on the Windows (G:) drive.
- You’ll notice all the files present in the winVM2 drive.
Follow these steps to RDP into the Windows VM using your Mac:
- To connect to a Windows VM from a Mac, you will need to install an RDP client such as Microsoft Remote Desktop
- Once downloaded open the application.
- In the Mircosoft Remote Desktop, click on the gear and choose the Import from RDP file and select the RDP file that was downloaded earlier.
- When prompted, use the Winvm1 credentials located in our hands-on lab, and click Continue on the pop-up window.
- Once logged into VM, click on the File Explorer icon located at the bottom of the screen.
- Select This PC.
- Click on the Windows (G:) drive.
- You’ll notice all the files present in the winVM2 drive.