[blfs-book] r11112 - in trunk/BOOK: . introduction/welcome postlfs/virtualization

bdubbs at higgs.linuxfromscratch.org bdubbs at higgs.linuxfromscratch.org
Sat Mar 16 18:59:41 PDT 2013


Author: bdubbs
Date: Sat Mar 16 18:59:41 2013
New Revision: 11112

Log:
Update to qemu-1.4.0

Added:
   trunk/BOOK/postlfs/virtualization/qemu.xml
      - copied, changed from r11111, trunk/BOOK/postlfs/virtualization/qemu-kvm.xml
Deleted:
   trunk/BOOK/postlfs/virtualization/qemu-kvm.xml
Modified:
   trunk/BOOK/general.ent
   trunk/BOOK/introduction/welcome/changelog.xml
   trunk/BOOK/postlfs/virtualization/virtualization.xml

Modified: trunk/BOOK/general.ent
==============================================================================
--- trunk/BOOK/general.ent	Sat Mar 16 16:53:47 2013	(r11111)
+++ trunk/BOOK/general.ent	Sat Mar 16 18:59:41 2013	(r11112)
@@ -197,7 +197,7 @@
 <!ENTITY zsh-version                  "5.0.0">
 
 <!-- Chapter 8 Virtualization -->
-<!ENTITY qemu-kvm-version             "1.2.0">
+<!ENTITY qemu-version                 "1.4.0">
 
 <!-- Part III -->
 <!-- Chapter 9 -->

Modified: trunk/BOOK/introduction/welcome/changelog.xml
==============================================================================
--- trunk/BOOK/introduction/welcome/changelog.xml	Sat Mar 16 16:53:47 2013	(r11111)
+++ trunk/BOOK/introduction/welcome/changelog.xml	Sat Mar 16 18:59:41 2013	(r11112)
@@ -47,6 +47,10 @@
       <para>March 16th, 2013</para>
       <itemizedlist>
         <listitem>
+          <para>[bdubbs] - Changed from qemu-kvm to qemu-1.4.0 which
+          now includes kvm options.</para>
+        </listitem>
+        <listitem>
           <para>[krejzi] - Added Glamor EGL 0.5.0.</para>
         </listitem>
         <listitem>

Copied and modified: trunk/BOOK/postlfs/virtualization/qemu.xml (from r11111, trunk/BOOK/postlfs/virtualization/qemu-kvm.xml)
==============================================================================
--- trunk/BOOK/postlfs/virtualization/qemu-kvm.xml	Sat Mar 16 16:53:47 2013	(r11111, copy source)
+++ trunk/BOOK/postlfs/virtualization/qemu.xml	Sat Mar 16 18:59:41 2013	(r11112)
@@ -4,32 +4,32 @@
   <!ENTITY % general-entities SYSTEM "../../general.ent">
   %general-entities;
 
-  <!ENTITY qemu-kvm-download-http " ">
-  <!ENTITY qemu-kvm-download-ftp  "&sourceforge-repo2;/projects/kvm/files/qemu-kvm/&qemu-kvm-version;/qemu-kvm-&qemu-kvm-version;.tar.gz">
-  <!ENTITY qemu-kvm-md5sum        "d7b18b673c48abfee65a9c0245df0415">
-  <!ENTITY qemu-kvm-size          "6.5 MB">
-  <!ENTITY qemu-kvm-buildsize     "151 MB">
-  <!ENTITY qemu-kvm-time          "1.6 SBU">
+  <!ENTITY qemu-download-http "http://wiki.qemu.org/download/qemu-&qemu-version;.tar.bz2">
+  <!ENTITY qemu-download-ftp  " ">
+  <!ENTITY qemu-md5sum        "78f13b774814b6b7ebcaf4f9b9204318">
+  <!ENTITY qemu-size          "10 MB">
+  <!ENTITY qemu-buildsize     "188 MB">
+  <!ENTITY qemu-time          "1.5 SBU">
 ]>
 
