Cloud Computing 3 min read
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.
MaGe Linux Operations
MaGe Linux Operations
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-listOriginal Source
Signed-in readers can open the original source through BestHub's protected redirect.
Republication Notice
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.
Reader feedback
How this landed with the community
Rate this article
Was this worth your time?
Discussion
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
