Basic vps commands

vzctl create 102 –ostemplate centos-4-i386-default
vzctl destroy 102 :
vzctl create 102 –ostemplate centos-4-i386-default –config vps.basic
vzctl set 102 –onboot yes –save:
vzctl set 102 –hostname ace.316x.net –save
vzctl set 102 –ipadd 208.76.110.211 –save
vzctl set 102 –nameserver 208.76.110.194 –save
vzctl start 102
vzctl exec 102 service sshd status
vzctl exec 102 service sshd start
vzctl exec 102 service sshd status
vzctl start 102
vzctl set 102 –userpasswd root:elite99x
vzctl start 102
vzlist -a | grep 102
vzctl exec 102 df
vzctl 102 stop
vzctl stop 102
vzctl start 102
vzctl restart 102
grep DISK_QUOTA /etc/sysconfig/vz
grep DISKSPACE /etc/sysconfig/vz-scripts/102.conf
grep DISKINODES /etc/sysconfig/vz-scripts/102.conf
grep QUOTATIME /etc/sysconfig/vz-scripts/102.conf
vzctl set 102 –diskspace 35000000000:36000000000 –save
vzctl set 102 –diskspace 34000000000:35000000000 –save
vzctl set 102 –diskspace 3500000000:3600000000 –save
vzctl set 102 –diskspace 35000000:36000000 –save
vzctl exec 102 df -vzctl set 102 –diskspace 36000000:37000000 –save
vzctl exec 102 df -h
vzctl set 102 –vmguarpages 5130000:5140000 –save
vzctl –help
vzctl exec 102 –help
vzctl exec 102 df –help
vzctl set 105 –privvmpages 2G:3G –save
vzctl set 102 –diskinodes 3400000:3500000 –save
vzctl set 102 –quotatime 600 –save
vsyum 102 install yum
vzyum 102 install yum
vzctl enter 102

g33kadmin

I am a g33k, Linux blogger, developer, student and Tech Writer for Liquidweb.com/kb. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.