Private Cloud Operator
Overview
Same discipline as public cloud on premise: inventory first, snapshot before change, templates and IaC (Terraform providers openstack, vsphere, proxmox) over clicks.
When to use
- Create, resize, migrate or delete VMs and containers on OpenStack, vSphere or Proxmox.
- Capacity and health of hosts, datastores, Ceph pools.
- Maintenance mode, host patching, snapshot cleanup.
Engine
infra action=status then infra action=discover provider=openstack|vsphere|proxmox.
infra action=catalog provider=<p> query=<vm|snapshot|network> and describe for exact syntax.
infra action=check each command, infra action=plan for multi-VM work, infra action=run, infra action=verify.
Workflow
- Confirm the endpoint (OS_CLOUD / GOVC_URL / Proxmox node) and that it is the intended environment.
- Inventory: hosts, VMs, templates, networks, datastores/pools, free capacity.
- Change: snapshot, apply from template or IaC, verify guest health (ping, SSH, cloud-init done).
- Maintenance: migrate VMs off (vMotion / live migration), enter maintenance, patch, exit, rebalance.
Command families
openstack server list --long; openstack flavor list; openstack network list; openstack volume list
openstack hypervisor stats show; openstack server create --flavor <f> --image <i> --network <n> --key-name <k> <name>
openstack server image create --name <snap> <server>
govc about; govc ls /<dc>/vm; govc vm.info -r <vm>; govc datastore.info; govc host.info
govc snapshot.create -vm <vm> pre-change; govc vm.clone -vm <template> -on=false <new>
govc host.maintenance.enter <host>
pvesh get /cluster/resources --type vm; pvesh get /nodes/<node>/status
qm list; qm config <vmid>; qm snapshot <vmid> pre-change; qm clone <template> <newid> --full
pct list; pct snapshot <ctid> pre-change
pvecm status; ceph -s
Safety rules
- VM/volume deletion, host maintenance, network changes and snapshot deletion are critical: user validation.
- Long-lived snapshots hurt performance: record and clean those you create.
- Never store hypervisor credentials in files you create; use the existing env/config.
Verification and rollback
- Verify: VM running, guest agent reports IP, service health check, host/cluster quorum healthy.
- Rollback: revert to the pre-change snapshot (
govc snapshot.revert, qm rollback, pct rollback, OpenStack rebuild from image).
Deliverable
Inventory and capacity summary, actions with run ids, verification evidence, snapshots created (and their cleanup), rollback.
1---2name: private-cloud-operator3description: Operate private clouds and virtualization - OpenStack (openstack CLI), VMware vSphere (govc), Proxmox VE (pvesh, qm, pct) - VMs, templates, networks, storage, snapshots and capacity. Use for on-premise VM lifecycle, inventory and maintenance.4metadata:5 source: https://skillmd.com/skills/navinspire-ia/private-cloud-operator6 navin:7 emoji: 🏢8 category: devops9---1011# Private Cloud Operator1213## Overview1415Same discipline as public cloud on premise: inventory first, snapshot before change, templates and IaC (Terraform providers openstack, vsphere, proxmox) over clicks.1617## When to use1819- Create, resize, migrate or delete VMs and containers on OpenStack, vSphere or Proxmox.20- Capacity and health of hosts, datastores, Ceph pools.21- Maintenance mode, host patching, snapshot cleanup.2223## Engine24251. `infra action=status` then `infra action=discover provider=openstack|vsphere|proxmox`.262. `infra action=catalog provider=<p> query=<vm|snapshot|network>` and `describe` for exact syntax.273. `infra action=check` each command, `infra action=plan` for multi-VM work, `infra action=run`, `infra action=verify`.2829## Workflow30311. Confirm the endpoint (OS_CLOUD / GOVC_URL / Proxmox node) and that it is the intended environment.322. Inventory: hosts, VMs, templates, networks, datastores/pools, free capacity.333. Change: snapshot, apply from template or IaC, verify guest health (ping, SSH, cloud-init done).344. Maintenance: migrate VMs off (vMotion / live migration), enter maintenance, patch, exit, rebalance.3536## Command families3738```bash39openstack server list --long; openstack flavor list; openstack network list; openstack volume list40openstack hypervisor stats show; openstack server create --flavor <f> --image <i> --network <n> --key-name <k> <name>41openstack server image create --name <snap> <server>42govc about; govc ls /<dc>/vm; govc vm.info -r <vm>; govc datastore.info; govc host.info43govc snapshot.create -vm <vm> pre-change; govc vm.clone -vm <template> -on=false <new>44govc host.maintenance.enter <host>45pvesh get /cluster/resources --type vm; pvesh get /nodes/<node>/status46qm list; qm config <vmid>; qm snapshot <vmid> pre-change; qm clone <template> <newid> --full47pct list; pct snapshot <ctid> pre-change48pvecm status; ceph -s49```5051## Safety rules5253- VM/volume deletion, host maintenance, network changes and snapshot deletion are critical: user validation.54- Long-lived snapshots hurt performance: record and clean those you create.55- Never store hypervisor credentials in files you create; use the existing env/config.5657## Verification and rollback5859- Verify: VM running, guest agent reports IP, service health check, host/cluster quorum healthy.60- Rollback: revert to the pre-change snapshot (`govc snapshot.revert`, `qm rollback`, `pct rollback`, OpenStack rebuild from image).6162## Deliverable6364Inventory and capacity summary, actions with run ids, verification evidence, snapshots created (and their cleanup), rollback.