User`s guide

31
C HAPTER 4
Operations on Virtual Private Servers
This chapter describes how to perform day-to-day operations on separate Virtual Private Servers
taken in their wholeness.
Note: We assume that you have successfully installed, configured, and deployed your OpenVZ
system. In case you have not, please turn to Chapter 3 providing detailed information on all
these operations.
In This Chapter
Creating and Configuring New Virtual Private Server......................................................... 31
Starting, Stopping, Restarting, and Querying Status of Virtual Private Server .................... 37
Listing Virtual Private Servers.............................................................................................. 39
Reinstalling Virtual Private Server ....................................................................................... 40
Deleting Virtual Private Server............................................................................................. 40
Running Commands in Virtual Private Server...................................................................... 41
Creating and Configuring New
Virtual Private Server
This section guides you through the process of creating a Virtual Private Server. We assume that
you have successfully installed OpenVZ and at least one OS template. If there are no OS
templates installed on the Hardware Node, turn to the
Managing Templates chapter first.
Before you Begin
Before you start creating a Virtual Private Server, you should:
Check that the Hardware Node is visible on your network. You should be able to connect
to/from other hosts. Otherwise, your Virtual Private Servers will not be accessible from
other computers.
Check that you have at least one IP address per Virtual Private Server and the addresses
belong to the same network as the Hardware Node or routing to the Virtual Private Servers
has been set up via the Hardware Node.
To create a new Virtual Private Server, you have to:
choose the new Virtual Private Server ID;
choose the OS template to use for the Virtual Private Server;
create the Virtual Private Server itself.