Ignore:
Timestamp:
03/17/2013 01:59:41 AM (11 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
00bf2c9
Parents:
1f44775e
Message:

Update to qemu-1.4.0

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@11112 af4574ff-66df-0310-9fd7-8a98e5e911e0

Location:
postlfs/virtualization
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • postlfs/virtualization/qemu.xml

    r1f44775e r2f6053d  
    55  %general-entities;
    66
    7   <!ENTITY qemu-kvm-download-http " ">
    8   <!ENTITY qemu-kvm-download-ftp  "&sourceforge-repo2;/projects/kvm/files/qemu-kvm/&qemu-kvm-version;/qemu-kvm-&qemu-kvm-version;.tar.gz">
    9   <!ENTITY qemu-kvm-md5sum        "d7b18b673c48abfee65a9c0245df0415">
    10   <!ENTITY qemu-kvm-size          "6.5 MB">
    11   <!ENTITY qemu-kvm-buildsize     "151 MB">
    12   <!ENTITY qemu-kvm-time          "1.6 SBU">
     7  <!ENTITY qemu-download-http "http://wiki.qemu.org/download/qemu-&qemu-version;.tar.bz2">
     8  <!ENTITY qemu-download-ftp  " ">
     9  <!ENTITY qemu-md5sum        "78f13b774814b6b7ebcaf4f9b9204318">
     10  <!ENTITY qemu-size          "10 MB">
     11  <!ENTITY qemu-buildsize     "188 MB">
     12  <!ENTITY qemu-time          "1.5 SBU">
    1313]>
    1414
    15 <sect1 id="qemu-kvm" xreflabel="qemu-kvm-&qemu-kvm-version;">
    16   <?dbhtml filename="qemu-kvm.html"?>
     15<sect1 id="qemu" xreflabel="qemu-&qemu-version;">
     16  <?dbhtml filename="qemu.html"?>
    1717
    1818  <sect1info>
     
    2121  </sect1info>
    2222
    23   <title>qemu-kvm-&qemu-kvm-version;</title>
    24 
    25   <indexterm zone="qemu-kvm">
    26     <primary sortas="a-qemu-kvm">qemu-kvm</primary>
     23  <title>qemu-&qemu-version;</title>
     24
     25  <indexterm zone="qemu">
     26    <primary sortas="a-qemu">qemu</primary>
    2727  </indexterm>
    2828
    2929  <sect2 role="package">
    30     <title>Introduction to qemu-kvm</title>
    31 
    32     <para><application>qemu-kvm</application> is a full virtualization solution
     30    <title>Introduction to qemu</title>
     31
     32    <para><application>qemu</application> is a full virtualization solution
    3333    for Linux on x86 hardware containing virtualization extensions (Intel VT or
    3434    AMD-V).</para>
     
    3939    <itemizedlist spacing="compact">
    4040      <listitem>
    41         <para>Download (HTTP): <ulink url="&qemu-kvm-download-http;"/></para>
    42       </listitem>
    43       <listitem>
    44         <para>Download (FTP): <ulink url="&qemu-kvm-download-ftp;"/></para>
    45       </listitem>
    46       <listitem>
    47         <para>Download MD5 sum: &qemu-kvm-md5sum;</para>
    48       </listitem>
    49       <listitem>
    50         <para>Download size: &qemu-kvm-size;</para>
    51       </listitem>
    52       <listitem>
    53         <para>Estimated disk space required: &qemu-kvm-buildsize;</para>
    54       </listitem>
    55       <listitem>
    56         <para>Estimated build time: &qemu-kvm-time;</para>
     41        <para>Download (HTTP): <ulink url="&qemu-download-http;"/></para>
     42      </listitem>
     43      <listitem>
     44        <para>Download (FTP): <ulink url="&qemu-download-ftp;"/></para>
     45      </listitem>
     46      <listitem>
     47        <para>Download MD5 sum: &qemu-md5sum;</para>
     48      </listitem>
     49      <listitem>
     50        <para>Download size: &qemu-size;</para>
     51      </listitem>
     52      <listitem>
     53        <para>Estimated disk space required: &qemu-buildsize;</para>
     54      </listitem>
     55      <listitem>
     56        <para>Estimated build time: &qemu-time;</para>
    5757      </listitem>
    5858    </itemizedlist>
     
    6262      <listitem>
    6363        <para>Required Patch: <ulink
    64           url="&patch-root;/qemu-kvm-&qemu-kvm-version;-fixes-1.patch"/></para>
     64          url="&patch-root;/qemu-&qemu-version;-fixes-1.patch"/></para>
    6565      </listitem>
    6666    </itemizedlist>
    6767
    68     <bridgehead renderas="sect3">Qemu-kvm Dependencies</bridgehead>
     68    <bridgehead renderas="sect3">Qemu Dependencies</bridgehead>
    6969
    7070    <bridgehead renderas="sect4">Required</bridgehead>
     
    9090
    9191    <para condition="html" role="usernotes">User Notes:
    92     <ulink url="&blfs-wiki;/qemu-kvm"/></para>
    93 
    94   </sect2>
    95 
    96   <sect2 id='qemu-kvm-prereq'>
     92    <ulink url="&blfs-wiki;/qemu"/></para>
     93
     94  </sect2>
     95
     96  <sect2 id='qemu-prereq'>
    9797    <title>KVM Prerequsites</title>
    9898
    99     <para>Before building <application>qemu-kvm</application>, check to see if
     99    <para>Before building <application>qemu</application>, check to see if
    100100    your processor supports Virtualization Technology (VT):</para>
    101101
     
    109109  </sect2>
    110110
    111   <sect2 role="kernel" id='qemu-kvm-kernel'>
     111  <sect2 role="kernel" id='qemu-kernel'>
    112112    <title>Kernel Configuration</title>
    113113
     
    120120  KVM for AMD processors support:             M or Y</literal></screen>
    121121
    122     <indexterm zone="qemu-kvm qemu-kvm-kernel">
    123       <primary sortas="d-qemu-kvm">kvm-qemu</primary>
     122    <indexterm zone="qemu qemu-kernel">
     123      <primary sortas="d-qemu">qemu</primary>
    124124    </indexterm>
    125125
     
    134134
    135135  <sect2 role="installation">
    136     <title>Installation of qemu-kvm</title>
     136    <title>Installation of qemu</title>
    137137
    138138    <para>If <application>xorg</application> is not installed in
     
    142142<screen><userinput>export LIBRARY_PATH=/opt/xorg/lib</userinput></screen>
    143143
    144     <para>Install <application>qemu-kvm</application> by running the following
     144    <para>Install <application>qemu</application> by running the following
    145145    commands:</para>
    146146
    147 <screen><userinput>patch -Np1 -i ../qemu-kvm-&qemu-kvm-version;-fixes-1.patch
    148 ./configure --prefix=/usr &amp;&amp;
    149 LIBS_QGA=-lrt LIBS=-lrt make</userinput></screen>
    150 
    151     <para>Testing the results is not automated. To run individual tests, change
    152     to the <filename class='directory'>tests/</filename> directory, and examine
    153     the <filename>Makefile</filename>.  Each test may be run individually with
    154     <command>make run-&lt;test name&gt;</command>.</para>
     147<screen><userinput>patch -Np1 -i ../qemu-&qemu-version;-fixes-1.patch
     148./configure --prefix=/usr                \
     149            --sysconfdir=/etc            \
     150            --target-list=x86_64-softmmu &amp;&amp;
     151make</userinput></screen>
     152
     153    <para>To run the built in tests, run <command>make V=1 check</command>.</para>
    155154
    156155    <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
    157156
    158157<screen role="root"><userinput>make install</userinput></screen>
    159 
    160     <note><para>The main program <command>qemu-system-x86_64</command> doesn't
     158   
     159    <note><!--<para>The main program <command>qemu-system-x86_64</command> doesn't
    161160    make a distinction between i386 and x86_64 so even on an i386 system you
    162161    should use <emphasis>qemu-system-x86_64</emphasis></para>
     162    -->
    163163
    164164    <para>For convenience you may want to create a symbolic link to run
     
    173173    <title>Command Explanations</title>
    174174
    175     <para><parameter>LIBS_QGA=-lrt LIBS=-lrt make</parameter>: Ensure that
    176     the link process searches the correct libraries for needed functions.</para>
     175    <para><parameter>--target-list=x86_64-softmmu</parameter>: This option
     176    limits the build target to the x86_64 architecture.  For other
     177    hardware emulation see the --target-list list in <command>configure</command>'s
     178    help output.  Omitting this option will build all architectures.</para>
    177179
    178180  </sect2>
     
    181183
    182184  <sect2 role="configuration">
    183     <title>Configuring qemu-kvm</title>
     185    <title>Configuring qemu</title>
    184186
    185187    <para>To generate an image, run:</para>
     
    193195    <note><para>The following instructions assume you have created the optional
    194196    symbolic link, <userinput>qemu</userinput>.  Additionally, you must run
    195     <userinput>qemu</userinput> as the <systemitem
    196     class="username">root</systemitem> user command from an X-Windows based
    197     terminal.</para></note>
     197    <userinput>qemu</userinput> from an X-Windows based terminal.</para></note>
    198198
    199199    <para>To install an operating system, download an iso of your choice or use
     
    203203    directory.  Run the following:</para>
    204204
    205 <screen><userinput>qemu -hda vdisk.img                        \
     205<screen><userinput>qemu -enable-kvm -hda vdisk.img            \
    206206     -cdrom Fedora-16-x86_64-Live-LXDE.iso \
    207207     -boot d                               \
     
    209209
    210210    <para>Follow the normal installation procedures for the chosen
    211     distribution.  The -boot option specifies the boot order of drives as a string
    212     of drive letters. Valid drive letters are: a, b (floppy 1 and 2), c (first
    213     hard disk), d (first CD-ROM).  The -m option is the amount of memory to use
    214     for the virtual machine.  If you have sufficient memory (2G or more), 1G is
    215     a reasonable value.  For computers with 512MB of RAM it's safe to use -m
    216     192, or even -m 128 (the default).</para>
     211    distribution.  The -boot option specifies the boot order of drives as a
     212    string of drive letters. Valid drive letters are: a, b (floppy 1 and 2), c
     213    (first hard disk), d (first CD-ROM).  The -m option is the amount of memory
     214    to use for the virtual machine.  If you have sufficient memory (2G or
     215    more), 1G is a reasonable value.  For computers with 512MB of RAM it's safe
     216    to use -m 192, or even -m 128 (the default).  The -enable-kvm option allows
     217    for hardware acceleeration.  Without this switch, the emulation is
     218    relatively slow.</para>
    217219
    218220    <para>To run the newly installed operating system, run:</para>
    219221
    220 <screen><userinput>qemu vdisk.img -m 384</userinput></screen>
     222<screen><userinput>qemu -enable-kvm vdisk.img -m 384</userinput></screen>
    221223
    222224    <para>To add networking to the instance add "-net nic -net user" to the
     
    328330          events that terminate and originate respectively within the guest
    329331          using an agent built as part of QEMU.</para>
    330           <indexterm zone="qemu-kvm qemu-ga">
     332          <indexterm zone="qemu qemu-ga">
    331333            <primary sortas="b-qemu-ga">qemu-ga</primary>
    332334          </indexterm>
     
    338340        <listitem>
    339341          <para>provides commands to manage QEMU disk images.</para>
    340           <indexterm zone="qemu-kvm qemu-img">
     342          <indexterm zone="qemu qemu-img">
    341343            <primary sortas="b-qemu-img">qemu-img</primary>
    342344          </indexterm>
     
    349351          <para>is a diagnostic and manipulation program for (virtual) memory
    350352          media.  It is still at an early stage of development.</para>
    351           <indexterm zone="qemu-kvm qemu-io">
     353          <indexterm zone="qemu qemu-io">
    352354            <primary sortas="b-qemu-io">qemu-io</primary>
    353355          </indexterm>
     
    360362          <para>exports Qemu disk images using the QEMU Disk Network Block
    361363          Device (NBD) protocol.</para>
    362           <indexterm zone="qemu-kvm qemu-nbd">
     364          <indexterm zone="qemu qemu-nbd">
    363365            <primary sortas="b-qemu-nbd">qemu-nbd</primary>
    364366          </indexterm>
     
    370372        <listitem>
    371373          <para>is the QEMU PC System emulator.</para>
    372           <indexterm zone="qemu-kvm qemu-system">
     374          <indexterm zone="qemu qemu-system">
    373375            <primary sortas="b-qemu-system">qemu-system-x86_64</primary>
    374376          </indexterm>
  • postlfs/virtualization/virtualization.xml

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