VMware Cloud Community
AlexEv123
Enthusiast
Enthusiast

Correct way to increase VM swap file

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 /           ext4errors=remount-ro 0   1

# swap was on /dev/sda5 during installation

UUID=674f8057-75bf-48f8-9279-5aa239b1fc9d none        swapsw          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?

Tags (3)
Reply
0 Kudos
1 Reply
scott28tt
VMware Employee
VMware Employee

Moderator: Thread moved to the Linux guest area, the problem and solution are not VMware-related.


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
Reply
0 Kudos