So I installed ubuntu onto a virtual machine and just realized that it no longer creates a swap partition. Why is this I thought those were important.
Asked
Active
Viewed 204 times
0
-
2Does this answer your question? [swap partition vs swap file](https://askubuntu.com/questions/904372/swap-partition-vs-swap-file) – Nmath Jun 29 '21 at 23:07
-
1It defaults to `/swapfile` creation unless specified during a "Something Else" setup when installing the OS. – Terrance Jun 29 '21 at 23:37
-
it's not shown in the list of partitions. – Mintmag Jun 30 '21 at 09:01
-
In a virtualized environment it is usually bad to swap in the guest. It could happen that the guest swaps in from it's file/disk onto a page that is swapped out by the host which needs to swap in ... - just bad. If anything then the host should have swap and if overall having a rather dense setup ballooning can be considered to further help. I can't find where (so no official answer) but I'm rather sure the installer considers that. – Christian Ehrhardt Jun 30 '21 at 10:27
-
@Mintmag `/swapfile` is a file and not a partition so it will not show up in the list. Look at `cat /etc/fstab` and you should see a line about swap in it. Also, `swapon` from a terminal window will show you what swap is running on your system. – Terrance Jun 30 '21 at 14:23
-
Sorry, for the late reply. So this is normal behavior than and a swap partition isn't necessary? What happens if you create one regardless? – Mintmag Jul 09 '21 at 09:45
-
Any thoughts on adding a swap partition when one is already created in the system – Mintmag Aug 05 '21 at 19:03