Swap partition in cloud-init

nbanik

New Member
Apr 22, 2024
24
2
3
Hi Experts,
If we create vm using cloud-init, we see there is no swap partition.

If we want to have swap partition what needs to be done?

Regards
 
Last edited:
Hi @nbanik, I think you already discovered that there are two types of CloudInit in PVE:
- the basic built-in one. It provides the bare minimum needed to spin up a VM
- custom one. This one is based on a custom file that you create and supply. This file/s can contain anything that Cloud Init for your particular VM supports.

You are well into the territory of custom cloudinit. Nothing that you do there is PVE-specific or depends on PVE. Much of it depends on the OS, the image, and the hardware configuration of the VM.

If we want to have swap partition what needs to be done?
Nothing specific needs to be done in PVE. It all depends on your image. You can construct the image to have swap from start, or use custom CloudInit for configuration.

Good luck


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
  • Like
Reactions: nbanik

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!