To avoid losing data, before you take a physical hard disk offline, stop all applications on the virtualization server that read or write data to that hard disk.
Open Server Manager. Click Start, point to Administrative Tools, and then click Server Manager.
In Server Manager, in the console tree, under Storage, click Disk Management.
After the disks on the virtualization server are listed in Disk Management, locate and determine if the physical disk that you want to attach to the virtual machine is online. The state of the disk (Online or Offline) is listed in the small pane on the left, where the disk name, disk type, and disk size are also listed.
If the disk is online, to take the disk offline, right-click the disk, and then click Offline. After the disk state changes to Offline, the disk is disconnected from the virtualization server.
noteNote
To perform actions on a disk in Disk Management, you must right-click the small pane on the left, where the disk name, disk type, disk size, and disk state are listed.
Connect the physical hard disk to the SCSI controller of the Imported Virtual Machine virtual machine, as follows:
noteNote
Connecting a disk to the SCSI controller of a virtual machine instead of an IDE controller enables you to perform this action without having to first shut down the virtual machine. For more information, see Connect a Virtual Hard Disk to a Virtual Machine Without Shutting It Down, in this guide.
On the virtualization server, open Hyper-V Manager. Click Start, point to Administrative Tools, and then click Hyper-V Manager.
In Hyper-V Manager, under Virtual Machines, right-click Imported Virtual Machine, and then click Settings. The Settings for Imported Virtual Machine dialog box appears.
In the left navigation pane, click SCSI Controller.
In SCSI Controller, click Hard Drive, and then click Add. A hard drive is added to the SCSI controller and is automatically selected in the left navigation pane.
In the Hard Drive properties, click Physical hard disk, and then select the physical disk that you took offline.
To connect the physical hard disk to the virtual machine, click OK. The physical hard disk is now available on the virtual machine, and can be accessed to read and write information.
To disconnect the physical hard disk from the virtual machine:
WarningWarning
To avoid losing data, before you disconnect a physical hard disk from a virtual machine, stop all applications on the virtual machine that read or write data to the physical hard disk.
In Hyper-V Manager, under Virtual Machines, right-click Imported Virtual Machine, and then click Settings. The Settings for Imported Virtual Machine dialog box appears.
In the left navigation pane, under SCSI Controller, click the physical hard disk that you want to detach from the virtual machine.
In the Hard Drive properties, click Remove.
To detach the physical hard disk from the virtual machine, click OK.