XenServer

From Network Security Wiki

Increasing free disk space in Ubuntu VM

Source: vmotionhost.com

Increase disk size under Storage section in XenCenter.

Boot up the VM & log into it.

Verify Disk Space:

df -h

Check the partition layout

sudo fdisk -l /dev/xvda

To create new partitions, all old partiotions have to be deleted. To be able to delete the swap partitions the swap has to be turned off.

Verify Swap usage:

free -m

Turn off Swap disk

sudo swapoff -a

Now delete all partitions

sudo fdisk /dev/xvda