# grep DISK_QUOTA /etc/sysconfig/vz-scripts/101.conf If you wish to execute a command in all running VPS, you can use the following script: to restart SSH service for the particular container(Running Commands in Container) Use the vzctl exec VPS_ID command for running a command inside the VPS with the given ID. # ls /etc/sysconfig/vz-scripts/101.* - it shows the logs for container destoryed Vzctl restore 101 - Unsuspending Container (You cannot change settings of the suspended Container).Ībove command wont work if container is mounted. Vzctl start 103 -force - To start disabled container. You can also use the -force option to start any disabled Container). Vzctl set 101 -disabled yes -save - Disabling Container (After the Container stopping, the Container user will not be able to start it again until you enable this Container again by passing the -disabled no option to vzctl set. Vzctl destroy 101 - To delete container from node. Vzctl restart 101 - For restarting specific containter. Vzctl stop 101 -fast - To forcefully stop particular container by killing all the running processes on it. Vzctl status 101 - To check the status of particular container Vzctl stop 101 - To stop particular container Vzctl start 101 - To start particular container of active processes running under container ID.) # vzctl set 101 -nameserver 192.168.1.165 -saveĬat /proc/vz/veinfo - Shows all the VPS containers along with assigned dedicated IP's. # vzctl set 101 -hostname test101.my.org -save ![]() Vzctl create 101 - To create new container. Vzctl create 101 -ostemplate fedora-core-4 -–config vps.basic - First give OS vz/private/ - it contains list of all the existing containers. vz/template/cache - Contains all the OS templates Vzlist -a 101 - To check specific container is present or not (101 => Container ID) Vzlist -a - To list all the containers on OpenVZ including running and stopped.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |