<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.openvz.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Boris</id>
	<title>OpenVZ Virtuozzo Containers Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.openvz.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Boris"/>
	<link rel="alternate" type="text/html" href="https://wiki.openvz.org/Special:Contributions/Boris"/>
	<updated>2026-06-10T02:03:12Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=OpenSUSE_template_creation&amp;diff=9706</id>
		<title>OpenSUSE template creation</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=OpenSUSE_template_creation&amp;diff=9706"/>
		<updated>2011-01-27T13:33:17Z</updated>

		<summary type="html">&lt;p&gt;Boris: /* Disable parallel startup of services */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Instructions manually create a minimal openSUSE 10.3 template.&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
You need running openSUSE 10.3 installation.&lt;br /&gt;
&lt;br /&gt;
== Creating template ==&lt;br /&gt;
&lt;br /&gt;
=== Preparing the base system ===&lt;br /&gt;
&lt;br /&gt;
Run &amp;lt;code&amp;gt;yast2&amp;lt;/code&amp;gt; on your openSUSE 10.3 installation (this does not have to be your OpenVZ HN, you can prepare cache on one box and put it on your OpenVZ HN). Proceed with &amp;lt;code&amp;gt;Software-&amp;gt;Installation into directory&amp;lt;/code&amp;gt; option. It is assumed that this directory is current directory in following instructions (unless otherwise stated).&lt;br /&gt;
&lt;br /&gt;
=== Create device nodes ===&lt;br /&gt;
&lt;br /&gt;
I suggest creating all required nodes directly in the &amp;lt;code&amp;gt;lib/udev/devices/&amp;lt;/code&amp;gt;, in that case you don't have to disable udev in startup scripts.&lt;br /&gt;
&lt;br /&gt;
Execute the following commands to create device files:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mknod -m 666 lib/udev/devices/full c 1 7&lt;br /&gt;
mknod -m 600 lib/udev/devices/initctl p&lt;br /&gt;
mknod -m 666 lib/udev/devices/random c 1 8&lt;br /&gt;
mknod -m 444 lib/udev/devices/urandom c 1 9&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Fix console redirect ===&lt;br /&gt;
&lt;br /&gt;
Open &amp;lt;code&amp;gt;etc/init.d/halt&amp;lt;/code&amp;gt; script and replace the following lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Redirect our mesages to default console&lt;br /&gt;
test -n &amp;quot;$REDIRECT&amp;quot; &amp;amp;&amp;amp; exec 0&amp;lt;&amp;gt; $REDIRECT 1&amp;gt;&amp;amp;0 2&amp;gt;&amp;amp;0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
with this one (note &amp;lt;code&amp;gt;|| true&amp;lt;/code&amp;gt; at the end):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Redirect our mesages to default console&lt;br /&gt;
test -n &amp;quot;$REDIRECT&amp;quot; &amp;amp;&amp;amp; exec 0&amp;lt;&amp;gt; $REDIRECT 1&amp;gt;&amp;amp;0 2&amp;gt;&amp;amp;0 || true&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The reason is that this redirect fails with permission denied in OpenVZ environment if &amp;lt;code&amp;gt;$REDIRECT&amp;lt;/code&amp;gt; is console device (&amp;lt;code&amp;gt;/dev/console&amp;lt;/code&amp;gt;). As a result, script terminates with error (because of &amp;lt;code&amp;gt;set +e&amp;lt;/code&amp;gt; at the beginning) and the box is not stopped properly.&lt;br /&gt;
&lt;br /&gt;
As an option, you can replace console device with regular file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rm lib/udev/devices/console ; touch lib/udev/devices/console&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Make df working ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rm -f etc/mtab&lt;br /&gt;
ln -s /proc/mounts etc/mtab&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Disable parallel startup of services ==&lt;br /&gt;
&lt;br /&gt;
Set &amp;lt;code&amp;gt;RUN_PARALLEL&amp;lt;/code&amp;gt; variable in &amp;lt;code&amp;gt;&amp;lt;DIRINSTALL&amp;gt;/etc/sysconfig/boot&amp;lt;/code&amp;gt; to &amp;quot;no&amp;quot;.&lt;br /&gt;
[http://www.online-poker-spielen.biz/cool-hand-poker-review/ cool hand poker]&lt;br /&gt;
&lt;br /&gt;
== Disable boot.klog ==&lt;br /&gt;
&lt;br /&gt;
For some reason, &amp;lt;code&amp;gt;klogd&amp;lt;/code&amp;gt; hangs when tries to retrieve kernel log. You need to disable it. Simply delete &amp;lt;code&amp;gt;etc/rc.d/boot.d/S*boot.klog&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create OS template ==&lt;br /&gt;
&lt;br /&gt;
Create OS template cache by invoking the following command:&lt;br /&gt;
 tar --numeric-owner -czf /vz/template/cache/opensuse-10.3-i386-default.tar.gz ./&lt;br /&gt;
&lt;br /&gt;
{{Note|For Debian-based host you should put the archive inside &amp;lt;code&amp;gt;/var/lib/vz/template/cache&amp;lt;/code&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== startproc troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
It was noted that &amp;lt;code&amp;gt;startproc&amp;lt;/code&amp;gt; under recent OpenVZ kernels sometimes fails with errors like &amp;lt;code&amp;gt;startproc: cannot stat /proc/1128/exe: Permission denied&amp;lt;/code&amp;gt;. See http://openvz.org/pipermail/devel/2008-January/010278.html and follow-ups for workaround.&lt;br /&gt;
&lt;br /&gt;
[[Category: HOWTO]]&lt;br /&gt;
[[Category: Templates]]&lt;/div&gt;</summary>
		<author><name>Boris</name></author>
		
	</entry>
</feed>