Starting, Stopping, Restarting, and Querying Status of Virtual Machines and Containers

After a virtual machine or container has been created, it can be managed like a usual computer.

Starting Virtual Machines and Containers

You can start virtual machines and containers with the prlctl start command. For example:

  • To start the container MyCT:

    1
    
    # prlctl start MyCT
    
  • To start the virtual machine MyVM:

    1
    
    # prlctl start MyVM
    

Stopping Virtual Machines and Containers

You can stop virtual machines and containers with the prlctl stop command. For example:

  • To stop the container MyCT:

    1
    
    # prlctl stop MyCT
    
  • To stop the virtual machine MyVM:

    1
    
    # prlctl stop MyVM
    

Restarting Virtual Machines and Containers

You can restart virtual machines and containers with the prlctl restart command. For example:

  • To restart the container MyCT:

    1
    
    # prlctl restart MyCT
    
  • To restart the virtual machine MyVM:

    1
    
    # prlctl restart MyVM
    
Restarting virtual machines requires a guest OS and Virtuozzo guest tools to be installed.

Checking Status of Virtual Machines and Containers

You can check the status of a virtual machine or container with the prlctl status command. For example:

  • To check the status of the container MyCT:

    1
    2
    
    # prlctl status MyCT
    CT MyCT exists running
    
  • To check the status of the virtual machine MyVM:

    1
    2
    
    # prlctl status MyVM
    Vm MyVM exists stopped