Usefull OpenVZ Commands

July 25, 2011 / Web Hosting

OpenVZ Commands:

  • vzlist -a : For a list of the VPS’s present on that specific Node.
  • vzctl start VPS_ID : To start the VPS.
  • vzctl stop VPS_ID : To stop or Shut Down the VPS
  • vzctl status VPS_ID : To find out the exact condition of the special VPS
  • vzctl stop VPS_ID -fast : To stop the VPS fast and forcefully
  • vzctl enter VPS_ID : To enter in a special VPS

Configuration Commands :

  • vzctl set VPS_ID -hostname vps.domain.com -save: To set the Hostname of a VPS.
  • vzctl set VPS_ID -ipadd 1.2.3.4 -save : To add a new IP to the hosting VPS.
  • vzctl set VPS_ID -ipdel 1.2.3.4 -save : To delete the IP from VPS.
  • vzctl set VPS_ID -userpasswd root : new_password -save : to reset root password of a VPS.
  • vzctl set VPS_ID -nameserver 1.2.3.4 -save : To add the nameserver IP’s to the VPS.
  • vzctl exec VPS_ID command : To run any command on a VPS from Node.
  • vzyum VPS_ID install package_name : To install any package/Software on a VPS from Node.

[Note : In the OpenVZ Commands VPS_ID refers to the ID of the specific VPS.]

Leave a Reply

Your email address will not be published. Required fields are marked *