# Add hard disk in UI, under VM -> Hardware -> Click on Add -> Hard Disk
# Non-interactive parted command
# sudo parted /dev/sdb mklabel gpt mkpart primary ext4 0% 100%
# The following shows the interactive mode of parted
# Confirm that a new disk is available (sdb with 3TB in my case)
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
# Resize the file system in UI, under VM -> Hardware -> Click on the disk to resize, click "Resize disk" button
# Confirm increase in disk space (1TB in my case)
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1T 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 1G 0 part /boot
└─sda3 8:3 0 1T 0 part