/[gentoo]/xml/htdocs/doc/en/uml.xml
Gentoo

Diff of /xml/htdocs/doc/en/uml.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.15 Revision 1.16
1<?xml version='1.0' encoding="UTF-8"?> 1<?xml version='1.0' encoding="UTF-8"?>
2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/uml.xml,v 1.15 2004/04/25 18:15:08 swift Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/uml.xml,v 1.16 2004/04/25 18:33:27 swift Exp $ -->
3 3
4<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 4<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
5 5
6<guide link="/doc/en/uml.xml"> 6<guide link="/doc/en/uml.xml">
7<title>Gentoo Linux Developer's guide to system testing with User-Mode Linux</title> 7<title>Gentoo Linux Developer's guide to system testing with User-Mode Linux</title>
22 user-mode linux for testing potentially system-breaking changes. 22 user-mode linux for testing potentially system-breaking changes.
23</abstract> 23</abstract>
24 24
25<license/> 25<license/>
26 26
27<version>0.4</version> 27<version>0.5</version>
28<date>April 25, 2004</date> 28<date>April 25, 2004</date>
29 29
30<chapter> 30<chapter>
31<title>Obtaining User-Mode Linux</title> 31<title>Obtaining User-Mode Linux</title>
32<section> 32<section>
152 152
153<p> 153<p>
154Go ahead and unmount the .iso. You don't need it anymore. 154Go ahead and unmount the .iso. You don't need it anymore.
155</p> 155</p>
156 156
157<pre caption="Prepare to install Gentoo">
158# <i>cp /etc/resolv.conf /mnt/gentoo/etc/</i>
159# <i>mount -o bind /proc /mnt/gentoo/proc</i>
160# <i>mkdir -p /mnt/gentoo/usr/portage/distfiles</i>
161# <i>mkdir -p /mnt/gentoo/usr/portage/packages</i>
162# <i>mount -o bind /usr/portage/distfiles /mnt/gentoo/usr/portage/distfiles</i>
163# <i>mount -o bind /usr/portage/packages /mnt/gentoo/usr/portage/packages</i>
164# <i>chroot /mnt/gentoo /bin/bash</i>
165<!--per bug 16134, added emerge sync to supress warning, etc-->
166# <i>emerge sync</i>
167# <i>env-update</i>
168# <i>source /etc/profile</i>
169</pre>
170
171<p>
172By bind-mounting <path>/usr/portage/distfiles</path> and
173<path>/usr/portage/packages</path> we avoid having to download
174or build packages that are already present on the Gentoo host.
175</p> 157<p>
176 158Bootstrap and build the system in the usual fashion. Just follow the
159installation instructions :)
177<p> 160</p>
178Bootstrap and build the system in the usual fashion:
179</p>
180
181<pre caption="Start the Gentoo installation">
182<!--removed the emerge sync below because it is done above-->
183# <i>cd /usr/portage</i>
184# <i>nano -w /etc/make.conf</i>
185# <i>nano -w /etc/make.profile/packages</i>
186# <i>nano -w /usr/portage/profiles/package.mask</i>
187# <i>scripts/bootstrap.sh &amp;&amp; emerge --usepkg system</i>
188</pre>
189
190<note>
191Make sure you examine <path>/etc/make.profile/packages</path>
192and <path>/usr/portage/profiles/package.mask</path> to be sure that
193any to-be-tested packages that you want to install aren't masked out.
194As currently written, <path>scripts/bootstrap.sh</path> will compile
195the bootstrap packages from source. To use already-existing packages,
196add <c>alias emerge="emerge --usepkg"</c> somewhere near the top of
197the bootstrap script.
198</note>
199 161
200<p> 162<p>
201Add any additional packages you desire. Feel free to give your virtual 163Add any additional packages you desire. Feel free to give your virtual
202Gentoo system a hostname, if you so desire. In <path>/etc/fstab</path> 164Gentoo system a hostname, if you so desire. In <path>/etc/fstab</path>
203you will want <path>/dev/ROOT</path> to be <path>/dev/ubd/0</path>, with 165you will want <path>/dev/ROOT</path> to be <path>/dev/ubd/0</path>, with
213# <i>passwd</i> 175# <i>passwd</i>
214</pre> 176</pre>
215 177
216<p> 178<p>
217Exit the chroot, unmount all of the bind mounts, 179Exit the chroot, unmount all of the bind mounts,
218tar up the new Gentoo distro, and clean up: 180tar up the new Gentoo distro, and clean up.
219</p> 181</p>
220 182
221<pre caption="Finalising the installation"> 183<pre caption="Finalising the installation">
222# <i>exit</i>
223# <i>umount /mnt/gentoo/usr/portage/distfiles</i>
224# <i>umount /mnt/gentoo/usr/portage/packages</i>
225# <i>umount /mnt/gentoo/proc</i>
226# <i>du -ks /mnt/gentoo</i>
227<!-- wtf is this? 261744 /mnt/gentoo-->
228<!-- added dir change to be more explicit-->
229# <i>cd /mnt/gentoo</i> 184# <i>cd /mnt/gentoo</i>
230# <i>tar cvjpf ~/gentoo.tbz2 *</i> 185# <i>tar cvjpf ~/gentoo.tbz2 *</i>
231# <i>cd</i> 186# <i>cd</i>
232# <i>rm -rf /mnt/gentoo</i> 187# <i>rm -rf /mnt/gentoo</i>
233</pre> 188</pre>
234
235<p>
236You might also want to consider reviewing the final steps of the
237<uri link="http://www.gentoo.org/doc/en/gentoo-x86-install.xml">Gentoo Linux x86 Installation Guide</uri>.
238</p>
239 189
240</body> 190</body>
241</section> 191</section>
242<section> 192<section>
243<title>Making root_fs</title> 193<title>Making root_fs</title>
391Booting the .iso, or actually the initrd from the .iso, is pretty 341Booting the .iso, or actually the initrd from the .iso, is pretty
392straightforward. 342straightforward.
393</p> 343</p>
394 344
395<pre caption="Booting the ISO"> 345<pre caption="Booting the ISO">
396# <i>mount -o loop /path/to/build-&lt;TAB&gt;.iso /mnt/loop</i> 346# <i>mount -o loop /path/to/install-&lt;TAB&gt;.iso /mnt/loop</i>
397# <i>cp /mnt/loop/isolinux/rescue.gz .</i> 347# <i>cp /mnt/loop/isolinux/gentoo.igz .</i>
398# <i>linux load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=22000 \</i> 348# <i>linux load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=22000 \</i>
399&gt; <i>initrd=rescue.gz root=/dev/ram0 ubd0=root_fs ubd1=swap_fs \</i> 349&gt; <i>initrd=rescue.gz root=/dev/ram0 ubd0=root_fs ubd1=swap_fs \</i>
400&gt; <i>ubd2=/dev/cdroms/cdrom0 eth0=ethertap,tap0,,192.168.0.254</i> 350&gt; <i>ubd2=/dev/cdroms/cdrom0 eth0=ethertap,tap0,,192.168.0.254</i>
401</pre> 351</pre>
402 352

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

  ViewVC Help
Powered by ViewVC 1.1.20