0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-08-22 11:28:33 +00:00
terraform-provider-proxmox/templates/guides/cloud-image.md.tmpl
Pavel Boldyrev b321a01b4f
chore(docs): fix TOC format, cleanup cloud image guide (#2121)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2025-08-18 22:34:52 -04:00

26 lines
1.0 KiB
Cheetah

---
layout: page
page_title: "Create a VM from a Cloud Image"
subcategory: Guides
description: |-
This guide explains how to create a VM from a cloud image.
---
# Create a VM from a Cloud Image
## Download a public cloud image from URL
Example of how to create a CentOS 8 VM from a "generic cloud" `qcow2` image. CentOS 8 images are available at [cloud.centos.org](https://cloud.centos.org/centos/8-stream/x86_64/images/):
{{ codefile "terraform" "examples/guides/cloud-image/centos-qcow2/main.tf" }}
Ubuntu cloud images are available at [cloud-images.ubuntu.com](https://cloud-images.ubuntu.com/). Ubuntu cloud images are in `qcow2` format as well, but stored with `.img` extension, so they can be directly uploaded to Proxmox without renaming.
{{ codefile "terraform" "examples/guides/cloud-image/ubuntu-img/main.tf" }}
## Create a VM from an existing image on Proxmox
If you already have a cloud image on Proxmox, you can use it to create a VM:
{{ codefile "terraform" "examples/guides/cloud-image/debian-from-storage/main.tf" }}