Managing Running Instances: Start, Stop, and Reboot Operations
Learn how to safely start, stop, and reboot your cloud instances using Horizon and the OpenStack CLI. Master soft and hard reboots, understand best practices, and troubleshoot common issues.
Introduction
Instance lifecycle management is essential for maintaining your cloud infrastructure. Whether you need to perform maintenance, apply updates, or recover from issues, understanding how to properly start, stop, and reboot your instances prevents downtime and data loss. This guide covers both the Horizon dashboard and command-line methods for managing your instance state.
Prerequisites
- An active InMotion Cloud account with at least one instance
- Horizon dashboard access or OpenStack CLI installed and configured
- Basic familiarity with your instance's operating system
Starting a Stopped Instance
Stopped instances use minimal resources but remain part of your environment. When you're ready to bring them back online, you have two methods.
Using Horizon Dashboard
- Log in to your Horizon dashboard
- Navigate to Project > Compute > Instances
- Locate the instance with a "Stopped" status (indicated by a red square icon)
- Click the instance row to select it
- Click the Start Instance button in the Actions dropdown menu
- The instance will transition to "Starting" and then "Running" status
- Wait for the instance to fully boot (usually 30-60 seconds depending on your operating system)
Once running, the instance will have an assigned IP address and be accessible via SSH or RDP.
Using OpenStack CLI
List your instances to identify the one you want to start:
1openstack server list
Start the instance by name or ID:
1openstack server start my-instance-name
Check the status to confirm it's running:
1openstack server show my-instance-name
The output will show the instance state as "ACTIVE" once it's fully booted.
Shutting Down Instances (Soft Shutdown)
A soft shutdown is the graceful way to stop an instance. It sends a shutdown signal to the operating system, allowing it to close applications and processes cleanly before powering off. This prevents data loss and filesystem corruption.
Using Horizon Dashboard
- Navigate to Project > Compute > Instances
- Find the running instance you want to stop
- Click the instance row to select it
- Click the Shut Off Instance button in the Actions dropdown menu
- Confirm the action when prompted
- The instance will transition to "Shutting Down" and then "Stopped" status
This process typically takes 30 seconds to several minutes, depending on what services are running on the instance.
Using OpenStack CLI
Stop the instance gracefully:
1openstack server stop my-instance-name
Verify it has stopped:
1openstack server show my-instance-name
The status will show "SHUTOFF" when the instance is fully stopped.
Rebooting: Soft vs. Hard Reboot
Soft Reboot (Recommended)
A soft reboot sends a reboot signal to the operating system, which performs a graceful restart. Applications are given time to shut down properly, and the filesystem is cleanly unmounted.
When to use: For regular maintenance, applying system updates, or clearing temporary issues while keeping the instance running.
Using Horizon:
- Navigate to Project > Compute > Instances
- Select your instance
- Click Soft Reboot Instance from the Actions menu
- Confirm the action
- The instance will show "Rebooting" status during the operation
Using OpenStack CLI:
1openstack server reboot --soft my-instance-name
A soft reboot typically completes in 2-5 minutes.
Hard Reboot (Use With Caution)
A hard reboot forces the hypervisor to restart the instance immediately, without waiting for the operating system to shut down gracefully. This is equivalent to pulling the power cable and plugging it back in.
When to use: Only when an instance is unresponsive and a soft reboot has failed, or when debugging kernel-level issues.
Using Horizon:
- Navigate to Project > Compute > Instances
- Select your instance
- Click Hard Reboot Instance from the Actions menu
- Confirm the action
- The instance will immediately restart
Using OpenStack CLI:
1openstack server reboot --hard my-instance-name
Hard reboots complete quickly but risk data loss and filesystem corruption. Avoid using hard reboot as a routine operation.
Best Practices for Instance Operations
Before Stopping or Rebooting
- Notify users: If the instance hosts services that others depend on, announce the maintenance window in advance
- Back up data: Ensure critical data is backed up to persistent storage
- Drain connections: Allow active client connections to complete before initiating shutdown
- Check scheduled tasks: Review cron jobs and scheduled tasks that might conflict with your maintenance window
Choosing the Right Operation
| Operation | Use Case | Duration |
|-----------|----------|----------|
| Soft Reboot | System updates, service restarts, clearing temporary issues | 2-5 minutes |
| Hard Reboot | Unresponsive instance, kernel debugging | 30-60 seconds |
| Stop/Start | Extended maintenance, reducing costs, hardware troubleshooting | 5 minutes |
Monitoring After Operations
After starting, stopping, or rebooting an instance:
- Check instance status in Horizon or CLI
- Verify SSH/RDP connectivity
- Confirm critical services are running:
systemctl status service-name - Check system logs for errors:
journalctl -n 50 - Verify networking:
ip addr showorifconfig
Automating Recurring Operations
For regular maintenance windows, consider using OpenStack automation tools or infrastructure-as-code frameworks to schedule reboots during off-peak hours.
Troubleshooting Common Issues
Instance Stuck in "Shutting Down" State
Problem: Instance remains in "Shutting Down" status for more than 10 minutes.
Causes:
- Services on the instance are hung and not responding to shutdown signals
- Network connectivity issues preventing the shutdown command from reaching the instance
- Hypervisor-level issues
Solutions:
- First, attempt a hard reboot through Horizon or CLI
- If the hard reboot doesn't resolve the issue, contact InMotion Cloud support with your instance ID
- Avoid repeatedly trying soft reboots as this may exacerbate the problem
Instance Fails to Boot After Stop/Start
Problem: Instance status shows "Running" but is not accessible via SSH or RDP.
Causes:
- Operating system failed to boot properly
- Network configuration issue
- Security group rules blocking access
Solutions:
- Check security group rules allow inbound SSH (port 22) or RDP (port 3389)
- Verify the instance has a valid IP address:
openstack server show my-instance-name - If the instance has a console, try accessing it through the Horizon dashboard to see boot messages
- Perform a hard reboot if the soft reboot didn't resolve the issue
- If the instance still won't boot, contact support with the instance ID and recent error messages
Soft Reboot Takes Longer Than Expected
Problem: Soft reboot stuck in "Rebooting" status for more than 10 minutes.
Causes:
- Large processes or database services taking time to shut down cleanly
- Filesystem checks running during boot
- Custom startup scripts running slowly
Solutions:
- Allow additional time—filesystem checks can take 5-15 minutes on large drives
- Try stopping the instance first, then waiting 30 seconds before starting it
- For future operations, consider scheduling reboots during planned maintenance windows
- If hung processes are the issue, you may need to manually kill services before rebooting
Instance Becomes Unresponsive After Reboot
Problem: Instance appears to boot but services are not responding.
Causes:
- Services failed to start automatically
- Configuration file errors preventing service startup
- Insufficient disk space or memory
Solutions:
- Connect to the instance and check service status:
systemctl status - Review system logs:
journalctl -xe - Check disk space:
df -h - Check available memory:
free -h - Manually restart failed services:
systemctl start service-name - If configuration errors exist, restore from backup and try again
Related Resources
Related Articles
Creating Instance Snapshots in OpenStack: Backup and Recovery
Learn how to create, manage, and restore instance snapshots in OpenStack for effective backup and disaster recovery.
Launching Your First Instance in OpenStack Horizon
Step-by-step guide to launching your first virtual machine instance in OpenStack Horizon, from selecting an image to connecting via SSH.
Getting Started with OpenStack Horizon: An Overview
Learn the OpenStack Horizon dashboard interface, navigate essential components, and discover where to find common cloud management tasks as a new user.
