Editing Ubuntu Gutsy template creation

Jump to: navigation, 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.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 2: Line 2:
 
[[Category: Templates]]
 
[[Category: Templates]]
 
[[Category: Ubuntu]]
 
[[Category: Ubuntu]]
 +
 
This article summarizes the experience of creating Ubunty Gutsy Gibbon (a.k.a. 7.10) template for OpenVZ.
 
This article summarizes the experience of creating Ubunty Gutsy Gibbon (a.k.a. 7.10) template for OpenVZ.
  
Line 118: Line 119:
  
 
==== Disable getty ====
 
==== Disable getty ====
On a usual Linux system, <code>getty</code> is running on a virtual terminals, which a container does not have. So, having <code>getty</code> running doesn't make sense; more to say, it complains it can not open terminal device and this clutters the logs.
+
On a usual Linux system, getty is running on a virtual terminals, which a container does not have. So, having getty running doesn't make sense; more to say, it complains it can not open terminal device and this clutters the logs.
  
So, first of all we stop all <code>getty</code> processes:
+
So, first of all we stop all getty processes:
  
 
  [container]# initctl stop tty{1,2,3,4,5,6}
 
  [container]# initctl stop tty{1,2,3,4,5,6}
  
Next, we disable running <code>getty</code>. This can be done in two ways:
+
Next, we disable running getty. This can be done in two ways:
  
 
First way:
 
First way:
Line 132: Line 133:
 
  [container]# dpkg -P system-services
 
  [container]# dpkg -P system-services
  
Second way can be dangerous for future versions of <code>system-services</code>, but it's OK for now since the only service they carry is running <code>getty</code>s.
+
Second way can be dangerous for future versions of system-services, but it's OK for now since the only service they carry is running gettys.
  
 
====  Set sane permissions for /root directory ====
 
====  Set sane permissions for /root directory ====
Line 141: Line 142:
  
 
  [container]# usermod -L root
 
  [container]# usermod -L root
 +
  
 
==== "fake-modprobe" needed for IPv6 addresses ====
 
==== "fake-modprobe" needed for IPv6 addresses ====
Line 175: Line 177:
 
chmod a+x /etc/rc2.d/S15ssh_gen_host_keys
 
chmod a+x /etc/rc2.d/S15ssh_gen_host_keys
 
</pre>
 
</pre>
 +
  
 
==== Disable <code>sync()</code> for syslog ====
 
==== Disable <code>sync()</code> for syslog ====
Line 191: Line 194:
 
After that, it would make sense to disable <code>mtab.sh</code> script which messes with <code>/etc/mtab</code>:
 
After that, it would make sense to disable <code>mtab.sh</code> script which messes with <code>/etc/mtab</code>:
 
  [container]# update-rc.d -f mtab.sh remove
 
  [container]# update-rc.d -f mtab.sh remove
 +
 +
  
 
==== Disable some services ====
 
==== Disable some services ====

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Templates used on this page: