Ignore:
Timestamp:
10/26/2014 01:39:58 PM (10 years ago)
Author:
Krejzi <krejzi@…>
Branches:
krejzi/svn
Children:
b71b5c8
Parents:
8ddd9c79
Message:

Convert networking/connect, bridge-utils and qemu to systemd.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd-ng@14737 af4574ff-66df-0310-9fd7-8a98e5e911e0

Location:
postlfs/virtualization
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • postlfs/virtualization/qemu-systemd.xml

    r8ddd9c79 r032be17  
    126126    your system processor is required.</para>
    127127
    128     <para>For networking, check that <xref linkend='bridgeutils'/> is installed
     128    <para>For networking, check that <xref linkend="bridgeutils"/> is installed
    129129    and the following options in the kernel configuration are enabled:</para>
    130130
    131 <screen><literal>Networking support  ---&gt;
    132   Networking options  ---&gt;
    133     802.1d Ethernet Bridging: Y or M
    134 Device Drivers  ---&gt;
     131<screen><literal>Device Drivers  ---&gt;
    135132  Network device support  ---&gt;
    136133    Universal TUN/TAP device driver support: Y or M</literal></screen>
     
    261258    <itemizedlist spacing="compact">
    262259      <listitem>
    263         <para>Set up bridging with <xref linkend='bridgeutils'/>.</para>
     260        <para>Set up bridging using <xref linkend="network-bridge"/>.</para>
    264261      </listitem>
    265262
     
    270267
    271268        <para>To make this permanent, add the command to
    272         <filename>/etc/syssysctl.conf:</filename></para>
    273 
    274 <screen role="root"><userinput>cat &gt;&gt; /etc/sysctl.conf &lt;&lt; EOF
     269        <filename>/etc/sysctl.d/60-net-forward.conf:</filename></para>
     270
     271<screen role="root"><userinput>cat &gt;&gt; /etc/sysctl.d/60-net-forward.conf &lt;&lt; "EOF"
    275272net.ipv4.ip_forward=1
    276273EOF</userinput></screen>
     
    282279        device, usually visible as tap0, to the host bridge.</para>
    283280
    284 <screen role="root"><userinput>cat &gt; /etc/qemu-ifup &lt;&lt; EOF
     281<screen role="root"><userinput>cat &gt; /etc/qemu-ifup &lt;&lt; "EOF"
    285282#!/bin/bash
    286283
    287284switch=br0
    288285
    289 if [ -n "\$1" ]; then
     286if [ -n "$1" ]; then
    290287  # Add new tap0 interface to bridge
    291   /sbin/ip link set \$1 up
    292   sleep 0.5s
    293   /usr/sbin/brctl addif \$switch \$1
     288  /usr/sbin/brctl addif $switch $1
    294289else
    295290  echo "Error: no interface specified"
     
    302297chmod +x /etc/qemu-ifup</userinput></screen>
    303298
    304 <screen role="root"><userinput>cat &gt; /etc/qemu-ifdown &lt;&lt; EOF
     299<screen role="root"><userinput>cat &gt; /etc/qemu-ifdown &lt;&lt; "EOF"
    305300#!/bin/bash
    306301
    307302switch=br0
    308303
    309 if [ -n "\$1" ]; then
     304if [ -n "$1" ]; then
    310305  # Remove tap0 interface from bridge
    311   /usr/sbin/brctl delif \$switch \$1
     306  /usr/sbin/brctl delif $switch $1
    312307else
    313308  echo "Error: no interface specified"
     
    323318    </itemizedlist>
    324319
    325       <note><para>The backslashes in the above script are for convenience
     320      <!-- <note><para>The backslashes in the above script are for convenience
    326321      for cut/paste operations.  The backslashes should <emphasis>not</emphasis>
    327       appear in the final scripts.</para></note>
     322      appear in the final scripts.</para></note> -->
    328323
    329324    <itemizedlist spacing="compact">
  • postlfs/virtualization/virtualization.xml

    r8ddd9c79 r032be17  
    2222  processor.</para>
    2323
    24   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="qemu.xml"/>
     24  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="qemu-systemd.xml"/>
    2525
    2626</chapter>
Note: See TracChangeset for help on using the changeset viewer.