<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://linux-vserver.at/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://linux-vserver.at/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Nicholi</id>
		<title>Linux-VServer - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://linux-vserver.at/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Nicholi"/>
		<link rel="alternate" type="text/html" href="http://linux-vserver.at/Special:Contributions/Nicholi"/>
		<updated>2026-04-09T17:12:40Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.20.2</generator>

	<entry>
		<id>http://linux-vserver.at/util-vserver:Cheatsheet</id>
		<title>util-vserver:Cheatsheet</title>
		<link rel="alternate" type="text/html" href="http://linux-vserver.at/util-vserver:Cheatsheet"/>
				<updated>2011-06-25T18:10:32Z</updated>
		
		<summary type="html">&lt;p&gt;Nicholi: /* Where to find the latest util-vserver ? */ using git repo now&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a cheatsheet for util-vserver. Some of these recipes have been arrived at by users, using trial and error, so they may not always be the &amp;quot;official&amp;quot; solutions.&lt;br /&gt;
&lt;br /&gt;
== Where to find the latest util-vserver ? ==&lt;br /&gt;
&lt;br /&gt;
:Look here:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;http://people.linux-vserver.org/~dhozac/t/uv-testing/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:or checkout git repository:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;git clone http://git.linux-vserver.org/git/util-vserver.git util-vserver&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:And for the lastest kernel patch:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;http://vserver.13thfloor.at/Experimental/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How to debug an issue with the vserver command ?==&lt;br /&gt;
&lt;br /&gt;
Simply add the --debug flag , beware this will be quite verbose !&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;vserver --debug  ......&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How to add an IP address to a live guest ?==&lt;br /&gt;
&lt;br /&gt;
# create the address on the host: &amp;lt;pre&amp;gt;ifconfig eth0:10 172.16.0.145/12&amp;lt;/pre&amp;gt; or &amp;lt;pre&amp;gt;ip addr add dev eth0 172.16.0.145/12&amp;lt;/pre&amp;gt; or even &amp;lt;pre&amp;gt;ip addr add dev dummy0 172.16.0.145/12&amp;lt;/pre&amp;gt;&lt;br /&gt;
# add the adress:&amp;lt;pre&amp;gt;naddress --nid guestname --add --ip 172.16.0.145 --bcast 172.31.255.255&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* Depending on what you use the vserver for, you may not want the broadcast thing at all; you can also use a /32 mask for the IP in this case.&lt;br /&gt;
# add the ip to the config directory to make it stick if you restart &amp;lt;br/&amp;gt;&lt;br /&gt;
# enter the guest and verify services that need to listen on the ip, restart if necessary (for me it was not).&lt;br /&gt;
&lt;br /&gt;
== How to change the machine type live ?==&lt;br /&gt;
&lt;br /&gt;
: For this you can use the '''vuname''' command, &lt;br /&gt;
:: &amp;lt;pre&amp;gt;sudo vuname --xid 40133 -s -t 'machine=i686'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: Possible values for TAG are:&lt;br /&gt;
:: &amp;lt;pre&amp;gt;context, sysname, nodename, release, version, machine, domainname&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:To make those change permanent you have to modify the files in your /etc/vservers/&amp;lt;vserver-name&amp;gt;/uts/machine file see the great flower page for details.&lt;br /&gt;
&lt;br /&gt;
== What are the main vutils commands ?==&lt;br /&gt;
&lt;br /&gt;
: '''Main ones are''' :&lt;br /&gt;
&lt;br /&gt;
:# vserver : to create enter , start, stop, destroy etc the vserver guests.&lt;br /&gt;
:# vuname :  to change live guest : context, sysname, nodename, release, version, machine or domainname.&lt;br /&gt;
:# vattribute: to change capabilities of a live guest (bcap, ccap and flags).&lt;br /&gt;
:# nattribute: to change network capabilities and flags of a live guest (ncaps and flags).&lt;br /&gt;
:# vlimit :    to change the limits of a live guest (cpu, fsize, data, stack, core, rss, nproc,nofile, memlock, as, locks, msgqueue, nsock, openfd, anon, shmem, semary,nsems, and dentry).&lt;br /&gt;
:# vsched :    to change schheduling parameters of live guest.&lt;br /&gt;
:# vdevmap :   to remap device or  give permission to a guest to create/read/open specific devices.&lt;br /&gt;
:# vdlimit :   to change the directory limits of a live guest.&lt;br /&gt;
:: those parameters can be '''setup permanently''' in the configuration files, see the vutil flower page for details ([http://www.nongnu.org/util-vserver/doc/conf/configuration.html The Great Flower Page]).&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
:'''Other usefull vutils''' :&lt;br /&gt;
&lt;br /&gt;
:# vapt-get : to run apt-get from the host in one or more guest.&lt;br /&gt;
:# vemerge  : to run emerge from the host in one or more guest.&lt;br /&gt;
:# vmount : to mount file systems inside guest from the host.&lt;br /&gt;
:# vsomething : to run one command to all vserver in one go.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: '''daily usage one''':&lt;br /&gt;
&lt;br /&gt;
:# vps : ps in a guest aware way (see all the process of host+guest).&lt;br /&gt;
:# vtop : top in a guest aware way (see all the process of host+guest).&lt;br /&gt;
:# vserver-info : gives version and other usefull information about the utils installed.&lt;br /&gt;
:# vserver-stat : gives informations about running guests.&lt;br /&gt;
&lt;br /&gt;
== What are the services that need to be running in a basic setup ?==&lt;br /&gt;
&lt;br /&gt;
: '''Services to allow on boot''' :&lt;br /&gt;
&lt;br /&gt;
:# vprocunhide : this one is mandatory to allow access to required parts of /proc on the guest&lt;br /&gt;
:# vservers-default:  this one will start the vservers on reboot, most users need this one&lt;br /&gt;
:# util-vserver : ? do not know what it does.&lt;br /&gt;
&lt;br /&gt;
: this article in incomplete, please do not hesistate to add your comments !&lt;/div&gt;</summary>
		<author><name>Nicholi</name></author>	</entry>

	</feed>