Essential OpenStack Nova & Neutron Commands for Managing VMs and Networks
This guide provides a concise collection of OpenStack Nova and Neutron command‑line examples for listing, creating, modifying, and deleting virtual machines, networks, subnets, and related resources, helping administrators efficiently manage cloud infrastructure.
Nova Commands
# List current tenant's VMs
nova list
# List all tenants' VMs (requires admin)
nova list --all-tenants
# Show details of a VM
nova show <serverName-Or-Id>
# Delete a VM
nova delete <serverName-Or-Id>
# Stop a VM
nova stop <serverName-Or-Id>
# Soft reboot a VM
nova reboot <serverName-Or-Id>
# Hard reboot a VM
nova reboot --hard <serverName-Or-Id>
# Reset VM state
nova reset-state <serverName-Or-Id>
# List all Nova services
nova service-list
# List all flavors
nova flavor-list
# List all images
nova image-list
# Live migrate a VM
nova live-migration <serverName-Or-Id>Neutron Commands
# List floating IPs (all tenants)
neutron floatingip-list --all-tenants
# List current tenant's networks
neutron net-list
# List all tenants' networks (requires admin)
neutron net-list --all-tenants
# Create a network (vlan/flat)
neutron net-create public --shared --provider:network_type vlan --provider:physical_network physnet1
# Show network details
neutron net-show NET_ID
# Delete a network
neutron net-delete NET_ID
# Create a subnet
neutron subnet-create public 192.168.1.0/24 --name NAME --allocation-pool start=192.168.1.100,end=192.168.1.200 --gateway 192.168.1.254 --dns_nameserver 8.8.8.8
# List all agents
neutron agent-list
# Create a port
neutron port-create public (--fixed-ip ip_address=10.0.0.1)
# List ports
neutron port-listSigned-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
MaGe Linux Operations
Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