-<sect1 id="qemu-kvm" xreflabel="qemu-kvm-&qemu-kvm-version;">
-  <?dbhtml filename="qemu-kvm.html"?>
+<sect1 id="qemu" xreflabel="qemu-&qemu-version;">
+  <?dbhtml filename="qemu.html"?>
 
   <sect1info>
     <othername>$LastChangedBy$</othername>
     <date>$Date$</date>
   </sect1info>
 
-  <title>qemu-kvm-&qemu-kvm-version;</title>
+  <title>qemu-&qemu-version;</title>
 
-  <indexterm zone="qemu-kvm">
-    <primary sortas="a-qemu-kvm">qemu-kvm</primary>
+  <indexterm zone="qemu">
+    <primary sortas="a-qemu">qemu</primary>
   </indexterm>
 
   <sect2 role="package">
-    <title>Introduction to qemu-kvm</title>
+    <title>Introduction to qemu</title>
 
-    <para><application>qemu-kvm</application> is a full virtualization solution
+    <para><application>qemu</application> is a full virtualization solution
     for Linux on x86 hardware containing virtualization extensions (Intel VT or
     AMD-V).</para>
 
@@ -38,22 +38,22 @@
     <bridgehead renderas="sect3">Package Information</bridgehead>
     <itemizedlist spacing="compact">
       <listitem>
-        <para>Download (HTTP): <ulink url="&qemu-kvm-download-http;"/></para>
+        <para>Download (HTTP): <ulink url="&qemu-download-http;"/></para>
       </listitem>
       <listitem>
-        <para>Download (FTP): <ulink url="&qemu-kvm-download-ftp;"/></para>
+        <para>Download (FTP): <ulink url="&qemu-download-ftp;"/></para>
       </listitem>
       <listitem>
-        <para>Download MD5 sum: &qemu-kvm-md5sum;</para>
+        <para>Download MD5 sum: &qemu-md5sum;</para>
       </listitem>
       <listitem>
-        <para>Download size: &qemu-kvm-size;</para>
+        <para>Download size: &qemu-size;</para>
       </listitem>
       <listitem>
-        <para>Estimated disk space required: &qemu-kvm-buildsize;</para>
+        <para>Estimated disk space required: &qemu-buildsize;</para>
       </listitem>
       <listitem>
-        <para>Estimated build time: &qemu-kvm-time;</para>
+        <para>Estimated build time: &qemu-time;</para>
       </listitem>
     </itemizedlist>
 
@@ -61,11 +61,11 @@
     <itemizedlist spacing='compact'>
       <listitem>
         <para>Required Patch: <ulink
-          url="&patch-root;/qemu-kvm-&qemu-kvm-version;-fixes-1.patch"/></para>
+          url="&patch-root;/qemu-&qemu-version;-fixes-1.patch"/></para>
       </listitem>
     </itemizedlist>
 
-    <bridgehead renderas="sect3">Qemu-kvm Dependencies</bridgehead>
+    <bridgehead renderas="sect3">Qemu Dependencies</bridgehead>
 
     <bridgehead renderas="sect4">Required</bridgehead>
     <para role="required">
@@ -89,14 +89,14 @@
     </para>
 
     <para condition="html" role="usernotes">User Notes:
-    <ulink url="&blfs-wiki;/qemu-kvm"/></para>
+    <ulink url="&blfs-wiki;/qemu"/></para>
 
   </sect2>
 
-  <sect2 id='qemu-kvm-prereq'>
+  <sect2 id='qemu-prereq'>
     <title>KVM Prerequsites</title>
 
-    <para>Before building <application>qemu-kvm</application>, check to see if
+    <para>Before building <application>qemu</application>, check to see if
     your processor supports Virtualization Technology (VT):</para>
 
     <screen><userinput>egrep '^flags.*(vmx|svm)' /proc/cpuinfo</userinput></screen>
@@ -108,7 +108,7 @@
 
   </sect2>
 
-  <sect2 role="kernel" id='qemu-kvm-kernel'>
+  <sect2 role="kernel" id='qemu-kernel'>
     <title>Kernel Configuration</title>
 
     <para>Enable the following options in the kernel configuration
