[d28198d3] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[75e93d0] | 7 | <!ENTITY qemu-download-http "https://download.qemu.org/qemu-&qemu-version;.tar.xz">
|
---|
[2f6053d] | 8 | <!ENTITY qemu-download-ftp " ">
|
---|
[d5c360b4] | 9 | <!ENTITY qemu-md5sum "15ee0d10f7a707ca22058da71c837a97">
|
---|
| 10 | <!ENTITY qemu-size "121 MB">
|
---|
| 11 | <!ENTITY qemu-buildsize "2.7 GB">
|
---|
[ca19f43] | 12 | <!ENTITY qemu-time "1.6 SBU (add 1.4 SBU for tests, both using parallelism=4)">
|
---|
[d28198d3] | 13 | ]>
|
---|
| 14 |
|
---|
[2f6053d] | 15 | <sect1 id="qemu" xreflabel="qemu-&qemu-version;">
|
---|
| 16 | <?dbhtml filename="qemu.html"?>
|
---|
[d28198d3] | 17 |
|
---|
| 18 |
|
---|
[2f6053d] | 19 | <title>qemu-&qemu-version;</title>
|
---|
[d28198d3] | 20 |
|
---|
[2f6053d] | 21 | <indexterm zone="qemu">
|
---|
| 22 | <primary sortas="a-qemu">qemu</primary>
|
---|
[d28198d3] | 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
[2f6053d] | 26 | <title>Introduction to qemu</title>
|
---|
[d28198d3] | 27 |
|
---|
[47274444] | 28 | <para>
|
---|
| 29 | <application>qemu</application> is a full virtualization solution for
|
---|
| 30 | Linux on x86 hardware containing virtualization extensions (Intel VT or
|
---|
| 31 | AMD-V).
|
---|
| 32 | </para>
|
---|
[d28198d3] | 33 |
|
---|
[cfd4fa8] | 34 | &lfs113_checked;
|
---|
[27643d0f] | 35 |
|
---|
[d28198d3] | 36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 37 | <itemizedlist spacing="compact">
|
---|
| 38 | <listitem>
|
---|
[47274444] | 39 | <para>
|
---|
| 40 | Download (HTTP): <ulink url="&qemu-download-http;"/>
|
---|
| 41 | </para>
|
---|
[d28198d3] | 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
[47274444] | 44 | <para>
|
---|
| 45 | Download (FTP): <ulink url="&qemu-download-ftp;"/>
|
---|
| 46 | </para>
|
---|
[d28198d3] | 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
[47274444] | 49 | <para>
|
---|
| 50 | Download MD5 sum: &qemu-md5sum;
|
---|
| 51 | </para>
|
---|
[d28198d3] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[47274444] | 54 | <para>
|
---|
| 55 | Download size: &qemu-size;
|
---|
| 56 | </para>
|
---|
[d28198d3] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[47274444] | 59 | <para>
|
---|
| 60 | Estimated disk space required: &qemu-buildsize;
|
---|
| 61 | </para>
|
---|
[d28198d3] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[47274444] | 64 | <para>
|
---|
| 65 | Estimated build time: &qemu-time;
|
---|
| 66 | </para>
|
---|
[d28198d3] | 67 | </listitem>
|
---|
| 68 | </itemizedlist>
|
---|
[54f740f] | 69 |
|
---|
[2f6053d] | 70 | <bridgehead renderas="sect3">Qemu Dependencies</bridgehead>
|
---|
[d28198d3] | 71 |
|
---|
| 72 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 73 | <para role="required">
|
---|
[f9865e2] | 74 | <xref linkend="glib2"/>, and
|
---|
[d28198d3] | 75 | <xref linkend="x-window-system"/>
|
---|
| 76 | </para>
|
---|
| 77 |
|
---|
[c41b38f] | 78 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 79 | <para role="recommended">
|
---|
[50ba3b3] | 80 | <xref linkend="alsa-lib"/>,
|
---|
| 81 | <xref linkend="libslirp"/>, and
|
---|
[b4c31a6] | 82 | <xref linkend="sdl2"/>
|
---|
[c41b38f] | 83 | </para>
|
---|
| 84 |
|
---|
[d28198d3] | 85 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 86 | <para role="optional">
|
---|
[80a314c] | 87 | Depending on the sound system, various packages in <xref linkend="alsa"/>,
|
---|
[2d7c53d] | 88 | <xref linkend="python3"/>,
|
---|
[11b931a6] | 89 | <xref linkend="pulseaudio"/>,
|
---|
[8ade43b] | 90 | <xref linkend="bluez"/>,
|
---|
[d28198d3] | 91 | <xref linkend="curl"/>,
|
---|
[8ade43b] | 92 | <xref linkend="cyrus-sasl"/>,
|
---|
[10f9bb45] | 93 | <xref linkend="gnutls"/>,
|
---|
[8ade43b] | 94 | <xref linkend="gtk2"/>,
|
---|
| 95 | <xref linkend="gtk3"/>,
|
---|
| 96 | <xref linkend="libusb"/>,
|
---|
[10f9bb45] | 97 | <xref linkend="libgcrypt"/>,
|
---|
[fee79e2] | 98 | <xref linkend="libssh2"/>,
|
---|
[8ade43b] | 99 | <xref linkend="lzo"/>,
|
---|
[10f9bb45] | 100 | <xref linkend="nettle"/>,
|
---|
| 101 | <xref linkend="mesa"/>,
|
---|
[cac7f93] | 102 | <xref role="nodep" linkend="vte"/> or <xref linkend="vte2"/>, and
|
---|
[b4c31a6] | 103 | <!-- libcacard has been a standalone project since qemu-2.5.-->
|
---|
[fefc5d54] | 104 | <ulink url="https://gitlab.freedesktop.org/spice/libcacard">libcacard</ulink>
|
---|
[d28198d3] | 105 | </para>
|
---|
| 106 |
|
---|
[0fea832] | 107 | <bridgehead renderas="sect4">Optional (Runtime)</bridgehead>
|
---|
| 108 | <para role="runtime">
|
---|
| 109 | &logind;
|
---|
| 110 | </para>
|
---|
| 111 |
|
---|
[402910e] | 112 | <bridgehead renderas="sect4">Optional (for building the documentation)</bridgehead>
|
---|
[a541e080] | 113 | <para role="optional">
|
---|
[402910e] | 114 | <xref linkend="sphinx_rtd_theme"/>
|
---|
[a541e080] | 115 | </para>
|
---|
| 116 |
|
---|
[9b13441] | 117 | <note>
|
---|
| 118 | <para>
|
---|
| 119 | This optional dependencies list is not comprehensive. See the output of
|
---|
| 120 | <command>./configure --help</command> for a more complete list.
|
---|
| 121 | </para>
|
---|
| 122 | </note>
|
---|
| 123 |
|
---|
[42ddc30] | 124 | <para condition="html" role="usernotes">Editor Notes:
|
---|
[2f6053d] | 125 | <ulink url="&blfs-wiki;/qemu"/></para>
|
---|
[d28198d3] | 126 |
|
---|
| 127 | </sect2>
|
---|
| 128 |
|
---|
[2f6053d] | 129 | <sect2 id='qemu-prereq'>
|
---|
[1eb4fcf] | 130 | <title>KVM Prerequisites</title>
|
---|
[d28198d3] | 131 |
|
---|
[47274444] | 132 | <para>
|
---|
| 133 | Before building <application>qemu</application>, check to see if
|
---|
| 134 | your processor supports Virtualization Technology (VT):
|
---|
| 135 | </para>
|
---|
[d28198d3] | 136 |
|
---|
[d6b45f7] | 137 | <screen><userinput>grep -E '^flags.*(vmx|svm)' /proc/cpuinfo</userinput></screen>
|
---|
[d28198d3] | 138 |
|
---|
[47274444] | 139 | <para>
|
---|
| 140 | If you get any output, you have VT technology (vmx for Intel
|
---|
| 141 | processors and svm for AMD processors). You then need to go into your
|
---|
[b9c353b] | 142 | system BIOS and ensure it is enabled. After enabling, reboot back to your
|
---|
[47274444] | 143 | LFS instance.
|
---|
| 144 | </para>
|
---|
[d28198d3] | 145 |
|
---|
| 146 | </sect2>
|
---|
| 147 |
|
---|
[2f6053d] | 148 | <sect2 role="kernel" id='qemu-kernel'>
|
---|
[d28198d3] | 149 | <title>Kernel Configuration</title>
|
---|
| 150 |
|
---|
[47274444] | 151 | <para>
|
---|
| 152 | Enable the following options in the kernel configuration and
|
---|
| 153 | recompile the kernel if necessary:
|
---|
| 154 | </para>
|
---|
[d28198d3] | 155 |
|
---|
[f39cf0d0] | 156 | <screen><literal>[*] Virtualization: ---> [CONFIG_VIRTUALIZATION]
|
---|
[421128a1] | 157 | <*/M> Kernel-based Virtual Machine (KVM) support [CONFIG_KVM]
|
---|
[f39cf0d0] | 158 | <*/M> KVM for Intel (and compatible) processors support [CONFIG_KVM_INTEL]
|
---|
| 159 | <*/M> KVM for AMD processors support [CONFIG_KVM_AMD]</literal></screen>
|
---|
[d28198d3] | 160 |
|
---|
[2f6053d] | 161 | <indexterm zone="qemu qemu-kernel">
|
---|
| 162 | <primary sortas="d-qemu">qemu</primary>
|
---|
[d28198d3] | 163 | </indexterm>
|
---|
| 164 |
|
---|
[47274444] | 165 | <para>
|
---|
| 166 | The Intel or AMD settings are not both required, but the one matching
|
---|
| 167 | your system processor is required.
|
---|
| 168 | </para>
|
---|
[d28198d3] | 169 |
|
---|
[b4c31a6] | 170 | <para>
|
---|
| 171 | To use the <quote>bridge</quote> network device, as explained below,
|
---|
| 172 | check that <xref linkend='bridgeutils'/> is installed
|
---|
| 173 | and the following options in the kernel configuration are enabled:
|
---|
| 174 | </para>
|
---|
[9b13441] | 175 |
|
---|
[421128a1] | 176 | <screen><literal>[*] Networking support ---> [CONFIG_NET]
|
---|
[9b13441] | 177 | Networking options --->
|
---|
[421128a1] | 178 | <*/M> 802.1d Ethernet Bridging [CONFIG_BRIDGE]
|
---|
[9b13441] | 179 | Device Drivers --->
|
---|
[421128a1] | 180 | [*] Network device support ---> [CONFIG_NETDEVICES]
|
---|
| 181 | <*/M> Universal TUN/TAP device driver support [CONFIG_TUN]</literal></screen>
|
---|
[d28198d3] | 182 |
|
---|
| 183 | </sect2>
|
---|
| 184 |
|
---|
| 185 | <sect2 role="installation">
|
---|
[2f6053d] | 186 | <title>Installation of qemu</title>
|
---|
[fdec60a] | 187 | <!-- group kvm is created in lfs chapter 7 even for sysv
|
---|
[9f309be] | 188 | <para revision="sysv">
|
---|
[b4c31a6] | 189 | You will need a dedicated group that will contain users (other than root)
|
---|
| 190 | allowed to access the KVM device. Create this group by running the
|
---|
| 191 | following command as the
|
---|
| 192 | <systemitem class="username">root</systemitem> user:
|
---|
| 193 | </para>
|
---|
| 194 |
|
---|
[9f309be] | 195 | <screen role="root" revision="sysv"><userinput>groupadd -g 61 kvm</userinput></screen>
|
---|
[fdec60a] | 196 | -->
|
---|
[b4c31a6] | 197 | <para>
|
---|
[0fea832] | 198 | The udev rule of LFS only allows the &root; user, the users owning
|
---|
| 199 | a local login session supported by the optional runtime dependency
|
---|
| 200 | &logind;, or the users in the
|
---|
| 201 | <systemitem class="groupname">kvm</systemitem> group to use the KVM
|
---|
| 202 | device. As the &root; user, add any non-&root; users that might use
|
---|
| 203 | the KVM device either without &logind; installed or remotely (via a
|
---|
| 204 | SSH connection) to the
|
---|
| 205 | <systemitem class="groupname">kvm</systemitem> group:
|
---|
[b4c31a6] | 206 | </para>
|
---|
| 207 |
|
---|
| 208 | <screen role="root"><userinput>usermod -a -G kvm <replaceable><username></replaceable></userinput></screen>
|
---|
| 209 |
|
---|
[47274444] | 210 | <para>
|
---|
| 211 | Install <application>qemu</application> by running the following
|
---|
| 212 | commands:
|
---|
| 213 | </para>
|
---|
[d28198d3] | 214 |
|
---|
[47274444] | 215 | <note>
|
---|
| 216 | <para>
|
---|
| 217 | Qemu is capable of running many targets. The build process
|
---|
| 218 | is also capable of building multiple targets at one time in a
|
---|
| 219 | comma delimited list assigned to <option>--target-list</option>. Run
|
---|
| 220 | <command>./configure --help</command> to get a complete list of
|
---|
| 221 | available targets.
|
---|
| 222 | </para>
|
---|
| 223 | </note>
|
---|
[aa9028e] | 224 |
|
---|
| 225 |
|
---|
| 226 | <screen><userinput>if [ $(uname -m) = i686 ]; then
|
---|
| 227 | QEMU_ARCH=i386-softmmu
|
---|
| 228 | else
|
---|
| 229 | QEMU_ARCH=x86_64-softmmu
|
---|
| 230 | fi
|
---|
| 231 |
|
---|
[a29d9e0] | 232 |
|
---|
[10f9bb45] | 233 | mkdir -vp build &&
|
---|
| 234 | cd build &&
|
---|
| 235 |
|
---|
[252e5bf] | 236 | ../configure --prefix=/usr \
|
---|
| 237 | --sysconfdir=/etc \
|
---|
[b0a073b] | 238 | --localstatedir=/var \
|
---|
[252e5bf] | 239 | --target-list=$QEMU_ARCH \
|
---|
| 240 | --audio-drv-list=alsa \
|
---|
[dff46c6] | 241 | --disable-pa \
|
---|
[252e5bf] | 242 | --docdir=/usr/share/doc/qemu-&qemu-version; &&
|
---|
| 243 |
|
---|
[aa9028e] | 244 | unset QEMU_ARCH &&
|
---|
| 245 |
|
---|
[9b13441] | 246 | make</userinput></screen>
|
---|
[d28198d3] | 247 |
|
---|
[43ef29db] | 248 | <para>
|
---|
[6aa48d38] | 249 | <application>qemu</application> uses <command>ninja</command> as
|
---|
[542bb708] | 250 | a subprocess when building. To run the tests, issue:
|
---|
[ca19f43] | 251 | <command>ninja test</command>. Two migration tests are known to fail.
|
---|
[43ef29db] | 252 | </para>
|
---|
[d28198d3] | 253 |
|
---|
[9a04a8e9] | 254 | <para>
|
---|
[ca19f43] | 255 | Now, as the &root; user:
|
---|
[9a04a8e9] | 256 | </para>
|
---|
| 257 |
|
---|
[b4c31a6] | 258 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[d129835c] | 259 | <!-- now in LFS
|
---|
[9a04a8e9] | 260 | <para>
|
---|
[b4c31a6] | 261 | You will also need to add an Udev rule so that the KVM device gets correct
|
---|
[1f1f2230] | 262 | permissions. As the &root; user, issue:
|
---|
[9a04a8e9] | 263 | </para>
|
---|
| 264 |
|
---|
[b1643e3] | 265 | <screen role="root"><userinput>cat > /etc/udev/rules.d/65-kvm.rules << "EOF"
|
---|
[009eb04] | 266 | <literal>KERNEL=="kvm", GROUP="kvm", MODE="0660"</literal>
|
---|
[9a04a8e9] | 267 | EOF</userinput></screen>
|
---|
[d129835c] | 268 | -->
|
---|
[b4c31a6] | 269 | <para>
|
---|
| 270 | Change the permissions and ownership of a helper script, which is needed
|
---|
[1f1f2230] | 271 | when using the <quote>bridge</quote> network device (see below). Again
|
---|
| 272 | as the &root; user, issue:
|
---|
[b4c31a6] | 273 | </para>
|
---|
| 274 |
|
---|
[d129835c] | 275 | <note>
|
---|
| 276 | <para>
|
---|
| 277 | You need to add any users who might use the <quote>bridge</quote>
|
---|
| 278 | network device into the
|
---|
| 279 | <systemitem class="groupname">kvm</systemitem> group even if
|
---|
| 280 | &logind; is installed.
|
---|
| 281 | </para>
|
---|
| 282 | </note>
|
---|
| 283 |
|
---|
[b4c31a6] | 284 | <screen role="root"><userinput>chgrp kvm /usr/libexec/qemu-bridge-helper &&
|
---|
| 285 | chmod 4750 /usr/libexec/qemu-bridge-helper</userinput></screen>
|
---|
| 286 |
|
---|
[8ee3e19c] | 287 | <note>
|
---|
[47274444] | 288 | <para>
|
---|
[542bb708] | 289 | For convenience you may want to create a symbolic link to run
|
---|
[1f1f2230] | 290 | the installed program. For instance (as the &root; user):
|
---|
[542bb708] | 291 | </para>
|
---|
[d28198d3] | 292 |
|
---|
[10f9bb45] | 293 | <screen role="root"><userinput>ln -sv qemu-system-`uname -m` /usr/bin/qemu</userinput></screen>
|
---|
[d28198d3] | 294 | </note>
|
---|
| 295 |
|
---|
| 296 | </sect2>
|
---|
| 297 |
|
---|
[6a54383] | 298 | <sect2 role="commands">
|
---|
| 299 | <title>Command Explanations</title>
|
---|
| 300 |
|
---|
[a29d9e0] | 301 | <para>
|
---|
[1f1f2230] | 302 | <parameter>--audio-drv-list=alsa --disable-pa</parameter>: This switch
|
---|
| 303 | sets the audio driver to ALSA. See below for enabling other audio drivers.
|
---|
[9b13441] | 304 | </para>
|
---|
[6a54383] | 305 |
|
---|
[f9865e2] | 306 | <para>
|
---|
[1f1f2230] | 307 | <option>--audio-drv-list=pa --disable-alsa</option>: This switch sets
|
---|
| 308 | the audio driver to pulseaudio. For other drivers see the
|
---|
| 309 | --audio-drv-list choices in the output of
|
---|
| 310 | <command>./configure --help</command>. The default audio driver is OSS.
|
---|
| 311 | To enable support for both alsa and pulseaudio, use
|
---|
[f9865e2] | 312 | <option>--audio-drv-list=alsa,pa</option>.
|
---|
| 313 | </para>
|
---|
| 314 |
|
---|
[9b13441] | 315 | </sect2>
|
---|
[6a54383] | 316 |
|
---|
[b4c31a6] | 317 | <sect2 role="using">
|
---|
| 318 | <title>Using Qemu</title>
|
---|
| 319 |
|
---|
| 320 | <para>
|
---|
| 321 | Since using qemu means using a virtual computer, the steps to set up
|
---|
| 322 | the virtual machine are in close analogy with those to set up a real
|
---|
| 323 | computer. You'll need to decide about CPU, memory, disk, USB devices,
|
---|
| 324 | network card(s), screen size, etc. Once the <quote>hardware</quote> is
|
---|
| 325 | decided, you'll have for example to choose how to connect the machine
|
---|
| 326 | to internet, and/or to install an OS. In the following, we show basic
|
---|
| 327 | ways of performing those steps. But qemu is much more than this, and it
|
---|
| 328 | is strongly advised to read the qemu documentation in
|
---|
| 329 | <filename>/usr/share/doc/qemu-&qemu-version;/qemu-doc.html</filename>.
|
---|
| 330 | </para>
|
---|
[d28198d3] | 331 |
|
---|
[b4c31a6] | 332 | <note>
|
---|
| 333 | <para>
|
---|
| 334 | It is standard practice to name the computer running qemu
|
---|
| 335 | <quote>host</quote> and the emulated machine running under qemu the
|
---|
| 336 | <quote>guest</quote>. We'll use those notations in the following.
|
---|
| 337 | </para>
|
---|
| 338 | </note>
|
---|
[d28198d3] | 339 |
|
---|
[b4c31a6] | 340 | <note>
|
---|
| 341 | <para>
|
---|
| 342 | The following instructions assume the optional symbolic link,
|
---|
| 343 | <filename>qemu</filename>, has been created. Additionally,
|
---|
[1f1f2230] | 344 | <command>qemu</command> should be run in a graphical environment.
|
---|
| 345 | But it is possible to use qemu <quote>headless</quote> or through
|
---|
| 346 | SSH. See the documentation for the various possibilities.
|
---|
[b4c31a6] | 347 | </para>
|
---|
| 348 | </note>
|
---|
[d28198d3] | 349 |
|
---|
[b4c31a6] | 350 | <bridgehead renderas="sect3">Disk</bridgehead>
|
---|
| 351 | <para>
|
---|
| 352 | A virtual disk may be set up in the following way:
|
---|
| 353 | </para>
|
---|
[d28198d3] | 354 |
|
---|
[b4c31a6] | 355 | <screen><userinput>VDISK_SIZE=<replaceable>50G</replaceable>
|
---|
| 356 | VDISK_FILENAME=<replaceable>vdisk.img</replaceable>
|
---|
| 357 | qemu-img create -f qcow2 $VDISK_FILENAME $VDISK_SIZE</userinput></screen>
|
---|
[d28198d3] | 358 |
|
---|
[b4c31a6] | 359 | <para>
|
---|
[9d6565bf] | 360 | The virtual disk size and filename should be adjusted as desired. The
|
---|
[b4c31a6] | 361 | actual size of the file will be less than specified, but will expand as
|
---|
| 362 | needed, so it is safe to put a high value.
|
---|
| 363 | </para>
|
---|
| 364 |
|
---|
| 365 | <bridgehead renderas="sect3">Operating System</bridgehead>
|
---|
| 366 | <para>
|
---|
[0639bb6] | 367 | To install an operating system, download an iso image from your preferred
|
---|
[b4c31a6] | 368 | Linux distribution. For the purposes of this example, we'll use
|
---|
| 369 | <filename>Fedora-16-x86_64-Live-LXDE.iso</filename> in the current
|
---|
| 370 | directory. Run the following:
|
---|
| 371 | </para>
|
---|
[d28198d3] | 372 |
|
---|
[b4c31a6] | 373 | <screen><userinput>qemu -enable-kvm \
|
---|
| 374 | -drive file=$VDISK_FILENAME \
|
---|
[0d7900a] | 375 | -cdrom Fedora-16-x86_64-Live-LXDE.iso \
|
---|
[d28198d3] | 376 | -boot d \
|
---|
[b4c31a6] | 377 | -m <replaceable>1G</replaceable></userinput></screen>
|
---|
| 378 |
|
---|
| 379 | <para>
|
---|
| 380 | Follow the normal installation procedures for the chosen distribution.
|
---|
| 381 | The <parameter>-boot</parameter> option specifies the boot order of
|
---|
| 382 | drives as a string of drive letters. Valid drive letters are: a, b
|
---|
| 383 | (floppy 1 and 2), c (first hard disk), d (first CD-ROM). The
|
---|
| 384 | <parameter>-m</parameter> option is the amount of memory to use for the
|
---|
| 385 | virtual machine. The choice depends on the load of the host. Modern
|
---|
| 386 | distributions should be comfortable with 1GB.
|
---|
| 387 | The <parameter>-enable-kvm</parameter> option allows hardware
|
---|
| 388 | acceleration. Without this switch, the emulation is much slower.
|
---|
| 389 | </para>
|
---|
| 390 |
|
---|
| 391 | <bridgehead renderas="sect3">Defining the virtual hardware</bridgehead>
|
---|
| 392 | <para>
|
---|
| 393 | The virtual machine hardware is defined by the qemu command line.
|
---|
| 394 | An example command is given below:
|
---|
| 395 | </para>
|
---|
| 396 |
|
---|
| 397 | <screen><userinput>qemu -enable-kvm \
|
---|
| 398 | -smp 4 \
|
---|
| 399 | -cpu host \
|
---|
| 400 | -m 1G \
|
---|
| 401 | -drive file=$VDISK_FILENAME \
|
---|
| 402 | -cdrom grub-img.iso \
|
---|
| 403 | -boot order=c,once=d,menu=on \
|
---|
| 404 | -net nic,netdev=net0 \
|
---|
| 405 | -netdev user,id=net0 \
|
---|
[42326ce] | 406 | -device ac97 \
|
---|
[b4c31a6] | 407 | -vga std \
|
---|
| 408 | -serial mon:stdio \
|
---|
| 409 | -name "fedora-16"</userinput></screen>
|
---|
| 410 |
|
---|
| 411 | <bridgehead renderas="sect3">Meaning of the command line options</bridgehead>
|
---|
| 412 | <para>
|
---|
| 413 | <parameter>-enable-kvm</parameter>: enable full KVM virtualization
|
---|
| 414 | support. On some hardware, it may be necessary to add the undocumented
|
---|
| 415 | <option>-machine smm=off</option> option in order to enable KVM.
|
---|
| 416 | </para>
|
---|
| 417 |
|
---|
| 418 | <para>
|
---|
| 419 | <parameter>-smp <N></parameter>: enable symmetric multiprocessing
|
---|
| 420 | with <N> CPUs.
|
---|
| 421 | </para>
|
---|
| 422 |
|
---|
| 423 | <para>
|
---|
| 424 | <parameter>-cpu <model></parameter>: simulate CPU <model>.
|
---|
| 425 | the list of supported models can be obtained with <option>-cpu
|
---|
| 426 | help</option>.
|
---|
| 427 | </para>
|
---|
| 428 |
|
---|
| 429 | <para>
|
---|
| 430 | <parameter>-drive file=<filename></parameter>: defines a virtual
|
---|
| 431 | disk whose image is stored in <filename><filename></filename>.
|
---|
| 432 | </para>
|
---|
| 433 |
|
---|
| 434 | <para>
|
---|
[b9c353b] | 435 | <parameter>-cdrom grub-img.iso</parameter>: defines an iso formatted file
|
---|
[b4c31a6] | 436 | to use as a cdrom. Here we use a grub rescue disk, which may turn handy
|
---|
| 437 | when something goes wrong at boot time.
|
---|
| 438 | </para>
|
---|
| 439 |
|
---|
| 440 | <para>
|
---|
| 441 | <parameter>-boot order=c,once=d,menu=on</parameter>: defines the boot
|
---|
| 442 | order for the virtual BIOS.
|
---|
| 443 | </para>
|
---|
| 444 |
|
---|
| 445 | <para>
|
---|
| 446 | <parameter>-net nic,netdev=<netid></parameter>: defines a network
|
---|
| 447 | card connected to the network device with id <netid>.
|
---|
| 448 | </para>
|
---|
| 449 |
|
---|
| 450 | <para>
|
---|
| 451 | <parameter>-netdev user,id=<netid></parameter>: defines the
|
---|
| 452 | network <quote>user</quote> device. This is a virtual local network
|
---|
| 453 | with addresses 10.0.2.0/24, where the host has address 10.0.2.2 and
|
---|
| 454 | acts as a gateway to internet, and with a name server at address
|
---|
| 455 | 10.0.2.3, and an smb server at address 10.0.2.4. A builtin DHCP server
|
---|
| 456 | can allocate addresses between 10.0.2.15 and 10.0.2.31.
|
---|
| 457 | </para>
|
---|
| 458 |
|
---|
| 459 | <para>
|
---|
| 460 | <parameter>-soundhw <model></parameter>: defines the soundcard
|
---|
| 461 | model. The list may be obtained with <option>-soundhw help</option>.
|
---|
| 462 | </para>
|
---|
| 463 |
|
---|
| 464 | <para>
|
---|
[f1f1519] | 465 | <parameter>-vga <type></parameter>: defines the type of VGA card
|
---|
| 466 | to emulate. For <parameter>-vga std</parameter>, if you are building
|
---|
| 467 | a Linux kernel for the guest, it's recommended to enable
|
---|
| 468 | <option>CONFIG_DRM_BOCHS</option> (as a part of the kernel or a kernel
|
---|
| 469 | module) to drive all the features of the emulated VGA card, and
|
---|
| 470 | <option>CONFIG_FB</option> to display the Linux console on it. The
|
---|
| 471 | other <option><type></option> values are not tested by the
|
---|
| 472 | editors and may require additional dependencies.
|
---|
[b4c31a6] | 473 | </para>
|
---|
| 474 |
|
---|
| 475 | <para>
|
---|
| 476 | <parameter>-serial mon:stdio</parameter>: sends the serial port of the
|
---|
| 477 | guest (<filename>/dev/ttyS0</filename> on linux guests), multiplexed with
|
---|
| 478 | the qemu monitor, to the standard input and output of the qemu
|
---|
| 479 | process.
|
---|
| 480 | </para>
|
---|
| 481 |
|
---|
| 482 | <para>
|
---|
| 483 | <parameter>-name <name></parameter>: sets the name of the guest.
|
---|
| 484 | This name is displayed in the guest window caption. It may be useful
|
---|
| 485 | if you run several guests at the same time.
|
---|
| 486 | </para>
|
---|
| 487 |
|
---|
[46a8304] | 488 | <para>
|
---|
| 489 | <option>-pflash /usr/share/qemu/edk2-x86_64-code.fd</option>: Load a
|
---|
[b38aed5] | 490 | pre-built EDK2 UEFI firmware, instead of the default PC BIOS. Use
|
---|
[46a8304] | 491 | this option if you want to boot the guest OS with UEFI.
|
---|
| 492 | </para>
|
---|
| 493 |
|
---|
[10311fa] | 494 | <para>
|
---|
| 495 | <option>-drive file=<filename>,if=virtio</option>: Provide
|
---|
| 496 | Virtio interface to the guest kernel for accessing the disk image,
|
---|
| 497 | instead of simulating a real disk hardware. This can improve disk I/O
|
---|
| 498 | performance, but it requires a Virtio driver in guest kernel. Use
|
---|
| 499 | it instead of a plain <option>-drive</option> if the guest kernel
|
---|
[8cffdfa] | 500 | supports Virtio. To build a Linux kernel with Virtio support for the
|
---|
| 501 | guest, use
|
---|
| 502 | <command>make defconfig && make kvm_guest.config</command> to
|
---|
| 503 | create an initial kernel configuration with the Virtio drives enabled,
|
---|
| 504 | then make your customization. And, if the guest kernel is Linux, the
|
---|
| 505 | virtual disks using Virtio interface will be named
|
---|
| 506 | <filename>vdx</filename> in the devtmpfs, instead of
|
---|
| 507 | <filename>sdx</filename>.
|
---|
[10311fa] | 508 | </para>
|
---|
| 509 |
|
---|
| 510 | <para>
|
---|
| 511 | <option>-net nic,netdev=net0,model=virtio-net-pci</option>: Provide
|
---|
| 512 | Virtio interface to the guest kernel for accessing the network
|
---|
| 513 | interface, instead of simulating a real network interface card. This
|
---|
| 514 | can improve network I/O performance, but it requires a Virtio driver
|
---|
| 515 | in guest kernel. Use it instead of a plain <option>-net</option> if
|
---|
| 516 | the guest kernel supports Virtio.
|
---|
| 517 | </para>
|
---|
| 518 |
|
---|
[0639bb6] | 519 | <bridgehead renderas="sect3">Controlling the Emulated Display</bridgehead>
|
---|
[b4c31a6] | 520 | <para>
|
---|
| 521 | It may happen that the guest window displayed by qemu does not correspond
|
---|
[f1f1519] | 522 | to the full capability of the emulated VGA card. For example, the vmware
|
---|
[b4c31a6] | 523 | card is 1600x900 capable, but only 1024x768 is displayed by default.
|
---|
| 524 | A suitable Xorg configuration on the guest allows to use the full size
|
---|
| 525 | (Note that the Xorg video driver to use is <xref
|
---|
| 526 | linkend="xorg-vmware-driver"/>):
|
---|
| 527 | </para>
|
---|
[855c1f7] | 528 |
|
---|
| 529 | <screen role="root"><userinput>cat > /usr/share/X11/xorg.conf.d/20-vmware.conf << "EOF"
|
---|
[577d43d] | 530 | <literal>Section "Monitor"
|
---|
| 531 | Identifier "Monitor0"
|
---|
| 532 | # cvt 1600 900
|
---|
| 533 | # 1600x900 59.95 Hz (CVT 1.44M9) hsync: 55.99 kHz; pclk: 118.25 MHz
|
---|
| 534 | Modeline "1600x900" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync
|
---|
| 535 | Option "PreferredMode" "1600x900"
|
---|
| 536 | HorizSync 1-200
|
---|
| 537 | VertRefresh 1-200
|
---|
[855c1f7] | 538 | EndSection
|
---|
| 539 |
|
---|
[577d43d] | 540 | Section "Device"
|
---|
[855c1f7] | 541 | Identifier "VMware SVGA II Adapter"
|
---|
| 542 | Option "Monitor" "default"
|
---|
| 543 | Driver "vmware"
|
---|
| 544 | EndSection
|
---|
| 545 |
|
---|
[577d43d] | 546 | Section "Screen"
|
---|
[855c1f7] | 547 | Identifier "Default Screen"
|
---|
| 548 | Device "VMware SVGA II Adapter"
|
---|
| 549 | Monitor "Monitor0"
|
---|
| 550 |
|
---|
| 551 | SubSection "Display"
|
---|
| 552 | Depth 24
|
---|
| 553 | Modes "1600x900" "1440x900" "1366x768" "1280x720" "800x480"
|
---|
| 554 | EndSubSection
|
---|
| 555 |
|
---|
| 556 | EndSection</literal>
|
---|
| 557 | EOF</userinput></screen>
|
---|
| 558 |
|
---|
[b4c31a6] | 559 | <para>
|
---|
| 560 | New sizes will be available besides the native ones. You need to
|
---|
| 561 | restart X in order to have the new sizes available.
|
---|
| 562 | </para>
|
---|
[d28198d3] | 563 |
|
---|
[b4c31a6] | 564 | <bridgehead renderas="sect3">Networking</bridgehead>
|
---|
| 565 | <para>
|
---|
[449c552] | 566 | The above solution for networking allows the guest to access the local
|
---|
[b4c31a6] | 567 | network through the host (and possibly to access internet through the
|
---|
| 568 | local routers), but the converse is not true. Not even the host can
|
---|
| 569 | access the guest, unless port forwarding is enabled. And in the case
|
---|
| 570 | several guests are running, they cannot communicate with each other.
|
---|
| 571 | Other network devices can be used for this purpose. For example, there
|
---|
| 572 | is the <quote>socket</quote> device, which allows several guests to
|
---|
| 573 | share a common virtual network. In the following, we describe in more
|
---|
| 574 | details how to set up the <quote>bridge</quote> device, which allows
|
---|
| 575 | the guests to appear as if connected to the local network. All the
|
---|
| 576 | commands below should be run as the <systemitem
|
---|
| 577 | class="username">root</systemitem> user.
|
---|
| 578 | </para>
|
---|
[0d7900a] | 579 |
|
---|
[b4c31a6] | 580 | <para revision="sysv">
|
---|
| 581 | Set up bridging with <xref linkend="bridgeutils"/>. Only the physical
|
---|
| 582 | interface(s) should be set up at boot. The virtual interface(s) will be
|
---|
| 583 | added as needed when qemu is started.
|
---|
| 584 | </para>
|
---|
| 585 |
|
---|
[47274444] | 586 | <para revision="systemd">
|
---|
| 587 | <!-- On SYS-V, IP_FORWARD is enabled by the bridge script. -->
|
---|
[b4c31a6] | 588 | Allow the host to forward IP packets:
|
---|
| 589 | </para>
|
---|
[d28198d3] | 590 |
|
---|
[b4c31a6] | 591 | <screen role="root"
|
---|
| 592 | revision="systemd"><userinput>sysctl -w net.ipv4.ip_forward=1</userinput></screen>
|
---|
[d28198d3] | 593 |
|
---|
[b4c31a6] | 594 | <para revision="systemd">
|
---|
| 595 | To make this permanent, add the command to
|
---|
| 596 | <filename>/etc/sysctl.d/60-net-forward.conf:</filename>
|
---|
| 597 | </para>
|
---|
[6e5e4d2] | 598 |
|
---|
[b4c31a6] | 599 | <screen role="root"
|
---|
| 600 | revision="systemd"><userinput>cat >> /etc/sysctl.d/60-net-forward.conf << EOF
|
---|
[51dfb3e] | 601 | <literal>net.ipv4.ip_forward=1</literal>
|
---|
[6e5e4d2] | 602 | EOF</userinput></screen>
|
---|
| 603 |
|
---|
[b4c31a6] | 604 | <para>
|
---|
| 605 | Set up a required configuration file:
|
---|
| 606 | </para>
|
---|
[670f775] | 607 |
|
---|
[3a87232] | 608 | <!-- /etc/qemu has not been installed by "make install" since version 2.4 -->
|
---|
| 609 | <screen role="root"><userinput>install -vdm 755 /etc/qemu &&
|
---|
| 610 | echo allow br0 > /etc/qemu/bridge.conf</userinput></screen>
|
---|
[670f775] | 611 |
|
---|
[b4c31a6] | 612 | <para>
|
---|
[1f1f2230] | 613 | In the qemu command line above, replace the switch
|
---|
| 614 | <parameter>-netdev user,...</parameter> with
|
---|
| 615 | <parameter>-netdev bridge,...</parameter>.
|
---|
[b4c31a6] | 616 | </para>
|
---|
[d28198d3] | 617 |
|
---|
| 618 | </sect2>
|
---|
| 619 |
|
---|
| 620 | <sect2 role="content">
|
---|
| 621 | <title>Contents</title>
|
---|
| 622 |
|
---|
| 623 | <segmentedlist>
|
---|
[9b13441] | 624 | <segtitle>Installed Programs</segtitle>
|
---|
| 625 | <segtitle>Installed Library</segtitle>
|
---|
[d28198d3] | 626 | <segtitle>Installed Directories</segtitle>
|
---|
| 627 |
|
---|
| 628 | <seglistitem>
|
---|
[9b13441] | 629 | <seg>
|
---|
[a541e080] | 630 | elf2dmp,
|
---|
[10f9bb45] | 631 | qemu (symlink),
|
---|
[a541e080] | 632 | qemu-edid,
|
---|
[9b13441] | 633 | qemu-ga,
|
---|
| 634 | qemu-img,
|
---|
| 635 | qemu-io,
|
---|
[a541e080] | 636 | qemu-keymap,
|
---|
[9b13441] | 637 | qemu-nbd,
|
---|
[a541e080] | 638 | qemu-pr-helper,
|
---|
| 639 | qemu-storage-daemon, and
|
---|
| 640 | qemu-system-<arch>
|
---|
[9b13441] | 641 | </seg>
|
---|
[b4c31a6] | 642 | <seg>None</seg>
|
---|
[9b13441] | 643 | <seg>
|
---|
[b4c31a6] | 644 | /usr/share/qemu and
|
---|
[a541e080] | 645 | /usr/share/doc/qemu-&qemu-version; (optional)
|
---|
[9b13441] | 646 | </seg>
|
---|
[d28198d3] | 647 | </seglistitem>
|
---|
| 648 | </segmentedlist>
|
---|
| 649 |
|
---|
| 650 | <variablelist>
|
---|
| 651 | <bridgehead renderas="sect3">Short Description</bridgehead>
|
---|
| 652 | <?dbfo list-presentation="list"?>
|
---|
| 653 | <?dbhtml list-presentation="table"?>
|
---|
| 654 |
|
---|
[a541e080] | 655 | <varlistentry id="elf2dmp">
|
---|
| 656 | <term><command>elf2dmp</command></term>
|
---|
| 657 | <listitem>
|
---|
| 658 | <para>
|
---|
| 659 | Converts files from elf to dmp format
|
---|
| 660 | </para>
|
---|
| 661 | <indexterm zone="qemu elf2dmp">
|
---|
| 662 | <primary sortas="b-elf2dmp">elf2dmp</primary>
|
---|
| 663 | </indexterm>
|
---|
| 664 | </listitem>
|
---|
| 665 | </varlistentry>
|
---|
| 666 | <!--
|
---|
[b4c31a6] | 667 | <varlistentry id="ivshmem-client">
|
---|
| 668 | <term><command>ivshmem-client</command></term>
|
---|
| 669 | <listitem>
|
---|
[47274444] | 670 | <para>
|
---|
[4c24eb0a] | 671 | is a standalone client for using the ivshmem device
|
---|
[47274444] | 672 | </para>
|
---|
[b4c31a6] | 673 | <indexterm zone="qemu ivshmem-client">
|
---|
| 674 | <primary sortas="b-ivshmem-client">ivshmem-client</primary>
|
---|
| 675 | </indexterm>
|
---|
| 676 | </listitem>
|
---|
| 677 | </varlistentry>
|
---|
| 678 |
|
---|
| 679 | <varlistentry id="ivshmem-server">
|
---|
| 680 | <term><command>ivshmem-server</command></term>
|
---|
| 681 | <listitem>
|
---|
[47274444] | 682 | <para>
|
---|
[4c24eb0a] | 683 | is an example server for the ivshmem device
|
---|
[47274444] | 684 | </para>
|
---|
[b4c31a6] | 685 | <indexterm zone="qemu ivshmem-server">
|
---|
| 686 | <primary sortas="b-ivshmem-server">ivshmem-server</primary>
|
---|
| 687 | </indexterm>
|
---|
| 688 | </listitem>
|
---|
| 689 | </varlistentry>
|
---|
[a541e080] | 690 | -->
|
---|
[f9865e2] | 691 | <varlistentry id="qemu-edid">
|
---|
| 692 | <term><command>qemu-edid</command></term>
|
---|
| 693 | <listitem>
|
---|
[47274444] | 694 | <para>
|
---|
[4c24eb0a] | 695 | is a test tool for the qemu EDID generator
|
---|
[47274444] | 696 | </para>
|
---|
[f9865e2] | 697 | <indexterm zone="qemu qemu-edid">
|
---|
| 698 | <primary sortas="b-qemu-edid">qemu-edid</primary>
|
---|
| 699 | </indexterm>
|
---|
| 700 | </listitem>
|
---|
| 701 | </varlistentry>
|
---|
| 702 |
|
---|
[d28198d3] | 703 | <varlistentry id="qemu-ga">
|
---|
| 704 | <term><command>qemu-ga</command></term>
|
---|
| 705 | <listitem>
|
---|
[47274444] | 706 | <para>
|
---|
| 707 | implements support for QMP (QEMU Monitor Protocol) commands and
|
---|
| 708 | events that terminate and originate respectively within the guest
|
---|
[4c24eb0a] | 709 | using an agent built as part of QEMU
|
---|
[47274444] | 710 | </para>
|
---|
[2f6053d] | 711 | <indexterm zone="qemu qemu-ga">
|
---|
[d28198d3] | 712 | <primary sortas="b-qemu-ga">qemu-ga</primary>
|
---|
| 713 | </indexterm>
|
---|
| 714 | </listitem>
|
---|
| 715 | </varlistentry>
|
---|
| 716 |
|
---|
| 717 | <varlistentry id="qemu-img">
|
---|
| 718 | <term><command>qemu-img</command></term>
|
---|
| 719 | <listitem>
|
---|
[47274444] | 720 | <para>
|
---|
[4c24eb0a] | 721 | provides commands to manage QEMU disk images
|
---|
[47274444] | 722 | </para>
|
---|
[2f6053d] | 723 | <indexterm zone="qemu qemu-img">
|
---|
[d28198d3] | 724 | <primary sortas="b-qemu-img">qemu-img</primary>
|
---|
| 725 | </indexterm>
|
---|
| 726 | </listitem>
|
---|
| 727 | </varlistentry>
|
---|
| 728 |
|
---|
| 729 | <varlistentry id="qemu-io">
|
---|
| 730 | <term><command>qemu-io</command></term>
|
---|
| 731 | <listitem>
|
---|
[47274444] | 732 | <para>
|
---|
| 733 | is a diagnostic and manipulation program for (virtual) memory
|
---|
[9d6565bf] | 734 | media. It is still at an early stage of development
|
---|
[47274444] | 735 | </para>
|
---|
[2f6053d] | 736 | <indexterm zone="qemu qemu-io">
|
---|
[d28198d3] | 737 | <primary sortas="b-qemu-io">qemu-io</primary>
|
---|
| 738 | </indexterm>
|
---|
| 739 | </listitem>
|
---|
| 740 | </varlistentry>
|
---|
| 741 |
|
---|
[a541e080] | 742 | <varlistentry id="qemu-keymap">
|
---|
| 743 | <term><command>qemu-keymap</command></term>
|
---|
| 744 | <listitem>
|
---|
| 745 | <para>
|
---|
| 746 | generates qemu reverse keymaps from xkb keymaps,
|
---|
| 747 | which can be used with the qemu "-k" command line switch
|
---|
| 748 | </para>
|
---|
| 749 | <indexterm zone="qemu qemu-keymap">
|
---|
| 750 | <primary sortas="b-qemu-keymap">qemu-keymap</primary>
|
---|
| 751 | </indexterm>
|
---|
| 752 | </listitem>
|
---|
| 753 | </varlistentry>
|
---|
| 754 |
|
---|
| 755 |
|
---|
[d28198d3] | 756 | <varlistentry id="qemu-nbd">
|
---|
| 757 | <term><command>qemu-nbd</command></term>
|
---|
| 758 | <listitem>
|
---|
[47274444] | 759 | <para>
|
---|
| 760 | exports Qemu disk images using the QEMU Disk Network Block
|
---|
[4c24eb0a] | 761 | Device (NBD) protocol
|
---|
[47274444] | 762 | </para>
|
---|
[2f6053d] | 763 | <indexterm zone="qemu qemu-nbd">
|
---|
[d28198d3] | 764 | <primary sortas="b-qemu-nbd">qemu-nbd</primary>
|
---|
| 765 | </indexterm>
|
---|
| 766 | </listitem>
|
---|
| 767 | </varlistentry>
|
---|
| 768 |
|
---|
[a541e080] | 769 | <varlistentry id="qemu-pr-helper">
|
---|
| 770 | <term><command>qemu-pr-helper</command></term>
|
---|
| 771 | <listitem>
|
---|
| 772 | <para>
|
---|
| 773 | Implements the persistent reservation helper for QEMU
|
---|
| 774 | </para>
|
---|
| 775 | <indexterm zone="qemu qemu-pr-helper">
|
---|
| 776 | <primary sortas="b-qemu-pr-helper">qemu-pr-helper</primary>
|
---|
| 777 | </indexterm>
|
---|
| 778 | </listitem>
|
---|
| 779 | </varlistentry>
|
---|
| 780 |
|
---|
| 781 | <varlistentry id="qemu-storage-daemon">
|
---|
| 782 | <term><command>qemu-storage-daemon</command></term>
|
---|
| 783 | <listitem>
|
---|
| 784 | <para>
|
---|
| 785 | allows to modify disk images using the QEMU Monitor Protocol (QMP)
|
---|
| 786 | without running a VM
|
---|
| 787 | </para>
|
---|
| 788 | <indexterm zone="qemu qemu-storage-daemon">
|
---|
| 789 | <primary sortas="b-qemu-storage-daemon">qemu-storage-daemon</primary>
|
---|
| 790 | </indexterm>
|
---|
| 791 | </listitem>
|
---|
| 792 | </varlistentry>
|
---|
| 793 |
|
---|
[d28198d3] | 794 | <varlistentry id="qemu-system">
|
---|
| 795 | <term><command>qemu-system-x86_64</command></term>
|
---|
| 796 | <listitem>
|
---|
[47274444] | 797 | <para>
|
---|
[4c24eb0a] | 798 | is the QEMU PC System emulator
|
---|
[47274444] | 799 | </para>
|
---|
[2f6053d] | 800 | <indexterm zone="qemu qemu-system">
|
---|
[d28198d3] | 801 | <primary sortas="b-qemu-system">qemu-system-x86_64</primary>
|
---|
| 802 | </indexterm>
|
---|
| 803 | </listitem>
|
---|
| 804 | </varlistentry>
|
---|
[a541e080] | 805 | <!--
|
---|
[72d90b67] | 806 | <varlistentry id="virtfs-proxy-helper">
|
---|
| 807 | <term><command>virtfs-proxy-helper</command></term>
|
---|
| 808 | <listitem>
|
---|
[47274444] | 809 | <para>
|
---|
[9d6565bf] | 810 | creates a socket pair or a named socket. QEMU and the proxy helper
|
---|
| 811 | communicate using this socket. The QEMU proxy fs driver sends
|
---|
| 812 | filesystem requests to the proxy helper and receives the response
|
---|
[4c24eb0a] | 813 | from it
|
---|
[47274444] | 814 | </para>
|
---|
[72d90b67] | 815 | <indexterm zone="qemu virtfs-proxy-helper">
|
---|
| 816 | <primary sortas="b-virtfs-proxy-helper">virtfs-proxy-helper</primary>
|
---|
| 817 | </indexterm>
|
---|
| 818 | </listitem>
|
---|
| 819 | </varlistentry>
|
---|
[a541e080] | 820 | -->
|
---|
[d28198d3] | 821 | </variablelist>
|
---|
| 822 |
|
---|
| 823 | </sect2>
|
---|
| 824 |
|
---|
| 825 | </sect1>
|
---|