Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

VM Provisioning · Virtualization Automation

Direct answer

VM Provisioning automates creation of virtual machines from declared compute, memory, firmware, disk, network, placement and identity inputs while separating object creation from usable guest delivery.

When to use this

Use it when designing, operating or troubleshooting virtualization automation around VM Provisioning. Keep object identity, management-task result, effective hypervisor state, guest readiness and workload acceptance as separate proof boundaries.

First 30 seconds

1. VM provisioning from templates with customisation.

2. Unique identity per VM.

3. IP from IPAM.

4. Tags/owner.

5. Register in all systems.

Operational verification

request → template clone → customise → register

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
virtualization provisioning automation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformvirtualization provisioning automation · VM Provisioning owns vendor-neutral virtual-machine creation workflow; template mechanics and platform-specific provisioning APIs remain in their dedicated branches. · VMware PowerCLI
Key commandGet-VM -Name <vm> | Select-Object Name,PowerState,VMHost,Datastore
Scope / prerequisiteUse it when designing, operating or troubleshooting virtualization automation around VM Provisioning. Keep object ident…
Reference · 1
What next?3 suggested next steps
Catalog command links1
Evidence1
On this pageJump to a specific section
Automation command reference

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

7 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Operational evidence path Verify boundary

provisioning intent → unique VM identity → placement/capacity → compute/storage/network allocation → create/clone task → effective VM config → boot/customization → guest identity/reachability → workload acceptance

Healthy evidence: requested hardware and placement are read back correctly, the guest reaches a known identity and the intended service acceptance succeeds.

Step 2 Command read-back and what it shows Verify boundary

For Virtualization Automation → VM Provisioning, read back with Get-VM -Name <vm> | Select-Object Name,PowerState,VMHost,Datastore. Success is discriminated by one unique VM maps to the request, has expected sizing/placement/network, provisioning task is complete, retries remain idempotent and the bounded guest connectivity/readiness check succeeds; failure remains when missing/duplicate VM, wrong resources/placement, failed/pending task, non-idempotent retry behavior or correct inventory object with failed guest acceptance. Get-VM -Name <vm> shows management-plane VM inventory for the supplied selector, but it does not show request correlation, guest OS readiness or application health.

Step 3 Common mistakes Verify boundary
  • Provisioning without IP from IPAM.
Step 4 Verification path Verify boundary

Record management endpoint, VM/instance ID, host/cluster, datastore/storage and network IDs; inspect the runtime/control-plane result; then query the virtual machine hardware/configuration plus guest-visible boot/network/storage state through an independent read path and compare it with the versioned intent. For Virtualization Automation → VM Provisioning, the evidence must connect the control-plane result to the virtual machine hardware/configuration plus guest-visible boot/network/storage state and explain any gap between desired, controller-reported and consumer-visible state.

Step 5 Failure modes and next checks Narrow the fault

Suspicious evidence: duplicate naming, stale template, capacity mismatch or bootstrap failure leaves an inventory object that is not a usable machine.

A provisioned VM object shows inventory existence only; usable service requires successful boot, guest initialization, network/storage attachment and application acceptance.

Step 6 Observation-driven branch and next-check logic Narrow the fault

Start Virtualization Automation → VM Provisioning from one identified target/request/artifact and timestamp. Decision path: if no correlated task/object, inspect request idempotency/permissions; if multiple matching VMs, stop retries and reconcile identity; if one VM exists but properties/readiness differ, inspect placement/spec/customization before downstream application work.

Step 7 Where it fails Narrow the fault

Failure analysis for Virtualization Automation → VM Provisioning should follow the path through the components: automation spec → virtualization API → scheduler/task → hypervisor/storage/network → VM object → guest boot/customization → guest/read-back. Common failure classes include wrong template/placement, stale task status, datastore/network mismatch, duplicate VM creation, guest customization failure and API success before guest readiness. Before retrying a mutating operation, read current target state using the stable identity management endpoint, VM/instance ID, host/cluster, datastore/storage and network IDs; if state is unknown, stop broad retries.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • VM object created ≠ VM booted successfully.
  • VM powered on ≠ guest initialization completed.
  • Guest tools heartbeat ≠ application ready.
  • Provisioning request accepted ≠ requested CPU, memory, disk and network are effective.