@@ -119,8 +119,8 @@
   KVM for Intel processors support:           M or Y
   KVM for AMD processors support:             M or Y</literal></screen>
 
-    <indexterm zone="qemu-kvm qemu-kvm-kernel">
-      <primary sortas="d-qemu-kvm">kvm-qemu</primary>
+    <indexterm zone="qemu qemu-kernel">
+      <primary sortas="d-qemu">qemu</primary>
     </indexterm>
 
     <para>The Intel or AMD settings are not both required, but the one matching
@@ -133,7 +133,7 @@
   </sect2>
 
   <sect2 role="installation">
-    <title>Installation of qemu-kvm</title>
+    <title>Installation of qemu</title>
 
     <para>If <application>xorg</application> is not installed in
     <filename class='directory'>/usr</filename>, then the linker needs to
@@ -141,25 +141,25 @@
 
 <screen><userinput>export LIBRARY_PATH=/opt/xorg/lib</userinput></screen>
 
-    <para>Install <application>qemu-kvm</application> by running the following
+    <para>Install <application>qemu</application> by running the following
     commands:</para>
 
-<screen><userinput>patch -Np1 -i ../qemu-kvm-&qemu-kvm-version;-fixes-1.patch
-./configure --prefix=/usr &&
-LIBS_QGA=-lrt LIBS=-lrt make</userinput></screen>
-
-    <para>Testing the results is not automated. To run individual tests, change
-    to the <filename class='directory'>tests/</filename> directory, and examine
-    the <filename>Makefile</filename>.  Each test may be run individually with
-    <command>make run-<test name></command>.</para>
+<screen><userinput>patch -Np1 -i ../qemu-&qemu-version;-fixes-1.patch
+./configure --prefix=/usr                \
+            --sysconfdir=/etc            \
+            --target-list=x86_64-softmmu &&
+make</userinput></screen>
+
+    <para>To run the built in tests, run <command>make V=1 check</command>.</para>
 
     <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
 
 <screen role="root"><userinput>make install</userinput></screen>
-
-    <note><para>The main program <command>qemu-system-x86_64</command> doesn't
+    
+    <note><!--<para>The main program <command>qemu-system-x86_64</command> doesn't
     make a distinction between i386 and x86_64 so even on an i386 system you
     should use <emphasis>qemu-system-x86_64</emphasis></para>
+    -->
 
     <para>For convenience you may want to create a symbolic link to run
     <command>qemu-system-x86_64</command>:</para>
@@ -172,15 +172,17 @@
   <sect2 role="commands">
     <title>Command Explanations</title>
 
-    <para><parameter>LIBS_QGA=-lrt LIBS=-lrt make</parameter>: Ensure that
-    the link process searches the correct libraries for needed functions.</para>
+    <para><parameter>--target-list=x86_64-softmmu</parameter>: This option
+    limits the build target to the x86_64 architecture.  For other 
+    hardware emulation see the --target-list list in <command>configure</command>'s
+    help output.  Omitting this option will build all architectures.</para>
 
   </sect2>
 
 
 
   <sect2 role="configuration">
-    <title>Configuring qemu-kvm</title>
+    <title>Configuring qemu</title>
 
     <para>To generate an image, run:</para>
 
@@ -192,9 +194,7 @@
 
     <note><para>The following instructions assume you have created the optional
     symbolic link, <userinput>qemu</userinput>.  Additionally, you must run
-    <userinput>qemu</userinput> as the <systemitem
-    class="username">root</systemitem> user command from an X-Windows based
-    terminal.</para></note>
+    <userinput>qemu</userinput> from an X-Windows based terminal.</para></note>
 
     <para>To install an operating system, download an iso of your choice or use
     a pre-intalled cdrom device.  For the purposes of this example, use
@@ -202,22 +202,24 @@
     <filename>Fedora-16-x86_64-Live-LXDE.iso</filename> in the current
     directory.  Run the following:</para>
 
-<screen><userinput>qemu -hda vdisk.img                        \
+<screen><userinput>qemu -enable-kvm -hda vdisk.img            \
      -cdrom Fedora-16-x86_64-Live-LXDE.iso \
      -boot d                               \
      -m 384</userinput></screen>
 
     <para>Follow the normal installation procedures for the chosen
