VMware Workstations uses the Hard Disk device in order to provide storage and Hard Disk for the VM (Virtual Machine). VMware provides different hard disk types with different configurations. In this tutorial, we will examine how to add a new hard disk into a VM for the VMware Workstation.
First, open the Virtual Machine Settings which can be done via right-click to the VM tab or the VM main page which was offline.
In the following Virtual Machine Settings screen, the devices of the VM is listed. We can see that there is already a Hard Disk device that is 100GB in size and connected as an NVMe connector. There we will click on the Add button which is below. This Add button is used to add new devices where we will add a new Hard Disk.
The Add Hardware Wizard welcome screen is like below. We will select the type of hardware we want to add. Here we will select the first choice which is Hard Disk. The explanation also clearly explains this as “Add a hard disk“. Then click to the Next.
In this step, we will select the type of hard disk. The hard disk also called Virtual disk and we will select the virtual disk type. There are the following types. If the VM is currently shutdown and off-state all of these 4 types can be selected. But if the VM is currently running only SCSI and SATA can be selected.
- IDE is an old connection and disk type provided for backward compatibility.
- SCSI is a server-type connector and recommended if the VM is running currently.
- SATA is another popular disk connection type used for end-user devices.
- NVMe is the recommended connection type which is selected for SSD disks.
In this step, we will select the disk source where we can create a new disk or use an existing disk or use a physical disk.
- Create a new virtual disk is the recommended and default selection which will create a new disk file with *.vmdk extension.
- Use an existing virtual disk will use an already created virtual disk where we will select this disk *.vmkd file in the next step.
- Use a physical disk will use the host system disk or partition and provide direct access. This is not recommended for most cases.
In this Specify Disk Capacity section, we will set the maximum size of the disk. In this example, we will set it as 10GB.
- Allocate all disk space now option fill the given disk size on the host. This is not useful in most of the cases which will use the given disk size even it does not contain any data.
- Store virtual disk as a single file will create a single file for the virtual disk. I generally use this configuration for simple management.
- Split virtual disk into multiple files will put disk data into multiple files in the system.
The last step of virtual disk creation is specifying the disk name and location. The virtual disk file has the *.vmdk extension and stored with the virtual machine name and VM folder by default. But these can be changed in this step.
The added disk can be seen in the Virtual Machine Settings screen under the first disk. The new disk information like Disk file name, Current size, system free, and Maximum size is provided here. Also later the disk file can be mapped, defragmented, expanded, or compacted from this screen.