<?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=Pzanoni</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=Pzanoni"/>
	<link rel="alternate" type="text/html" href="https://wiki.openvz.org/Special:Contributions/Pzanoni"/>
	<updated>2026-05-02T20:57:03Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Ubuntu_without_templates&amp;diff=7304</id>
		<title>Ubuntu without templates</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Ubuntu_without_templates&amp;diff=7304"/>
		<updated>2009-05-06T14:42:04Z</updated>

		<summary type="html">&lt;p&gt;Pzanoni: added categories&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This tutorial will teach how to install the newest Ubuntu versions through chroot (no templates required).&lt;br /&gt;
&lt;br /&gt;
==Initial steps==&lt;br /&gt;
&lt;br /&gt;
* Choose a number for your machine (example: 101)&lt;br /&gt;
* Choose an ubuntu version (this howto was tested with hardy, intrepid and jaunty)&lt;br /&gt;
* Go to the directory where the images will be placed:&lt;br /&gt;
 cd /vz/private/&lt;br /&gt;
* Create a directory for the new machine:&lt;br /&gt;
 mkdir 101&lt;br /&gt;
* Run debootstrap:&lt;br /&gt;
 debootstrap --arch=i386 jaunty 101/ http://br.archive.ubuntu.com/ubuntu&lt;br /&gt;
(you can change the mirror if you want)&lt;br /&gt;
* Edit the machine configuration in /etc/vz/conf/101.conf. Configure its name, IP, memory and everything else&lt;br /&gt;
* Start the machine&lt;br /&gt;
 vzctl start 101&lt;br /&gt;
&lt;br /&gt;
==Fixing bugs==&lt;br /&gt;
&lt;br /&gt;
===udev===&lt;br /&gt;
If you try to enter the machine you'll see an error:&lt;br /&gt;
&lt;br /&gt;
 eva:/vz/private# vzctl enter 101&lt;br /&gt;
 enter into VE 101 failed&lt;br /&gt;
 Unable to open pty: No such file or directory&lt;br /&gt;
&lt;br /&gt;
To solve this, you'll have to remove udev from the boot:&lt;br /&gt;
&lt;br /&gt;
 eva:/vz/private# vzctl exec 101 'update-rc.d -f udev remove'&lt;br /&gt;
 Removing any system startup links for /etc/init.d/udev ...&lt;br /&gt;
 /etc/rcS.d/S10udev&lt;br /&gt;
&lt;br /&gt;
Then you'll be able to enter the machine after restarting it:&lt;br /&gt;
&lt;br /&gt;
 vzctl restart 101&lt;br /&gt;
 vzctl enter 101&lt;br /&gt;
&lt;br /&gt;
Note: when you update the udev package you'll probably have to run the &amp;quot;update-rc.d -f udev remove&amp;quot; command again.&lt;br /&gt;
&lt;br /&gt;
===klogd===&lt;br /&gt;
&lt;br /&gt;
Type this command:&lt;br /&gt;
 ps aux&lt;br /&gt;
&lt;br /&gt;
You'll see that &amp;quot;init&amp;quot; didn't finish because the &amp;quot;klogd&amp;quot; process is still being run. You'll have to fix this:&lt;br /&gt;
&lt;br /&gt;
 update-rc.d -f klogd remove&lt;br /&gt;
&lt;br /&gt;
Restart the machine and see the results:&lt;br /&gt;
 exit&lt;br /&gt;
 vzctl restart 101&lt;br /&gt;
 vzctl enter 101&lt;br /&gt;
 ps aux&lt;br /&gt;
&lt;br /&gt;
===network===&lt;br /&gt;
&lt;br /&gt;
For newer ubuntu versions, you'll notice that the network is not working. To fix this problem, you'll have to edit the /etc/init.d/networking script. You'll have to make it create the &amp;quot;/var/run/network&amp;quot; directory just after its &amp;quot;start&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
  case &amp;quot;$1&amp;quot; in&lt;br /&gt;
    start)&lt;br /&gt;
      mkdir -p /var/run/network # -&amp;gt; this is the new line&lt;br /&gt;
      process_options&lt;br /&gt;
&lt;br /&gt;
Then, start the networking:&lt;br /&gt;
&lt;br /&gt;
  /etc/init.d/networking start&lt;br /&gt;
&lt;br /&gt;
(important: use start, not restart)&lt;br /&gt;
&lt;br /&gt;
===gettty===&lt;br /&gt;
&lt;br /&gt;
If you look at the running processes, you'll see that there are a lot of &amp;quot;/sbin/getty&amp;quot; processes. You can also remove these.&lt;br /&gt;
&lt;br /&gt;
===Other init stuff===&lt;br /&gt;
&lt;br /&gt;
Feel free to use 'update-rc.d' to remove any other unneded stuff =)&lt;br /&gt;
&lt;br /&gt;
==Finish==&lt;br /&gt;
&lt;br /&gt;
Now you're free to use your machine =)&lt;br /&gt;
&lt;br /&gt;
You'll still probably want to add the &amp;quot;security&amp;quot; and &amp;quot;updates&amp;quot; repositories, install openssh-server, change the root password, update the system, change locales and other stuff. Enjoy =)&lt;br /&gt;
&lt;br /&gt;
[[Category: HOWTO]]&lt;br /&gt;
[[Category:Ubuntu]]&lt;/div&gt;</summary>
		<author><name>Pzanoni</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Ubuntu_without_templates&amp;diff=7303</id>
		<title>Ubuntu without templates</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Ubuntu_without_templates&amp;diff=7303"/>
		<updated>2009-05-06T14:41:12Z</updated>

		<summary type="html">&lt;p&gt;Pzanoni: this is a page for newer ubuntus (8 and 9)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This tutorial will teach how to install the newest Ubuntu versions through chroot (no templates required).&lt;br /&gt;