-    distribution.  The -boot option specifies the boot order of drives as a string
-    of drive letters. Valid drive letters are: a, b (floppy 1 and 2), c (first
-    hard disk), d (first CD-ROM).  The -m option is the amount of memory to use
-    for the virtual machine.  If you have sufficient memory (2G or more), 1G is
-    a reasonable value.  For computers with 512MB of RAM it's safe to use -m
-    192, or even -m 128 (the default).</para>
+    distribution.  The -boot option specifies the boot order of drives as a
+    string of drive letters. Valid drive letters are: a, b (floppy 1 and 2), c
+    (first hard disk), d (first CD-ROM).  The -m option is the amount of memory
+    to use for the virtual machine.  If you have sufficient memory (2G or
+    more), 1G is a reasonable value.  For computers with 512MB of RAM it's safe
+    to use -m 192, or even -m 128 (the default).  The -enable-kvm option allows
+    for hardware acceleeration.  Without this switch, the emulation is
+    relatively slow.</para>
 
     <para>To run the newly installed operating system, run:</para>
 
-<screen><userinput>qemu vdisk.img -m 384</userinput></screen>
+<screen><userinput>qemu -enable-kvm vdisk.img -m 384</userinput></screen>
 
     <para>To add networking to the instance add "-net nic -net user" to the
     command above.  qemu provides a DHCP server for the VM and, depending on
@@ -327,7 +329,7 @@
           <para>implements support for QMP (QEMU Monitor Protocol) commands and
           events that terminate and originate respectively within the guest
           using an agent built as part of QEMU.</para>
-          <indexterm zone="qemu-kvm qemu-ga">
+          <indexterm zone="qemu qemu-ga">
             <primary sortas="b-qemu-ga">qemu-ga</primary>
           </indexterm>
         </listitem>
@@ -337,7 +339,7 @@
         <term><command>qemu-img</command></term>
         <listitem>
           <para>provides commands to manage QEMU disk images.</para>
-          <indexterm zone="qemu-kvm qemu-img">
+          <indexterm zone="qemu qemu-img">
             <primary sortas="b-qemu-img">qemu-img</primary>
           </indexterm>
         </listitem>
@@ -348,7 +350,7 @@
         <listitem>
           <para>is a diagnostic and manipulation program for (virtual) memory
           media.  It is still at an early stage of development.</para>
-          <indexterm zone="qemu-kvm qemu-io">
+          <indexterm zone="qemu qemu-io">
             <primary sortas="b-qemu-io">qemu-io</primary>
           </indexterm>
         </listitem>
@@ -359,7 +361,7 @@
         <listitem>
           <para>exports Qemu disk images using the QEMU Disk Network Block
           Device (NBD) protocol.</para>
-          <indexterm zone="qemu-kvm qemu-nbd">
+          <indexterm zone="qemu qemu-nbd">
             <primary sortas="b-qemu-nbd">qemu-nbd</primary>
           </indexterm>
         </listitem>
@@ -369,7 +371,7 @@
         <term><command>qemu-system-x86_64</command></term>
         <listitem>
           <para>is the QEMU PC System emulator.</para>
-          <indexterm zone="qemu-kvm qemu-system">
+          <indexterm zone="qemu qemu-system">
             <primary sortas="b-qemu-system">qemu-system-x86_64</primary>
           </indexterm>
         </listitem>

Modified: trunk/BOOK/postlfs/virtualization/virtualization.xml
==============================================================================
--- trunk/BOOK/postlfs/virtualization/virtualization.xml	Sat Mar 16 16:53:47 2013	(r11111)
+++ trunk/BOOK/postlfs/virtualization/virtualization.xml	Sat Mar 16 18:59:41 2013	(r11112)
@@ -21,6 +21,6 @@
   processor or utilize the hardware virtualization features of the host
   processor.</para>
 
-  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="qemu-kvm.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="qemu.xml"/>
 
 </chapter>



More information about the blfs-book mailing list