Key checks
  • terraform plan (VM module) — preview
  • Cloud-init/sysprep customisation — identity
  • Registration in DNS/monitoring/backup — completeness
ReferenceWhat it is1 section · depth on demand

Core model

Resolve unique VM identity and placement first, then allocate hardware and attached resources, create the VM object, apply guest bootstrap/customization and verify boot, guest identity, network reachability and workload readiness.

ReferenceHow it works2 sections · depth on demand

How it works

Virtualization Automation → VM Provisioning owns request identity, VM naming/uniqueness, placement, resource sizing, networks and task/result correlation across the virtualization management plane. VM provisioning turns an approved request into one management-plane task and one intended VM object; automation must correlate the task and resulting object so retries do not create duplicates. Keep these adjacent boundaries separate: quota, cluster/datastore capacity, networking/IPAM, guest customization and consumer configuration are separate things to check. A key diagnostic distinction is that a successful API/task response can be retried into duplicate objects if idempotency keys/lookup are weak, and a VM object existing is not evidence it matches the request.

In depth

VM provisioning automation creates a new VM from a template with the right CPU, memory, disks, network and guest customisation, registers it in inventory and hands it to configuration management.

resource "proxmox_virtual_environment_vm" "web" {
  name      = "web03"
  node_name = "pve01"
  clone { vm_id = 9000 }
  cpu { cores = 2 }
  memory { dedicated = 4096 }
  initialization {
    ip_config { ipv4 { address = "10.0.20.23/24", gateway = "10.0.20.1" } }
  }
}

Fetch the IP address from IPAM instead of hard-coding it, and add the VM to monitoring and backup as part of the same workflow.

ReferenceImportant terms & boundaries2 sections · depth on demand

What this shows and what it does not

VM Provisioning owns vendor-neutral virtual-machine creation workflow; template mechanics and platform-specific provisioning APIs remain in their dedicated branches.

Mechanics

Virtualization Automation → VM Provisioning is owned at runtime by the virtualization API/controller and hypervisor/storage/network subsystems provisioning or changing virtual machines. Its durable intent is versioned VM template/specification, placement, storage/network and guest customization intent; the stable identity contract is management endpoint, VM/instance ID, host/cluster, datastore/storage and network IDs. The consumer-visible target is the virtual machine hardware/configuration plus guest-visible boot/network/storage state. The operating invariants are that VM identity and placement are explicit, asynchronous tasks are followed, storage/network mappings are valid, guest customization is bounded and post-provision guest state is verified. Follow the chain of components automation spec → virtualization API → scheduler/task → hypervisor/storage/network → VM object → guest boot/customization → guest/read-back and record which layer currently owns truth.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docvirtualization provisioning automation current

Authoritative/upstream documentation reviewed for bounded claims in Virtualization Automation > VM Provisioning. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://opentofu.org/docs/ · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
vm provisioning automationvirtual machine creation automationautomated vm deployment
Embedded reference data

Quick lookup tables

VM Provisioning virtualization automation proof-boundary map

Fast identity, task, effective-state and guest/workload proof boundaries for VM Provisioning.

BoundaryHealthy evidenceSuspicious evidence
Scope / identityExact platform and VM/resource IDs plus source revision are explicitNames, selectors or inventory paths resolve to the wrong or changing object
Management operationTask/job response and asynchronous completion are traceableRequest acknowledgement or partial batch success is treated as completion
Effective virtual stateRuntime inventory, attachments and placement are read backDesired/requested configuration substitutes for actual hypervisor state
Guest / workload proofGuest readiness and original service test passHypervisor success substitutes for guest or application health
Depth when you need it

Deep reference

Healthy vs suspicious evidence

Output interpretation

Capture at minimum VM ID, host/cluster, task ID, hardware, storage/network placement, power/guest state, customization result and final reachability.

Confirmation

Confirm action

Continue?