Changing a monolithic disk to a split disk in VMware Workstation
search cancel

Changing a monolithic disk to a split disk in VMware Workstation

book

Article ID: 302738

calendar_today

Updated On:

Products

VMware Desktop Hypervisor

Issue/Introduction

This article provides the steps to change a monolithic disk (a virtual machine disk contained in a single file) into to a split disk (a virtual machine disk split into 2GB files) in VMware Workstation.

 

Environment

VMware Workstation 7.x & above (Linux & Windows)

Resolution

To change from a monolithic disk to a split disk, the disk data must be copied from the monolithic disk to a new split disk. After copying the data, the new split disk must then be associated with the virtual machine. Once done, the old monolithic disk can be deleted.

Prerequisites:

  • Ensure the location of the virtual disk is known. To determine this location, go to VM > Settings, click the Hardware tab, and select the hard disk. The disk file is listed at the top, on the right side. If no path is provided, then the virtual disk is in the same directory as the configuration file. This location is shown when hovering the mouse cursor over the virtual machine in the Library, and on the virtual machine's tab when it is selected.
     
  • Ensure that the virtual disk being changed does not have any snapshots associated with it. Delete or commit any snapshots before proceeding. 
     
  • Ensure that there is enough free disk space to save the new, split disk. The new, split disk takes approximately the same amount of space as the old, monolithic disk.

    Example: If the original disk is 20GB in size, then the new disk requires an additional 20 GB of free space.

    The new disk does not have to be stored on the same drive as the old disk.

To copy a monolithic disk into a split disk:

  1. Power off the virtual machine.
  2. Open a command prompt with Administrative privileges. For more information, see Opening a command or shell prompt.

    Note:
     
    • In Windows Vista and later, press and hold Ctrl+Shift and select Run as administrator.
    • In Linux, enter su after opening the prompt, then enter the appropriate password when prompted.
       
  3. Change to the VMware Workstation program directory. By default, this directory is:
     
    • Windows XP: \Program Files\VMware\VMware Workstation
    • Windows Vista/7/8/10, 32-bit: Program Files\VMware\VMware Workstation
    • Windows Vista/7/8/10/Server 2012, 64-bit: Program Files (x86)\VMware\VMware Workstation
    • Linux: /usr/bin/
       
  4. Run this command to convert the monolithic virtual disk to a split virtual disk:

    vmware-vdiskmanager.exe -r <filepath of original disk> -t 1 <filepath of new disk>

    where

    -r introduces the original/source disk, which must be supplied in full, including the name
    -t introduces the new/target disk, which must be supplied in full, including a new name
    1 refers to the virtual disk type

    Note: There are several available disk types:
     
    • 0: A growable virtual disk contained in a single file (called "monolithic sparse").
    • 1: A growable virtual disk split into 2GB files (called "split sparse").
    • 2: A preallocated virtual disk contained in a single file (called "monolithic flat").
    • 3: A preallocated virtual disk split into 2GB files (called "split flat").
       
    Example: This command creates a virtual disk called ubuntu2, in the same directory as the original virtual disk.

    vmware-vdiskmanager –r "C:\Virtual Machines\ubuntu.vmdk" –t 1 "C:\Virtual Machines\ubuntu2.vmdk"

    Note: If the original disk (in this example, ubuntu.vmdk) is more than 2GB in size, this command actually creates multiple.vmdk files, all of whose names begin with the new virtual disk's name (in our example, ubuntu2). The command creates multiple files because it creates a virtual disk that is split into files that are each no more than 2GB in size. For more information, see the Virtual Machine Files section of Using VMware Workstation.

After creating the new virtual disk, the disk must be configured for the virtual machine to use it. For more information, see the Add an Existing Virtual Hard Disk to a Virtual Machine section of Using VMware Workstation.