Changeset ac38e9dc for postlfs/virtualization
- Timestamp:
- 08/01/2015 04:26:22 AM (9 years ago)
- Branches:
- systemd-13485
- Children:
- ad6910d
- Parents:
- 4a83293
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
postlfs/virtualization/qemu-systemd.xml
r4a83293 rac38e9dc 7 7 <!ENTITY qemu-download-http "http://wiki.qemu.org/download/qemu-&qemu-version;.tar.bz2"> 8 8 <!ENTITY qemu-download-ftp " "> 9 <!ENTITY qemu-md5sum " 0ff197c4ed4b695620bc4734e77c888f">10 <!ENTITY qemu-size "2 2MB">11 <!ENTITY qemu-buildsize "2 86MB">12 <!ENTITY qemu-time "1. 6SBU">9 <!ENTITY qemu-md5sum "2fab3ea4460de9b57192e5b8b311f221"> 10 <!ENTITY qemu-size "24 MB"> 11 <!ENTITY qemu-buildsize "291 MB"> 12 <!ENTITY qemu-time "1.4 SBU"> 13 13 ]> 14 14 … … 34 34 AMD-V).</para> 35 35 36 &lfs7 6_checked;36 &lfs77_checked; 37 37 38 38 <bridgehead renderas="sect3">Package Information</bridgehead> … … 75 75 <para role="optional"> 76 76 <xref linkend="alsa"/>, 77 <xref linkend="bluez"/>, 77 78 <xref linkend="check"/>, 78 79 <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), 79 86 <xref linkend="mesalib"/>, and 80 <xref linkend=" cyrus-sasl"/>87 <xref linkend="vte"/> 81 88 </para> 82 89 … … 111 118 <title>Kernel Configuration</title> 112 119 113 <para>Enable the following options in the kernel configuration 114 andrecompile the kernel if necessary:</para>115 116 <screen><literal> Virtualization: --->117 Kernel-based Virtual Machine (KVM) support: Y or M118 KVM for Intel processors support: Y or M119 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: ---> [CONFIG_VIRTUALIZATION] 124 <*/M> Kernel-based Virtual Machine (KVM) support [CONFIG_KVM] 125 <*/M> KVM for Intel processors support [CONFIG_KVM_INTEL] 126 <*/M> KVM for AMD processors support [CONFIG_KVM_AMD]</literal></screen> 120 127 121 128 <indexterm zone="qemu qemu-kernel"> … … 126 133 your system processor is required.</para> 127 134 128 <para>For networking, check that <xref linkend= "bridgeutils"/> is installed135 <para>For networking, check that <xref linkend='bridgeutils'/> is installed 129 136 and the following options in the kernel configuration are enabled:</para> 130 137 131 <screen><literal> <!--Networking support - - ->132 Networking options - -->133 802.1d Ethernet Bridging: Y or M134 -->Device Drivers --->135 Network device support --->136 Universal TUN/TAP device driver support: Y or M</literal></screen>138 <screen><literal>[*] Networking support ---> [CONFIG_NET] 139 Networking options ---> 140 <*/M> 802.1d Ethernet Bridging [CONFIG_BRIDGE] 141 Device Drivers ---> 142 [*] Network device support ---> [CONFIG_NETDEVICES] 143 <*/M> Universal TUN/TAP device driver support [CONFIG_TUN]</literal></screen> 137 144 138 145 </sect2> … … 144 151 commands:</para> 145 152 146 <screen><userinput>sed -e '/#include <sys\/capability.h>/ d' \ 147 -e '/#include "virtio-9p-marshal.h"/ i#include <sys\/capability.h>' \ 148 -i fsdev/virtfs-proxy-helper.c && 149 150 ./configure --prefix=/usr \ 153 <screen><userinput>./configure --prefix=/usr \ 151 154 --sysconfdir=/etc \ 152 155 --docdir=/usr/share/doc/qemu-&qemu-version; \ … … 163 166 <para> 164 167 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 following168 allowed to access the KVM device. Create this group by running the following 166 169 command as the <systemitem class="username">root</systemitem> user: 167 170 </para> … … 199 202 <sect2 role="commands"> 200 203 <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 with204 <application>libcap-&libcap-version;</application>.</para>205 204 206 205 <para><parameter>--target-list=x86_64-softmmu</parameter>: This switch … … 234 233 235 234 <para>To install an operating system, download an iso of your choice or use 236 a pre-in talled cdrom device. For the purposes of this example, use235 a pre-installed cdrom device. For the purposes of this example, use 237 236 Fedora 16 that is downloaded as 238 237 <filename>Fedora-16-x86_64-Live-LXDE.iso</filename> in the current … … 287 286 288 287 <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 && 292 chmod 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' > /etc/qemu/bridge.conf</userinput></screen> 300 301 </listitem> 302 303 <!-- 304 <listitem> 289 305 <para>Create scripts for qemu to attach the client network 290 306 device, usually visible as tap0, to the host bridge.</para> … … 329 345 </itemizedlist> 330 346 331 < !-- <note><para>The backslashes in the above script are for convenience347 <note><para>The backslashes in the above script are for convenience 332 348 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> 338 355 </listitem> 339 356 340 357 <listitem> 341 358 <para>If a connection, such as ssh, from the local network to the 342 client VM is desired, the client should probablybe configured359 client VM is desired, the client should be configured 343 360 with a static IP address.</para> 344 361 </listitem>
Note:
See TracChangeset
for help on using the changeset viewer.