/[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.14 Revision 1.15
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.14 2004/04/25 18:09:45 swift Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/uml.xml,v 1.15 2004/04/25 18:15:08 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.3</version> 27<version>0.4</version>
28<date>January 16, 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>
33<body> 33<body>
56# <i>emerge sys-kernel/usermode-sources</i> 56# <i>emerge sys-kernel/usermode-sources</i>
57# <i>cd /usr/src/uml/linux</i> 57# <i>cd /usr/src/uml/linux</i>
58# <i>make menuconfig <comment>ARCH=um</comment></i> 58# <i>make menuconfig <comment>ARCH=um</comment></i>
59# <i>make linux <comment>ARCH=um</comment></i> 59# <i>make linux <comment>ARCH=um</comment></i>
60# <i>cp linux /usr/local/bin/linux</i> 60# <i>cp linux /usr/local/bin/linux</i>
61</pre>
62
63<p>
64Make sure that <path>/usr/local/bin</path> is in your path. Edit
65<path>/etc/env.d/00basic</path> to that the PATH variable contains
66<path>/usr/local/bin</path> and rerun <c>env-update</c>:
67</p>
68
69<pre caption="Editing 00basic">
70# <i>nano -w /etc/env.d/00basic</i>
71# <i>env-update</i>
72# <i>source /etc/profile</i>
61</pre> 73</pre>
62 74
63<warn> 75<warn>
64The <e>ARCH=um</e> fragment is <e>extremely</e> important! 76The <e>ARCH=um</e> fragment is <e>extremely</e> important!
65</warn> 77</warn>
122extracted from a liveCD .iso. 134extracted from a liveCD .iso.
123</p> 135</p>
124 136
125<pre caption="Mounting a liveCD .iso"> 137<pre caption="Mounting a liveCD .iso">
126# <i>mkdir /mnt/loop</i> 138# <i>mkdir /mnt/loop</i>
127# <i>mount -o loop /path/to/build-&lt;TAB&gt;.iso /mnt/loop</i> 139# <i>mount -o loop /path/to/install-&lt;TAB&gt;.iso /mnt/loop</i>
128</pre> 140</pre>
129 141
130<p> 142<p>
131Setting up the chroot is essentially identical to an ordinary Gentoo 143Setting up the chroot is essentially identical to an ordinary Gentoo
132Linux build. 144Linux build.
133</p> 145</p>
134 146
135<pre caption="Creating the Gentoo chroot mount"> 147<pre caption="Creating the Gentoo chroot mount">
136# <i>mkdir /mnt/gentoo</i> 148# <i>mkdir /mnt/gentoo</i>
137# <i>cd /mnt/gentoo</i> 149# <i>cd /mnt/gentoo</i>
138# <i>tar xvjpf /path/to/build-&lt;TAB&gt;.tar.bz2</i> 150# <i>tar xvjpf /path/to/stage&lt;TAB&gt;.tar.bz2</i>
139</pre> 151</pre>
140 152
141<p> 153<p>
142Go ahead and unmount the .iso. You don't need it anymore. 154Go ahead and unmount the .iso. You don't need it anymore.
143</p> 155</p>
172# <i>nano -w /etc/make.conf</i> 184# <i>nano -w /etc/make.conf</i>
173# <i>nano -w /etc/make.profile/packages</i> 185# <i>nano -w /etc/make.profile/packages</i>
174# <i>nano -w /usr/portage/profiles/package.mask</i> 186# <i>nano -w /usr/portage/profiles/package.mask</i>
175# <i>scripts/bootstrap.sh &amp;&amp; emerge --usepkg system</i> 187# <i>scripts/bootstrap.sh &amp;&amp; emerge --usepkg system</i>
176</pre> 188</pre>
177
178<warn>
179<!--Changed grub to virtual/bootloader-->
180The <path>/etc/make.profile/packages</path> file needs to be
181edited to remove the virtual/bootloader ebuild from the default system if it
182is listed (just remove the "*" from the beginning of the "*virtual/bootloader"
183line). The virtual/bootloader ebuild tries to mount the /boot partition, which
184will fail in our chroot.
185</warn>
186 189
187<note> 190<note>
188Make sure you examine <path>/etc/make.profile/packages</path> 191Make sure you examine <path>/etc/make.profile/packages</path>
189and <path>/usr/portage/profiles/package.mask</path> to be sure that 192and <path>/usr/portage/profiles/package.mask</path> to be sure that
190any to-be-tested packages that you want to install aren't masked out. 193any to-be-tested packages that you want to install aren't masked out.

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

  ViewVC Help
Powered by ViewVC 1.1.20