Attach Disk1.vhdx to VM1 - Dynamic Expansion | AZ-800 Exam Preparation

Attach Disk1.vhdx to VM1

Question

SIMULATION

-

SRV1 contains a virtual machine named VM1.

You need attach c:\vhds\Disk1.vhdx to VM1. The solution must ensure that Disk1 can be expanded dynamically when VM1 runs.

To complete this task, sign in the required computer or computers.

Explanations

To attach c:\vhds\Disk1.vhdx to VM1 and ensure that it can be expanded dynamically when VM1 runs, follow the steps below:

  1. Connect to SRV1:

    • Use Remote Desktop Connection or any other remote access tool to connect to SRV1, which is the server containing VM1.
  2. Open Hyper-V Manager:

    • Click on the Windows start menu, search for Hyper-V Manager and launch it.
  3. Select VM1:

    • In Hyper-V Manager, locate VM1 under the virtual machines section.
  4. Edit VM1 settings:

    • Right-click on VM1 and select "Settings".
  5. Add a new Virtual Hard Disk:

    • In the VM1 Settings window, click on "Add Hardware" and select "Hard Drive".
    • Choose "Virtual hard disk" and click "Next".
    • Select "Use an existing virtual hard disk" and click "Browse".
    • Navigate to c:\vhds\Disk1.vhdx, select it and click "Open".
    • Choose "Dynamically expanding" for the disk type and click "Finish".
    • Click "Apply" to save the changes.
  6. Start VM1:

    • In Hyper-V Manager, right-click on VM1 and select "Start".

After completing these steps, c:\vhds\Disk1.vhdx will be attached to VM1, and the disk will be able to expand dynamically as VM1 runs.