Editing
Util-vserver:Useful commands
From Linix VServer
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Starting a virtual server == You can start a virtual server with the following command: <pre> # vserver <name> start </pre> Where <name> is the name of the virtual server. == Coming into a virtual server == To enter into a virtual server execute this command: <pre> # vserver <name> enter </pre> == To exit from a virtual server == To exit from a virtual server you only need to finish the Shell. For example typing: <pre> # exit or pressing "Ctrl + d" </pre> In this way you can finish the virtual server Shell. == Stopping a virtual server == Use the following command: <pre> # vserver <name> stop </pre> == Showing what virtual servers are running and some information about them == run this command: <pre>$ vserver-stat</pre> Please note that root context is not listed anymore with recent util-vserver. == Copying a virtual server and changing its address IP == You should visit the [[Building Guest Systems]] section and look for the clone and rsync methods. For reference, the (deprecated) vserver-copy method worked as follows. <pre> # vserver-copy --stopstart --ip newIP --domain newDomain nameOldServer nameNewServer </pre> where: <pre> -s,--stopstart: stops the virtual server before copying and start the new vserver afterwards. This really only makes sense if you are copying across root hosts and not changing names or IP addresses. -i,--ip address: the new IP address when changing name. Overwrites /etc/hosts. Must be used with -d -d,--domain domain: the new DNS domain when changing name. Overwrites /etc/hosts. Must be used with -i </pre> You can see more information in "man vserver-copy" == Deleting a virtual server == <pre># vserver <name> delete</pre> Where <name> should be replaced by the name of virtual server. == Putting a virtual server in a specified directory == vserver <name> build ... --rootdir /path/to/vserver ... == Doing one action to ALL vservers in one go == <pre>vsomething [--quiet|-q] [--debug] <cmd> [--] <vserver-name>* [--all] -- <params>+ Execute <cmd> <vserver> <params>* foreach vserver. </pre> Just launch any command you want to all the vservers in one go, very usefull for hashify for exemple :) == Other useful commands == '''''vserver-info''''': gives info about the vserver program itself '''''vtop''''': a top command that shows the top of *all* vservers '''''vpstree''''': a tree ps view of processes of all vservers '''''vps''''': a ps that shows processes of all vservers [[Category:Configuration]]
Summary:
Please note that all contributions to Linix VServer may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Linix VServer:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Page
Discussion
Read
Edit
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
About
Overview
Paper
News
Developers
Donations
Search
Getting Started
Downloads
FAQs
Documentation
Support
Participate
How to participate
Report a Bug
Communicate
Teams/Projects
Hall of Fame
Resources
Archives
Recent Wiki Changes
Pastebin
Related Projects
VServer Hosting
Happy VServer Users
Tools
What links here
Related changes
Special pages
Page information