Pcornel
Automation · Virtualization Automation

VM Provisioning

Cheat sheet · https://pcornel.dk/topic.php?topic=5699

Back to the Topic

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.

Remember

  • 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.

First checks

  • terraform plan (VM module) — preview
  • Cloud-init/sysprep customisation — identity
  • Registration in DNS/monitoring/backup — completeness

Commands

Get-VM -Name <vm> | Select-Object Name,PowerState,VMHost,Datastore
Read-only/validation observation for VM existence, power state, host placement and datastore placement for the selected…

Verify in this order

request → template clone → customise → register

Where it usually breaks

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

VM Provisioning virtualization automation proof-boundary map

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

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5699

Confirmation

Confirm action

Continue?