Correct way to increase VM swap file |VMware Communities

Hi, I have Ubuntu 16 (X64) as Virtual Machine. I want to encrease Swap file.

Now my /etc/fstab look as :


# <file system> <mount point>   <type>  <options>   <dump>  <pass>

# / was on /dev/sda1 during installation

UUID=957db1b8-37b0-438a-b5cc-4d299741689b /           ext4 errors=remount-ro 0   1

# swap was on /dev/sda5 during installation

UUID=674f8057-75bf-48f8-9279-5aa239b1fc9d none        swap sw          0   0


I have created new swap file


sudo dd if=/dev/zero of=/swapfile bs=1G count=9

sudo mkswap /swapfile

Setting up swapspace version 1, size = 9 GiB (9629638656 bytes)

no label, UUID=fe9d9699-219e-4d28-bbac-f5b4337cb1c3


and want to change old UUID 674f8057-75bf-48f8-9279-5aa239b1fc9d to new fe9d9699-219e-4d28-bbac-f5b4337cb1c3

What correct way to do this? What correct vmloos command? Or this operation is possible to do in GUI?

Source link


Related Articles

Leave a Reply