# OpenVZ swap space error during install

**URL:** <https://meta.discourse.org/t/openvz-swap-space-error-during-install/74958>\
**Category:** Self-hosting\
**Tags:** server-resources\
**Created:** [November 28, 2017, 4:51pm UTC](https://meta.discourse.org/t/openvz-swap-space-error-during-install/74958 "2017-11-28T16:51:36Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![hosyminh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hosyminh/32/83350_2.png) [@hosyminh](https://meta.discourse.org/u/hosyminh)\
**Post date:** [November 28, 2017, 4:51pm UTC](https://meta.discourse.org/t/openvz-swap-space-error-during-install/74958/1 "2017-11-28T16:51:36Z")

</div>

```
./discourse-setup
WARNING: Discourse requires at least 2GB of swap when running with 2GB of RAM
or less. This system does not appear to have sufficient swap space.

Without sufficient swap space, your site may not work properly, and future
upgrades of Discourse may not complete successfully.

Ctrl+C to exit or wait 5 seconds to have a 2GB swapfile created.
2097152+0 records in
2097152+0 records out
2147483648 bytes (2.1 GB, 2.0 GiB) copied, 7.2644 s, 296 MB/s
Setting up swapspace version 1, size = 2 GiB (2147479552 bytes)
no label, UUID=6e02cc8b-b5af-412b-9121-3fc09f0055a0
swapon: /swapfile: swapon failed: Operation not permitted
/swapfile swap swap auto 0 0
sysctl: permission denied on key 'vm.swappiness'
vm.swappiness = 10
Failed to create swap, sorry!

```

help me !!

---

_[View the full topic](https://meta.discourse.org/t/openvz-swap-space-error-during-install/74958)._
