A few OpenVZ commands

Posted by Clayton | Posted in Linux, SSH, Tutorial, vps | Posted on 02-28-2010

0

Below are the commonly used OpenVZ commands, which are run from the main node.

Shows list of all the VPS’s hosted on the Node.

vzlist -a

To start the VPS

vzctl start VEID

To stop (Shut Down) the VPS

vzctl stop VEID

To view the status of the particular VPS

vzctl status VEID

To stop the VPS quickly and forcefully

vzctl stop VEID --fast

To enter in a particular VPS

vzctl enter VEID

To set the Hostname of a VPS

vzctl set VEID --hostname vps.domain.com --save

To add a new IP to the hosting VPS

vzctl set VEID --ipadd 1.2.3.4 --save

To delete the IP from VPS

vzctl set VEID --ipdel 1.2.3.4 --save

To reset root password of a VPS

vzctl set VEID --userpasswd root:new_password --save

To add the nameserver IP’s to the VPS

vzctl set VEID --nameserver 1.2.3.4 --save

To run any command on a VPS from Node

vzctl exec VEID command

To install any package/Software on a VPS from Node

vzyum VEID install package_name 

**VEID refers to the ID of the Particular VPS**

Post a comment

Spam Protection by WP-SpamFree