&lt;br /&gt;
==Initial steps==&lt;br /&gt;
&lt;br /&gt;
* Choose a number for your machine (example: 101)&lt;br /&gt;
* Choose an ubuntu version (this howto was tested with hardy, intrepid and jaunty)&lt;br /&gt;
* Go to the directory where the images will be placed:&lt;br /&gt;
 cd /vz/private/&lt;br /&gt;
* Create a directory for the new machine:&lt;br /&gt;
 mkdir 101&lt;br /&gt;
* Run debootstrap:&lt;br /&gt;
 debootstrap --arch=i386 jaunty 101/ http://br.archive.ubuntu.com/ubuntu&lt;br /&gt;
(you can change the mirror if you want)&lt;br /&gt;
* Edit the machine configuration in /etc/vz/conf/101.conf. Configure its name, IP, memory and everything else&lt;br /&gt;
* Start the machine&lt;br /&gt;
 vzctl start 101&lt;br /&gt;
&lt;br /&gt;
==Fixing bugs==&lt;br /&gt;
&lt;br /&gt;
===udev===&lt;br /&gt;
If you try to enter the machine you'll see an error:&lt;br /&gt;
&lt;br /&gt;
 eva:/vz/private# vzctl enter 101&lt;br /&gt;
 enter into VE 101 failed&lt;br /&gt;
 Unable to open pty: No such file or directory&lt;br /&gt;
&lt;br /&gt;
To solve this, you'll have to remove udev from the boot:&lt;br /&gt;
&lt;br /&gt;
 eva:/vz/private# vzctl exec 101 'update-rc.d -f udev remove'&lt;br /&gt;
 Removing any system startup links for /etc/init.d/udev ...&lt;br /&gt;
 /etc/rcS.d/S10udev&lt;br /&gt;
&lt;br /&gt;
Then you'll be able to enter the machine after restarting it:&lt;br /&gt;
&lt;br /&gt;
 vzctl restart 101&lt;br /&gt;
 vzctl enter 101&lt;br /&gt;
&lt;br /&gt;
Note: when you update the udev package you'll probably have to run the &amp;quot;update-rc.d -f udev remove&amp;quot; command again.&lt;br /&gt;
&lt;br /&gt;
===klogd===&lt;br /&gt;
&lt;br /&gt;
Type this command:&lt;br /&gt;
 ps aux&lt;br /&gt;
&lt;br /&gt;
You'll see that &amp;quot;init&amp;quot; didn't finish because the &amp;quot;klogd&amp;quot; process is still being run. You'll have to fix this:&lt;br /&gt;
&lt;br /&gt;
 update-rc.d -f klogd remove&lt;br /&gt;
&lt;br /&gt;
Restart the machine and see the results:&lt;br /&gt;
 exit&lt;br /&gt;
 vzctl restart 101&lt;br /&gt;
 vzctl enter 101&lt;br /&gt;
 ps aux&lt;br /&gt;
&lt;br /&gt;
===network===&lt;br /&gt;
&lt;br /&gt;
For newer ubuntu versions, you'll notice that the network is not working. To fix this problem, you'll have to edit the /etc/init.d/networking script. You'll have to make it create the &amp;quot;/var/run/network&amp;quot; directory just after its &amp;quot;start&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
  case &amp;quot;$1&amp;quot; in&lt;br /&gt;
    start)&lt;br /&gt;
      mkdir -p /var/run/network # -&amp;gt; this is the new line&lt;br /&gt;
      process_options&lt;br /&gt;
&lt;br /&gt;
Then, start the networking:&lt;br /&gt;
&lt;br /&gt;
  /etc/init.d/networking start&lt;br /&gt;
&lt;br /&gt;
(important: use start, not restart)&lt;br /&gt;
&lt;br /&gt;
===gettty===&lt;br /&gt;
&lt;br /&gt;
If you look at the running processes, you'll see that there are a lot of &amp;quot;/sbin/getty&amp;quot; processes. You can also remove these.&lt;br /&gt;
&lt;br /&gt;
===Other init stuff===&lt;br /&gt;
&lt;br /&gt;
Feel free to use 'update-rc.d' to remove any other unneded stuff =)&lt;br /&gt;
&lt;br /&gt;
==Finish==&lt;br /&gt;
&lt;br /&gt;
Now you're free to use your machine =)&lt;br /&gt;
&lt;br /&gt;
You'll still probably want to add the &amp;quot;security&amp;quot; and &amp;quot;updates&amp;quot; repositories, install openssh-server, change the root password, update the system, change locales and other stuff. Enjoy =)&lt;/div&gt;</summary>
		<author><name>Pzanoni</name></author>
		
	</entry>
</feed>