Adding or extending a virtual disk

If you think you’ll need to shrink a virtual disk later, add a second disk that you can delete, instead of expanding your primary disk. It is more difficult to shrink a virtual disk than to delete one.

Editing the disk settings in Skytap

To add or extend a virtual disk, change the VM hardware settings
  1. Make sure the VM is fully powered off (not running or suspended).
  2. Before making hardware changes to your VM, create a template of it. Should any issues arise, you can restore your VM from this template.
  3. Navigate to the VM Settings > Hardware page.

    hardware settings

  4. In the Disks (GB) section, the current virtual disks (and their current disk size) for the VM are displayed.

    • To increase a disk size, type a new value in the Disks (GB) box.
    • To add a new disk, click add disk (Add disk).

    Notes

    • Skytap allocates storage in binary units (GiB). However, storage is labeled as GB in the Skytap interface and API. For example, if you create a 10 GB disk for a VM, the disk has 10,737,418,240 bytes of storage within your VM (10 GiB).
    • 2 GB is the minimum disk size.
    • A VM can have a maximum of 15 disks, with a maximum, combined storage size of 2 TB.
  5. Click Save.
  6. Depending on the VM guest OS, you may also need to format or extend the disk so that the VM OS recognizes it. The method to do this varies, depending on the VM OS. You may need to use in-guest OS settings or third-party software such as Partition Magic. For help, see Changing the disk partition settings in the VM guest OS below.

Changing the disk partition settings in the VM guest OS

This section describes additional steps you may need to take to format or extend a disk so that the VM operating system recognizes it.

Operating system

Notes

Windows XP

Skytap extends an NTFS partition when the disk is increased if there is a single primary partition on the disk, and the new disk is re-sized automatically.

After changing the disk size, Windows performs a disk integrity check to be sure that the file system was not corrupted.

Windows 7, Windows Server 2008 R2, or Windows 10

  1. From the Start screen, type Disk Management (or press Windows Key + R and then type diskmgmt.msc)
  2. The VM virtual disks display.
  3. To add a new virtual disk, right-click the disk name, and select Online.

    To extend the virtual disk, there are two options:

    • To extend the current partition into the new unallocated space, right-click the C: drive, and select Extend Volume from the pop-up menu.
    • To create a secondary partition, right-click the new unallocated space and select the option for a secondary partition on this disk. Right-click the disk name, and select Online.

      Notes

      • Depending on the VM administrative policies, you may need to sign in as an administrator and set this disk to “Online” before formatting it.
      • After changing the disk size, Windows performs a disk integrity check to be sure that the file system was not corrupted.

Windows 8, Windows 8.1, Windows Server 2012, Windows Server 2012 R2

Windows automatically attempts to resize the primary partition if it is the only partition on the disk and it is NTFS.

After changing the disk size, Windows performs a disk integrity check to be sure that the file system was not corrupted.

Ubuntu

See Adjust the size of a filesystem (Ubuntu Desktop Guide).

AIX

  1. Type cfgmgr.
  2. Use chvg -g volumeGroup to examine the disks in the volume group for changes. See chvg Command.
  3. Use chfs -a size=+{size} {Mount Point} to expand the disk {Mount Point} by {size}. See chfs Command.