swift       07/08/24 18:37:53

  Modified:             xen-guide.xml
  Log:
  Updates on bug #105177, should be about finished right now

Revision  Changes    Path
1.3                  xml/htdocs/doc/en/draft/xen-guide.xml

file : 
http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/draft/xen-guide.xml?rev=1.3&view=markup
plain: 
http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/draft/xen-guide.xml?rev=1.3&content-type=text/plain
diff : 
http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/draft/xen-guide.xml?r1=1.2&r2=1.3

Index: xen-guide.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/draft/xen-guide.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- xen-guide.xml       25 Jul 2007 19:14:01 -0000      1.2
+++ xen-guide.xml       24 Aug 2007 18:37:53 -0000      1.3
@@ -1,5 +1,5 @@
 <?xml version='1.0' encoding='UTF-8'?>
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/draft/xen-guide.xml,v 1.2 
2007/07/25 19:14:01 swift Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/draft/xen-guide.xml,v 1.3 
2007/08/24 18:37:53 swift Exp $ -->
 
 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
 
@@ -19,8 +19,8 @@
 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
 <license/>
 
-<version>0.1</version>
-<date>2007-07-24</date>
+<version>0.9</version>
+<date>2007-08-24</date>
 
 <chapter>
 <title>Introduction</title>
@@ -72,7 +72,7 @@
 <body>
 
 <p>
-A drastic change that might be necessary is to rebuild the entire Gentoo
+A dramatic change that might be necessary is to rebuild the entire Gentoo
 installation with a different <c>CFLAGS</c> setting. Guest operating systems
 running under Xen might otherwise see major performance degradation. If you,
 however, are planning on checking out Xen rather than installing it for
@@ -349,8 +349,8 @@
 
 <p>
 The domain would be booted inside the terminal in which you executed the
-command. However, in our case, the disk image is empty so the domain wouldn't 
be
-able to do much. To fix this, you can loop-mount the image and install Gentoo 
as
+command. However, in our case, the disk image is empty so the domain won't boot
+up in anything useful. To fix this, you can loop-mount the image and install 
Gentoo as
 you're used to.
 </p>
 
@@ -387,7 +387,9 @@
 </p>
 
 <p>
-When selecting the <e>bridged</e> approach, <brite>TODO</brite>.
+When selecting the <e>bridged</e> approach, your default network interface on
+the administrative domain becomes a bridge which accepts connections to the
+virtual domains as well as to the IP address your administrative domain has.
 </p>
 
 </body>
@@ -445,5 +447,70 @@
 
 </body>
 </section>
+<section>
+<title>Bridged Interfaces</title>
+<body>
+
+<p>
+Unlike the routed interfaces you now need to load the <path>netloop</path>
+driver with <c>nloopbacks=1</c> (or higher) as the additional loopback devices
+are used to create the bridge. For the other modules you still need the
+<path>netbk</path> module as well as briding functionality (<path>bridge</path>
+module if build as such).
+</p>
+
+<p>
+Now edit your virtual domain and add the <c>vif</c> construct:
+</p>
+
+<pre caption="Configuring a virtual interface">
+~# <i>nano -w /mnt/data/xen/configs/gentoo</i>
+
+<comment>(Add the vif instruction)</comment>
+vif    = [ 'ip=192.168.1.101, vifname=veth0' ]
+</pre>
+
+<p>
+Next edit <path>/etc/xen/xend-config.xsp</path> as follows to select bridged
+network configuration:
+</p>
+
+<pre caption="Editing xend-config.xsp">
+~# <i>nano -w /etc/xen/xend-config.xsp</i>
+
+<comment>(Enable the following lines)</comment>
+(network-script network-bridge)
+(vif-script vif-bridge)
+
+<comment>(Comment out the following lines if not done already)</comment>
+<i>#</i> (network-script network-route)
+<i>#</i> (vif-script vif-route)
+</pre>
+
+<p>
+By default, the bridge will contain whatever interface is configured to be the
+default interface (the device that is listed under the default route through
+<c>ip route list</c>). If you want to alter this behavior, edit the
+<path>xend-config.xsp</path> as follows:
+</p>
+
+<pre caption="Editing xend-config.xsp to change bridge configuration">
+~# <i>nano -w /etc/xen/xend-config.xsp</i>
+
+<comment>(Edit the network-script line)</comment>
+(network-script <i>'</i>network-bridge <i>netdev=eth0 bridge=xenbr0 
vifnum=0'</i>)
+</pre>
+
+<p>
+Once the configuration is done, restart the <c>xend</c> init script to have Xen
+build the bridge:
+</p>
+
+<pre caption="Restarting the xend daemon">
+~# <i>/etc/init.d/xend restart</i>
+</pre>
+
+</body>
+</section>
 </chapter>
 </guide>



-- 
[EMAIL PROTECTED] mailing list

Reply via email to