Manage Disks on Virtual Machines
Posted by Karl Zimmerman, Last modified by Tim Burke on 09 August 2013 05:52 PM
Virtual machine storage is provided by disks. A disk is a partition of a data store that is allocated to a specific virtual machine. Disks can be assigned as standard or swap disks. They can also be set as primary, which means the disk is used to boot the Operating System.
Add a Disk to a Virtual Machine
Adding a disk to a virtual machine requires the VM to be rebooted. If a VM is running when you try to add a new disk to it, you’ll be asked to confirm the reboot. To add a disk to a virtual machine:
When you add a new disk to a virtual machine it will automatically become available to that machine. However, no configuration is changed on the virtual machine itself, so you may need to manually mount the drive.
Resize a Disk
You can easily resize disks when needed. The resize will fail if your current usage is greater than the new size you request.
To change disk size:
Some operating systems will require a reboot if the disk size is changed.
Delete a Disk
Before deleting a disk on a Linux VM, make sure you have removed any references to the disk in the file /etc/fstab and that any system files you may have copied there have been relocated to the primary disk.
To delete a disk: