Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Proxmox Cookbook

You're reading from   Proxmox Cookbook Over 60 hands-on recipes to perform server virtualization and manage virtualized server solutions with Proxmox

Arrow left icon
Product type Paperback
Published in Aug 2015
Publisher
ISBN-13 9781783980901
Length 318 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Wasim Ahmed Wasim Ahmed
Author Profile Icon Wasim Ahmed
Wasim Ahmed
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Installing Proxmox 2. Getting to Know the Proxmox GUI FREE CHAPTER 3. Cluster and VM Management 4. Network Configurations 5. Firewall Configurations 6. Storage Configurations 7. Backup and Restore 8. Updating and Upgrading Proxmox 9. Monitoring Proxmox 10. Advanced Configurations for VMs 11. The CLI Command Reference Index

OpenVZ container-related commands


This section shows commands for performing OpenVZ container-based VM-related tasks.

How to do it…

Let's start using OpenVZ container-related commands by working through the following steps:

  1. Use the following command to see a list of all the containers in a node:

    #pvectl list
    

    The preceding command only shows the list of containers that are hosted in the node where this command is issued. Pvectl is a wrapper from Proxmox around the original OpenVZ vzctl command.

    The following screenshot shows a list of containers in the example pmx1 node:

  2. Use the following command to start a container:

    #pvectl start <ct_id>
    
  3. Use the following command to stop a container:

    #pvectl stop <ct_id>
    

    The preceding command is equivalent to pushing the power button or unplugging the power cord of a physical node

  4. Use the following command to shut down a container gracefully:

    #pvectl shutdown <ct_id>
    
  5. Use the following command to restart a container:

    #pvectl restart <ct_id...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image