More Technical Help

Showing posts with label VPS Hosting. Show all posts
Showing posts with label VPS Hosting. Show all posts

Saturday, February 12, 2011

Vzctl Commands


Following are some important commands which are normally used while working on a Hardware Node.


  • 1) vzlist -a : Shows list of all the VPS’s hosted on the Node.
  • 2) vzctl start VPS_ID: To start the VPS.
  • 3) vzctl stop VPS_ID : To stop (Shut Down) the VPS
  • 4) vzctl status VPS_ID : To view the status of the particular VPS
  • 5) vzctl stop VPS_ID –fast : to stop the VPS quickly and forcefully
  • 6) vzctl enter VPS_ID : To enter in a particular VPS


Configuration Commands

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

            Here VPS_ID refers to the ID of the Particular VPS.

How to check VPS package on virtuozzo

You can check the VPS package with the following command :

vzpkgls 1051
      where 1051 is the ID of the container

Sunday, December 26, 2010

VE has been Locked

If you are getting VE has been locked while starting the VPS then you can unlocked it by removing the file 'veid.lck' where vied is the VPS id and the file is located at :

/vz/lock/veid.lck

VE is disabled

Sometimes you face the error as "VE is disabled" while starting a VPS, in order to make it enable you need to login to main node with root then go to the file 

/etc/vz/conf/veid.conf

where veid is the actual id of VPS

Or simply run the command from main node :

vzctl set VEID --disabled no --save

What is VPS Hosting?

VPS stands for virtual private server. It is sometimes also referred to as a virtual server or a virtual dedicated server. It takes one big server and partitions it off into several smaller servers. Each VPS hosting account can have its own operating system and can be rebooted without effecting the other accounts on the machine.