| title | OpenStack Nova Instance Failed to Spawn | ||||||
|---|---|---|---|---|---|---|---|
| slug | openstack-nova-instance-failed-to-spawn | ||||||
| technologies |
|
||||||
| severity | high | ||||||
| tags |
|
||||||
| related |
|
||||||
| last_reviewed | 2026-06-27 |
nova-compute[1843]: ERROR nova.compute.manager [req-3f1c9a2e-...] [instance: 7b2e4c1a-...] \
Instance failed to spawn: libvirt.libvirtError: internal error: process exited while \
connecting to monitor: Could not open '/var/lib/nova/instances/7b2e4c1a-.../disk': Permission denied
nova.exception.VirtualInterfaceCreateException: Virtual Interface creation failed
This error is emitted by nova-compute after the scheduler has already picked a
host. Placement and the filters succeeded β the failure is local to the
hypervisor while the driver (usually libvirt/QEMU) tries to actually create the
domain. The instance transitions to ERROR and the fault message names the
underlying libvirt, storage, or networking failure. Because scheduling passed,
the root cause is almost always on the chosen compute node itself.
- openstack (nova-compute, libvirt, QEMU, neutron agent)
high β the specific instance build fails, and if the cause is a host-wide condition (full disk, broken libvirt, dead OVS agent) every subsequent spawn on that compute node will fail too.
- Image download or backing-file copy failed β full or unwritable
/var/lib/nova/instances, or a corrupt image in the cache. - libvirt/QEMU error β wrong permissions, SELinux/AppArmor denial, or a missing CPU feature / machine type.
- Neutron port could not be wired up in time, raising
VirtualInterfaceCreateExceptionaftervif_plugging_timeout. - Cinder volume attach failed during boot-from-volume.
- Out of memory or hugepages not available for the requested NUMA topology.
After scheduling, nova-compute calls the virt driver's spawn(). The driver
fetches/copies the image, builds the libvirt XML, plugs VIFs (waiting for a
Neutron network-vif-plugged event), and starts the domain. A failure at any
step raises an exception that is logged verbatim and bubbles up as the instance
fault. The exact wording β libvirtError, Permission denied,
VirtualInterfaceCreateException, No space left on device β points directly
at which stage broke.
# Read the instance fault that nova recorded
openstack server show <instance> -c fault -f value
# Which compute host did it land on?
openstack server show <instance> -c 'OS-EXT-SRV-ATTR:host' -f value
# nova-compute log around the spawn failure
journalctl -u devstack@n-cpu --since "10 min ago" | grep -i spawn
# Disk space on the instances directory (a classic culprit)
df -h /var/lib/nova/instances
# libvirt health and recent domain errors
journalctl -u libvirtd --since "10 min ago"
virsh list --allfault | {'message': 'Instance failed to spawn', 'code': 500,
'details': "...No space left on device..."}
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/nova-inst 50G 50G 0 100% /var/lib/nova/instances
A 100% full filesystem, an AppArmor/SELinux denied line, or a
network-vif-plugged timeout in the log each identify the broken stage.
- Disk full: clear orphaned instance dirs / image cache, grow the volume,
then retry. Set
remove_unused_base_images = trueto auto-prune. - Permissions / MAC: ensure
/var/lib/nova/instancesis owned bynova, and fix the SELinux/AppArmor denial (audit2why, correct context/profile). - VIF timeout: confirm the Neutron L2 agent is healthy on the host and that
it emits
network-vif-plugged; raisevif_plugging_timeoutonly as a stopgap. - Volume attach: check
cinder-volumeand the host's iSCSI/FC connectivity. - After fixing the host cause, rebuild or recreate the instance.
openstack server create --flavor m1.small --image cirros --network private spawn-test
openstack server show spawn-test -c status -f value # Expect: ACTIVE- Alert on
/var/lib/nova/instancesdisk usage and image-cache growth. - Monitor
libvirtdand the Neutron L2 agent per compute host. - Validate SELinux/AppArmor policy after any nova/libvirt upgrade.
- Pre-pull and checksum golden images to avoid corrupt cache copies.
openstack Β· nova Β· libvirt Β· spawn Β· hypervisor Β· production