Ignore:
Timestamp:
08/01/2015 04:26:22 AM (9 years ago)
Author:
Douglas R. Reno <renodr@…>
Branches:
systemd-13485
Children:
ad6910d
Parents:
4a83293
Message:

Import back into SVN from Github

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

File:
1 edited

Legend:

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

    r4a83293 rac38e9dc  
    77  <!ENTITY qemu-download-http "http://wiki.qemu.org/download/qemu-&qemu-version;.tar.bz2">
    88  <!ENTITY qemu-download-ftp  " ">
    9   <!ENTITY qemu-md5sum        "0ff197c4ed4b695620bc4734e77c888f">
    10   <!ENTITY qemu-size          "22 MB">
    11   <!ENTITY qemu-buildsize     "286 MB">
    12   <!ENTITY qemu-time          "1.6 SBU">
     9  <!ENTITY qemu-md5sum        "2fab3ea4460de9b57192e5b8b311f221">
     10  <!ENTITY qemu-size          "24 MB">
     11  <!ENTITY qemu-buildsize     "291 MB">
     12  <!ENTITY qemu-time          "1.4 SBU">
    1313]>
    1414
     
    3434    AMD-V).</para>
    3535
    36     &lfs76_checked;
     36    &lfs77_checked;
    3737
    3838    <bridgehead renderas="sect3">Package Information</bridgehead>
     
    7575    <para role="optional">
    7676      <xref linkend="alsa"/>,
     77      <xref linkend="bluez"/>,
    7778      <xref linkend="check"/>,
    7879      <xref linkend="curl"/>,
     80      <xref linkend="cyrus-sasl"/>,
     81      <xref linkend="gtk2"/>,
     82      <xref linkend="gtk3"/>,
     83      <xref linkend="libusb"/>,
     84      <xref linkend="lzo"/>,
     85      <xref linkend="nss"/> (for libcacard.so),
    7986      <xref linkend="mesalib"/>, and
    80       <xref linkend="cyrus-sasl"/>
     87      <xref linkend="vte"/>
    8188    </para>
    8289
     
    111118    <title>Kernel Configuration</title>
    112119
    113     <para>Enable the following options in the kernel configuration
    114     and recompile the kernel if necessary:</para>
    115 
    116 <screen><literal>Virtualization:  ---&gt;
    117   Kernel-based Virtual Machine (KVM) support: Y or M
    118     KVM for Intel processors support: Y or M
    119     KVM for AMD processors support: Y or M</literal></screen>
     120    <para>Enable the following options in the kernel configuration and
     121    recompile the kernel if necessary:</para>
     122
     123<screen><literal>[*] Virtualization:  ---&gt;                            [CONFIG_VIRTUALIZATION]
     124  &lt;*/M&gt;   Kernel-based Virtual Machine (KVM) support [CONFIG_KVM]
     125  &lt;*/M&gt;     KVM for Intel processors support         [CONFIG_KVM_INTEL]
     126  &lt;*/M&gt;     KVM for AMD processors support           [CONFIG_KVM_AMD]</literal></screen>
    120127
    121128    <indexterm zone="qemu qemu-kernel">
     
    126133    your system processor is required.</para>
    127134
    128     <para>For networking, check that <xref linkend="bridgeutils"/> is installed
     135    <para>For networking, check that <xref linkend='bridgeutils'/> is installed
    129136    and the following options in the kernel configuration are enabled:</para>
    130137
    131 <screen><literal><!--Networking support  - - -&gt;
    132   Networking options  - - -&gt;
    133     802.1d Ethernet Bridging: Y or M
    134 -->Device Drivers  ---&gt;
    135   Network device support  ---&gt;
    136     Universal TUN/TAP device driver support: Y or M</literal></screen>
     138<screen><literal>[*] Networking support  ---&gt;                         [CONFIG_NET]
     139  Networking options  ---&gt;
     140    &lt;*/M&gt; 802.1d Ethernet Bridging                   [CONFIG_BRIDGE]
     141Device Drivers  ---&gt;
     142  [*] Network device support  ---&gt;                   [CONFIG_NETDEVICES]
     143    &lt;*/M&gt;    Universal TUN/TAP device driver support [CONFIG_TUN]</literal></screen>
    137144
    138145  </sect2>
     
    144151    commands:</para>
    145152
    146 <screen><userinput>sed -e '/#include &lt;sys\/capability.h&gt;/ d' \
    147     -e '/#include "virtio-9p-marshal.h"/ i#include &lt;sys\/capability.h&gt;' \
    148     -i fsdev/virtfs-proxy-helper.c &amp;&amp;
    149 
    150 ./configure --prefix=/usr \
     153<screen><userinput>./configure --prefix=/usr \
    151154            --sysconfdir=/etc \
    152155            --docdir=/usr/share/doc/qemu-&qemu-version; \
     
    163166    <para>
    164167      You will need a dedicated group that will contain users (other than root)
    165       allowed to access the KVM device. Add the group by running the following
     168      allowed to access the KVM device.  Create this group by running the following
    166169      command as the <systemitem class="username">root</systemitem> user:
    167170    </para>
     
    199202  <sect2 role="commands">
    200203    <title>Command Explanations</title>
    201 
    202     <para><command>sed -e '/#include ... fsdev/virtfs-proxy-helper.c</command>:
    203     Fixes <application>qemu-&qemu-version;</application> to build with
    204     <application>libcap-&libcap-version;</application>.</para>
    205204
    206205    <para><parameter>--target-list=x86_64-softmmu</parameter>: This switch
     
    234233
    235234    <para>To install an operating system, download an iso of your choice or use
    236     a pre-intalled cdrom device.  For the purposes of this example, use
     235    a pre-installed cdrom device.  For the purposes of this example, use
    237236    Fedora 16 that is downloaded as
    238237    <filename>Fedora-16-x86_64-Live-LXDE.iso</filename> in the current
     
    287286
    288287      <listitem>
     288        <para>Allow the network connection when running as a part of the
     289        kvm group:</para>
     290
     291<screen role="root"><userinput>chgrp kvm  /usr/libexec/qemu-bridge-helper &amp;&amp;
     292chmod 4750 /usr/libexec/qemu-bridge-helper</userinput></screen>
     293
     294      </listitem>
     295
     296      <listitem>
     297        <para>Set up a required configuration file:</para>
     298
     299<screen role="root"><userinput>echo 'allow br0' &gt; /etc/qemu/bridge.conf</userinput></screen>
     300
     301      </listitem>
     302
     303<!--
     304      <listitem>
    289305        <para>Create scripts for qemu to attach the client network
    290306        device, usually visible as tap0, to the host bridge.</para>
     
    329345    </itemizedlist>
    330346
    331       <!-- <note><para>The backslashes in the above script are for convenience
     347      <note><para>The backslashes in the above script are for convenience
    332348      for cut/paste operations.  The backslashes should <emphasis>not</emphasis>
    333       appear in the final scripts.</para></note> -->
    334 
    335     <itemizedlist spacing="compact">
    336       <listitem>
    337         <para>Start qemu with "-net nic -net tap" options.  </para>
     349      appear in the final scripts.</para></note>
     350
     351    <itemizedlist spacing="compact"> -->
     352      <listitem>
     353        <!--<para>Start qemu with "-net nic -net tap" options.  </para>-->
     354        <para>Start qemu with "-net nic -net bridge" options.  </para>
    338355      </listitem>
    339356
    340357      <listitem>
    341358        <para>If a connection, such as ssh, from the local network to the
    342         client VM is desired, the client should probably be configured
     359        client VM is desired, the client should be configured
    343360        with a static IP address.</para>
    344361      </listitem>
Note: See TracChangeset for help on using the changeset viewer.