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
- Make sure the VM is fully powered off (not running or suspended).
- Before making hardware changes to your VM, create a template of it. Should any issues arise, you can restore your VM from this template.
Navigate to the VM Settings > Hardware page.
Show me how
- Navigate to the environment that contains the VM you want to edit.
If the Settings button is not visible, you do not have permission to edit the VM settings. Work with your instructor or Skytap administrator to edit these settings.
- The VM Settings page displays. Click the Hardware tab.
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).
- 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.
- Click Save.
- 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.
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
- From the Start screen, type
Disk Management(or press Windows Key + R and then type
- The VM virtual disks display.
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.
- 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.
Red Hat, CentOS
See Adjust the size of a filesystem (Ubuntu Desktop Guide).