Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Ubuntu template

445 bytes added, 12:36, 7 April 2009
warn -> warning
{{Warning|Dapper (i.e. 6.06) is no longer supported. Use newer Ubuntu templates.}} The ubuntu template is an OpenVZ [[OS template]] that allows you to run ubuntu dapper in your [[VEcontainer]], as opposed to the normal Debian stable or Fedora.
''Please note, that this package is really minimal, you must even install your own language pack!''
==How do I get it?==
You may download it from one of the following places:
* [http://dudcore.net/ubuntu/ubuntu-6.06-i386-minimal.tar.gz Original place] (dudcore.net)
* [http://download.openvz.org/contrib/template/precreated/ubuntu-6.06-i386-minimal.tar.gz download.openvz.org]
* One of the [[download mirrors]]
You must place this file in <tt>/vz/template/cache/</tt> directory on your [[hardware node]].
ifu==How do I create a VE container that uses this template?==All you have to do is simply create a normal VE container but specify ubuntu-6.06-i386-minimal as the template. For example:
<pre> vzctl create 1002 --ostemplate ubuntu-6.06-i386-minimal </pre>
==How do I set it up?==
You can either do those modifications on already existing VEcontainer, or, if you want these changes to be incorporated into your template, create a temporary VEcontainer, do these changes, stop the VE container and tar the result into the same template file. Well, the first thing you *must* do is install a language pack. You can do this by typing in<pre> apt-get install language-pack-en </pre> <pre>Bug alert: I (Shane Hathaway) got the following error when I tried to install language-pack-en.  debconf: apt-extracttemplates failed: Bad file descriptordpkg: dpkg - error: PATH is not set. I patched the problem by typing "export PATH". Even though the path is set, for somereason it is not exported by default. I also added "export PATH" to /etc/profile .</pre>
Well, the first thing you *must* do is install a language pack. You can do this by typing in <pre> apt-get install language-pack-en </pre>
Then you should create another user. To do this, just type in <pre> adduser bob </pre>
You will probably want to install some other basic utilities: <pre>apt-get install man traceroute wget</pre>
/etc/network/if-up.d/ntpdate
</pre>
wants to set the clock during network start and runs into a very long timeout. Since ntpdate is not needed at all inside a VE container this script can simply be deleted. And Magic - the VE container starts up as fast as I would expect it to and all network interfaces are up and running at once.
==Bugs==
[[Category: Templates]]
[[Category: HOWTO]]
[[Category:Ubuntu]]