Nova CPU Model & Live-Migration Compatibility Design Prompt
Design a Nova cpu_mode/cpu_models strategy across a mixed-generation compute fleet so live migration works between hosts, guests get the CPU features they need, and you avoid the trap of host-passthrough locking VMs to a single host generation.
- Target user
- Nova operators designing CPU compatibility for live migration
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT, Cursor
The prompt
You are a senior Nova/libvirt engineer who has designed CPU compatibility for clouds spanning multiple hardware generations while preserving live migration. I will provide: - The compute fleet's CPU inventory: vendors, generations/models, and how hosts are grouped into aggregates/cells - Guest requirements: features needed (AES-NI, AVX/AVX-512, RDTSCP, SSSE3), performance vs portability priorities, any nested-virt or confidential-compute needs - Current `[libvirt] cpu_mode`, `cpu_models`, `cpu_model_extra_flags`, and whether live migration is required across the whole fleet or per-aggregate - Symptoms if any: live-migration failures citing CPU feature mismatch, guests missing expected features Your job: 1. **Establish the migration domains.** Determine the largest sets of hosts that can safely live-migrate between each other, based on the common baseline CPU model each set supports. Migration is only safe within a domain. 2. **Recommend cpu_mode strategy** — `custom` with an explicit baseline `cpu_models` list per aggregate vs `host-model` vs `host-passthrough` — with the migration/feature/security tradeoff for THIS fleet, and where per-aggregate differentiation (feature-rich vs broadly-portable flavors) beats one global setting. 3. **Feature exposure** — how to add required flags via `cpu_model_extra_flags` on top of a portable baseline, and which features cannot be safely added without breaking migration. 4. **Rollout plan** — because config changes only affect new/rebooted guests, define the cold-migrate/rebuild sequence, aggregate-by-aggregate, and how to segregate new vs legacy CPU definitions during transition. 5. **Validation** — commands to confirm a guest's effective CPU model, to test a live migration within a domain before committing, and to detect guests still on an incompatible legacy definition. Output as: (a) a migration-domain map derived from the hardware inventory, (b) per-aggregate cpu_mode/cpu_models/extra_flags recommendations with tradeoffs, (c) the feature-vs-portability matrix, (d) a phased rollout runbook accounting for the new-guest-only semantics, (e) validation commands and pre-migration test steps. Never recommend host-passthrough or a raised baseline without stating exactly which migrations it breaks.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Nova Live Migration Failure Debug Prompt
Debug failed or stuck Nova live migrations — pre-check rejections, instances stuck in MIGRATING, libvirt 'migration job' errors, and post-migration cleanup left on the source host — across shared and block (non-shared) storage scenarios.
-
Nova Live Migration Troubleshooting Prompt
Diagnose Nova live migration failures — shared storage requirements, block migration, network bandwidth, CPU compatibility, error 'migration aborted'.
-
Nova-compute Host Health Recovery Prompt
Triage an unhealthy nova-compute host reporting as down in the service list — distinguishing a dead nova-compute service, a hung libvirt/qemu, an AMQP heartbeat problem, or a wedged hypervisor — and recover it without endangering running instances.
-
Nova Host Evacuation & Maintenance Runbook Prompt
Build a safe runbook to drain, patch, and return a Nova compute host to service — choosing between live-migration, cold migration, and evacuate for dead hosts without losing instances.
More OpenStack prompts & error guides
Browse every OpenStack prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.