You must perform certain tasks before you configure a virtual machine to use a physical disk or unused partition on the host system.
You must perform these tasks before you run the New Virtual Machine wizard to add a physical disk to a new virtual machine, and before you add a physical disk to an existing virtual machine.
Procedure
- If a partition is mounted by the host or in use by another virtual machine, unmount it.
The virtual machine and guest operating system access a physical disk partition while the host continues to run its operating system. Corruption is possible if you allow the virtual machine to modify a partition that is simultaneously mounted on the host operating system.
Option Description The partition is mapped to a Windows Server 2008 R2 or Windows Server 2012 R2 host - Select Start > Settings > Control Panel > Administrative Tools > Computer Management > Storage > Disk Management.
- Select a partition and select Action > All Tasks > Change Drive Letter and Paths.
- Click Remove.
The partition is mapped to a Windows 7, Windows 8, or Windows 10 host - Select Start > Control Panel.
- In the menu bar, click the arrow next to Control Panel.
- From the drop-down menu, select All Control Panel Items > Administrative Tools > Computer Management > Storage > Disk Management (Local).
- Right-click a partition and choose Change Drive Letter and Paths.
- Click Remove and OK.
- Check the guest operating system documentation regarding the type of partition on which the guest operating system can be installed.
On Windows 7 hosts, you cannot use the system partition, or the physical disk that contains it, in a virtual machine. Other operating systems, such as Linux, can be installed on a primary or an extended partition on any part of the drive.
- If the physical partition or disk contains data that you need in the future, back up the data.
- If you use a Windows host IDE disk in a physical disk configuration, ensure that it is configured as the primary on the IDE channel.
- On a Linux host, set the device group membership or device ownership appropriately.
- Verify that the primary physical disk device or devices are readable and writable by the user who runs Workstation Pro.
Physical devices, such as /dev/hda (IDE physical disk) and /dev/sdb (SCSI physical disk), belong to group-id disk on most distributions. If this is the case, you can add Workstation Pro users to the disk group. Another option is to change the owner of the device. Consider all the security issues involved in this option.
- Grant Workstation Pro users access to all /dev/hd[abcd] physical devices that contain operating systems or boot managers.
When permissions are set correctly, the physical disk configuration files in Workstation Pro control access. This reliability provides boot managers access to configuration files and other files they might need to boot operating systems. For example, LILO needs to read /boot on a Linux partition to boot a non-Linux operating system that might be on another drive.
- Verify that the primary physical disk device or devices are readable and writable by the user who runs Workstation Pro.