A virtual disk is a file (or a set of files) on the host system that appears as a physical disk drive to the guest operating system. Virtual hard disk files store information such as the operating system, program files, and data files and have a .vmdk extension. Virtual disks can be stored as files on the host computer or on a network file server. It does not matter whether the physical disk that holds the files is IDE or SCSI. A virtual IDE drive can be stored on an IDE drive or on a SCSI drive. Please see how to fix ESXI 6.7 ALARM: Seat disk exhaustion on 10. In this article, we will show the steps to Initialize and format a virtual disk: How to add and remove a new virtual disk from a VM on VMware Workstation.
VMware Workstation Pro is the industry standard for running multiple operating systems as virtual machines (VMs) on a single Linux or Windows PC. This virtualization solution is similar to virtualBox, VMware Workstation Player, Hyper-V and Proxmox VE. You may want to see this old post: how to create and add a new virtual hard-disk to a Virtual Machine.
Add and remove a new virtual disk from a VM on VMware Workstation
Open the virtual machine settings editor as shown below. Right-click on the VM and click on settings. See how to extend a VM’s Hard Disk on VMware Workstation
Add New Virtual Hard Disk
Click Add on the virtual machine settings window
Here are some exciting guides: How to clone a server on VirtualBox, the virtual machine ran into a non-fatal problem as described below, we suggest that you take appropriate action to prevent the problem from recurring, how to solve VMware workstation .lck error, and the VM appears to be in use, how to create a VM (virtual machine) on VMware.
The Add Hardware Wizard guides you through the steps to create your virtual disk. Click on Next to continue
Choose whether you want the virtual disk to be an IDE disk or a SCSI disk as shown below. I chose SCSI (recommended), then click on Next to continue
Create a new virtual disk
On the Select a Disk window, click on “Create a new virtual disk” and click on Next to continue.
Set the capacity for the new virtual disk.
Note: Allocating all the space at the time you create the virtual disk gives somewhat better performance, but it requires as much disk space as the size you specify for the virtual disk. You may also specify whether you want the virtual disk created as one large file or split into a set of files. You should split your virtual disk if it is stored on a file system that does not support files larger than 2GB.
I will choose the "store virtual disks as a single file" as shown below.
Accept the default filename and location for the virtual disk file or change it, if you want to use a different name or location. To find a different folder, click Browse. If you want to specify a device node for your virtual disk, click Advanced. On the advanced settings screen, you can also specify a disk mode. This is useful in certain special-purpose configurations in which you want to exclude disks from snapshots.
As you can see below, I have accepted the default.
As you can see below, the virtual disk is being created.
As you can see on the Virtual Machine settings page, the New Hard disk appears.
Initialize and format the new drive in Windows
To initialize and format the new drive in Windows, you will have to launch Computer Management. This can be launched via the Server Manager, Windows Search, etc. I will be showing you how to launch this via Windows Administrative Tools
"Control Panel\System and Security\Administrative Tools\Computer Management.lnk". Click on Computer Management
Right-click the disk and select bring it
Online. If you do not find the drive yet, please under “
Actions" > Rescan Disks“. If you on working on a cloud platform such as AWS, you may have to rescan in order to see the attached disk.
Right-click the disk to be initialized and then click Initialize Disk. Windows prompts you to initialize the disk before the Logical Disk Manager can access it.
Select GPT, you may wish to select MBR as I described in this old post. GPT is the abbreviation of GUID Partition Table, which is a standard for the layout of the partition table on a physical hard disk, using globally unique identifiers (GUID). MBR is another kind of partition table format. It is short for the master boot record. Comparatively, the MBR is older than the GPT
Please see How to Add and Format a New Virtual Disk to an EC2 Instance, How to install Windows Server 2022 on VMware Workstation, how to Enable Hyper-V on a VMware Workstation, and How to fix “The security database on the server does not have a computer account for this workstation trust relation [Part 1].
Create New Simple Volume
Right-click the unallocated space and click New Simple Volume.
Click on Next to continue
Enter the size of the partition (in MB) and click Next. I will leave it as default to use all available disk space.
Select a drive letter and click Next.
Select the file system type and volume label. For me as you can see below, I did not enter a Volume name. I recommend you do not do this in a live environment (Production).
Click on Finish to complete the process.
As you can see below, we have our newly created virtual disk available on our VM.
Part B – Removed the attached Disk Drive: Use the virtual machine settings editor to disconnect a virtual disk from a virtual machine. Select a virtual machine and right-click on it.
– Select settings as shown below
You do not need to Power your VM of before dissociate a virtual disk. Please test this :)
Please select the virtual disk you want to remove. When you are done, click on OK.
As you can see, the virtual disk will be removed from your VM immediately.
I hope you found this blog post helpful on the steps to Initialize and format a virtual disk: How to add and remove a new virtual disk from a VM on VMware Workstation. If you have any questions, please let me know in the comment session.