In VMware you can increase the hard-disk size without detaching or adding a disk.

Click Expand on the right and then increase the capacity

After Linux boots, run commands as follows
apt-get install -y parted
parted [디바이스]
print free
resizepart 1
resize2fs /dev/sda1
Comments 0
A nickname and a password are required. The same password edits or deletes the comment later. Comments appear after a review.