http://linux-vserver.org/index.php?title=Installing_Ubuntu_8.04_Hardy_as_guest&feed=atom&action=historyInstalling Ubuntu 8.04 Hardy as guest - Revision history2024-03-28T15:09:59ZRevision history for this page on the wikiMediaWiki 1.20.2http://linux-vserver.org/index.php?title=Installing_Ubuntu_8.04_Hardy_as_guest&diff=5003&oldid=prevGlenn: catspec2011-10-21T20:52:48Z<p>catspec</p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 20:52, 21 October 2011</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 108:</td>
<td colspan="2" class="diff-lineno">Line 108:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Remember that you will have to create symlinks to services in /etc/rc6.d in order for them to be stopped when running 'vserver [vservername] stop'</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Remember that you will have to create symlinks to services in /etc/rc6.d in order for them to be stopped when running 'vserver [vservername] stop'</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>[[Category:<del class="diffchange diffchange-inline">Documentation</del>]]</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>[[Category:<ins class="diffchange diffchange-inline">OS guest under linux-vserver</ins>]]</div></td></tr>
</table>Glennhttp://linux-vserver.org/index.php?title=Installing_Ubuntu_8.04_Hardy_as_guest&diff=4882&oldid=prevGlenn: +cat2011-10-21T19:20:06Z<p>+cat</p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 19:20, 21 October 2011</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 107:</td>
<td colspan="2" class="diff-lineno">Line 107:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Remember that you will have to create symlinks to services in /etc/rc6.d in order for them to be stopped when running 'vserver [vservername] stop'</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Remember that you will have to create symlinks to services in /etc/rc6.d in order for them to be stopped when running 'vserver [vservername] stop'</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">[[Category:Documentation]]</ins></div></td></tr>
</table>Glennhttp://linux-vserver.org/index.php?title=Installing_Ubuntu_8.04_Hardy_as_guest&diff=3876&oldid=prevMstrobert: Installing Ubuntu Hoary as guest moved to Installing Ubuntu 8.04 Hardy as guest: This information is for Ubuntu 8.04 Hardy, not Hoary.2009-08-18T20:55:59Z<p><a href="/Installing_Ubuntu_Hoary_as_guest" class="mw-redirect" title="Installing Ubuntu Hoary as guest">Installing Ubuntu Hoary as guest</a> moved to <a href="/Installing_Ubuntu_8.04_Hardy_as_guest" title="Installing Ubuntu 8.04 Hardy as guest">Installing Ubuntu 8.04 Hardy as guest</a>: This information is for Ubuntu 8.04 Hardy, not Hoary.</p>
<table class='diff diff-contentalign-left'>
<tr style='vertical-align: top;'>
<td colspan='1' style="background-color: white; color:black;">← Older revision</td>
<td colspan='1' style="background-color: white; color:black;">Revision as of 20:55, 18 August 2009</td>
</tr></table>Mstroberthttp://linux-vserver.org/index.php?title=Installing_Ubuntu_8.04_Hardy_as_guest&diff=3875&oldid=prev207.54.125.138: it's hardy, not hoary2009-08-18T20:50:25Z<p>it's hardy, not hoary</p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 20:50, 18 August 2009</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>Installing Ubuntu <del class="diffchange diffchange-inline">Hoary </del>as a Vserver guest</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>Installing Ubuntu <ins class="diffchange diffchange-inline">8.04 (Hardy) </ins>as a Vserver guest</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>As <del class="diffchange diffchange-inline">Hoary </del>is the latest LTS release of Ubuntu, it would be a good choice to install as a server. A lot of this information is from the OpenVZ guide at https://help.ubuntu.com/community/OpenVZ.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>As <ins class="diffchange diffchange-inline">Ubuntu 8.04 (Hardy) </ins>is the latest LTS release of Ubuntu, it would be a good choice to install as a server. A lot of this information is from the OpenVZ guide at https://help.ubuntu.com/community/OpenVZ.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>This guide requires that you have configured your /etc/vservers/.default correctly</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>This guide requires that you have configured your /etc/vservers/.default correctly</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 104:</td>
<td colspan="2" class="diff-lineno">Line 104:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== Finished ==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== Finished ==</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>Now you have installed <del class="diffchange diffchange-inline">hoary </del>from debootstrap, and hopefully everything is working</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>Now you have installed <ins class="diffchange diffchange-inline">hardy </ins>from debootstrap, and hopefully everything is working</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Remember that you will have to create symlinks to services in /etc/rc6.d in order for them to be stopped when running 'vserver [vservername] stop'</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Remember that you will have to create symlinks to services in /etc/rc6.d in order for them to be stopped when running 'vserver [vservername] stop'</div></td></tr>
</table>207.54.125.138http://linux-vserver.org/index.php?title=Installing_Ubuntu_8.04_Hardy_as_guest&diff=3440&oldid=prev90.149.13.151: /* Finished */2008-11-04T12:27:42Z<p><span dir="auto"><span class="autocomment">Finished</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 12:27, 4 November 2008</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 105:</td>
<td colspan="2" class="diff-lineno">Line 105:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== Finished ==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== Finished ==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Now you have installed hoary from debootstrap, and hopefully everything is working</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Now you have installed hoary from debootstrap, and hopefully everything is working</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">Remember that you will have to create symlinks to services in /etc/rc6.d in order for them to be stopped when running 'vserver [vservername] stop'</ins></div></td></tr>
</table>90.149.13.151http://linux-vserver.org/index.php?title=Installing_Ubuntu_8.04_Hardy_as_guest&diff=3439&oldid=prev90.149.13.151: /* Fixing the "id: cannot find name for group ID 11" issue */ Minor error2008-11-04T12:16:10Z<p><span dir="auto"><span class="autocomment">Fixing the "id: cannot find name for group ID 11" issue: </span> Minor error</span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 12:16, 4 November 2008</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 66:</td>
<td colspan="2" class="diff-lineno">Line 66:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>I don't know what the group really shoud be, but I just added the group "void" as group 11. Someone who knows what it should be, could probably correct it.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>I don't know what the group really shoud be, but I just added the group "void" as group 11. Someone who knows what it should be, could probably correct it.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>   groupadd -g 11 void</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>   <ins class="diffchange diffchange-inline">root@hardy-guest:/# </ins>groupadd -g 11 void</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div> </div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== Removing unneeded packages ==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== Removing unneeded packages ==</div></td></tr>
</table>90.149.13.151http://linux-vserver.org/index.php?title=Installing_Ubuntu_8.04_Hardy_as_guest&diff=3438&oldid=prev90.149.13.151: New page: Installing Ubuntu Hoary as a Vserver guest As Hoary is the latest LTS release of Ubuntu, it would be a good choice to install as a server. A lot of this information is from the OpenVZ gui...2008-11-04T12:11:38Z<p>New page: Installing Ubuntu Hoary as a Vserver guest As Hoary is the latest LTS release of Ubuntu, it would be a good choice to install as a server. A lot of this information is from the OpenVZ gui...</p>
<p><b>New page</b></p><div>Installing Ubuntu Hoary as a Vserver guest<br />
<br />
As Hoary is the latest LTS release of Ubuntu, it would be a good choice to install as a server. A lot of this information is from the OpenVZ guide at https://help.ubuntu.com/community/OpenVZ.<br />
<br />
This guide requires that you have configured your /etc/vservers/.default correctly<br />
<br />
__TOC__<br />
== Prerequisites ==<br />
* debootstrap <br />
<br />
[Vserver-host] $ sudo apt-get install debootstrap<br />
<br />
== Debootstraping in Ubuntu ==<br />
[Vserver-host] $ vserver hardy-guest build -m debootstrap \<br />
--context 42 --hostname hardy-guest --force \<br />
--interface eth0:10.0.0.123/8 \<br />
-- -d hardy -m http://us.archive.ubuntu.com/ubuntu/ \<br />
-- --arch=i386 --exclude=udev<br />
<br />
You will receive the following warning 5 times (obviously):<br />
<br />
W: Failure while configuring base packages. This will be attempted 5 times.<br />
<br />
You can safely ignore them, as we will fix this later<br />
<br />
== Removing unneeded services ==<br />
By default klogd and rmnologin runs at startup of the guest, it is not necessary, and will slow down the startup time of your guest, you better remove them<br />
<br />
[Vserver-host] $ cd /[path_of_vservers]/hardy-guest/etc/rc3.d<br />
[Vserver-host] $ rm S11klogd S99rmnologin<br />
<br />
You should also remove unneeded shutdown scripts<br />
<br />
[Vserver-host] $ cd /[path_of_vservers]/hardy-guest/etc/rc6.d<br />
[Vserver-host] $ rm *<br />
<br />
You should add a link for killing sysklogd<br />
<br />
[Vserver-host] $ ln -s ../init.d/sysklogd K11sysklogd<br />
<br />
== Starting guest and fixing group 11 issue ==<br />
Now it is time to start your new vserver and enter it:<br />
[Vserver-host] $ vserver hardy-guest start<br />
It will return the following:<br />
/etc/init.d/rc: 166: cannot open /dev/console: No such file<br />
* Starting system log daemon...<br />
...done.<br />
* Running local boot scripts (/etc/rc.local)<br />
...done.<br />
Then you can enter your vserver<br />
[Vserver-host] $ vserver hardy-guest enter<br />
It will return the following:<br />
id: cannot find name for group ID 11<br />
<br />
=== Fixing the "/etc/init.d/rc: 166: cannot open /dev/console: No such file" issue ===<br />
Open /etc/init.d/rc in your favorite editor<br />
root@hardy-guest:/# vim /etc/init.d/rc<br />
Find the following lines and comment them out by perpending them with an "#" (this has been done in the example) They will be at line 163-166<br />
# Set onlcr to avoid staircase effect.<br />
#if [ "$QUIET" != yes ]; then<br />
# stty onlcr </dev/console >/dev/console 2>&1<br />
#fi<br />
Save and quit<br />
<br />
=== Fixing the "id: cannot find name for group ID 11" issue ===<br />
I don't know what the group really shoud be, but I just added the group "void" as group 11. Someone who knows what it should be, could probably correct it.<br />
<br />
groupadd -g 11 void<br />
<br />
<br />
== Removing unneeded packages ==<br />
There are some packages you obviously would not need in a vserver-guest:<br />
<br />
* DHCP3<br />
* busybox-initramfs<br />
* console-setup<br />
* dmidecode eject<br />
* ethtool<br />
* initramfs-tools<br />
* klibc-utils<br />
* laptop-detect<br />
* libiw29<br />
* libklibc<br />
* libvolume-id0<br />
* mii-diag<br />
* module-init-tools<br />
* ntpdate<br />
* pciutils<br />
* pcmciautils<br />
* ubuntu-minimal<br />
* udev usbutils<br />
* wireless-tools<br />
* wpasupplicant<br />
* xkb-data<br />
* tasksel<br />
* tasksel-data<br />
<br />
So you should start up your new guest and enter it and remove them.<br />
<br />
[hardy-guest] $ apt-get remove --purge busybox-initramfs console-setup dmidecode eject \<br />
ethtool initramfs-tools klibc-utils laptop-detect libiw29 libklibc \<br />
libvolume-id0 mii-diag module-init-tools ntpdate pciutils pcmciautils ubuntu-minimal \<br />
udev usbutils wireless-tools wpasupplicant xkb-data tasksel tasksel-data \<br />
dhcp3-client dhcp3-server<br />
<br />
== Finished ==<br />
Now you have installed hoary from debootstrap, and hopefully everything is working</div>90.149.13.151