summaryrefslogtreecommitdiff
path: root/books/docbook/chunks/ch03s02.html
blob: 93c7b458a3febba855519ff3e04c8a7da01db155 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<html><head>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
   <title>Launching qemu</title><meta name="generator" content="DocBook XSL-NS Stylesheets V1.76.1"><link rel="home" href="index.html" title="Spice User Manual"><link rel="up" href="ch03.html" title="Chapter&nbsp;3.&nbsp;Spice basics"><link rel="prev" href="ch03.html" title="Chapter&nbsp;3.&nbsp;Spice basics"><link rel="next" href="ch04.html" title="Chapter&nbsp;4.&nbsp;References"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Launching qemu</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch03.html">Prev</a>&nbsp;</td><th width="60%" align="center">Chapter&nbsp;3.&nbsp;Spice basics</th><td width="20%" align="right">&nbsp;<a accesskey="n" href="ch04.html">Next</a></td></tr></table><hr></div><div class="section" title="Launching qemu"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="qemu_basics"></a>Launching qemu</h2></div></div></div><p>I'll use qemu-kvm as a name for the executable. If you're using manually built qemu or
            qemu without kvm then just replace qemu-kvm with your own binary. I'll use host# client#
            guest# shell prompt notation to distinguish wherever should be the command executed. See
            section <a class="link" href="definitions" target="_top">Basic Definitions</a> to be sure that you know
            difference between the host, client and guest. You can ignore notation If guest, client
            and host are on the same machine.</p><p>
            <span class="bold"><strong>First important thing to do is to create a guest
                image.</strong></span> You can use any raw device like clean logical volume, or iSCSI
            lun. You may also use file as image for guest. I'll use file created by qemu-img as a demonstration.
        </p><p>
            Following command will allocate 10GB file. See qemu-img manpage for further information.
        </p><pre class="screen">host# qemu-img create /path/to/xp.img 10G</pre><p>
            So we already have image created and shall now start with image popullation. I assume that you have
            locally stored ISO of your favourite operating system so you can use it for installation.
        </p><pre class="screen">host# sudo qemu-kvm -boot order=dc -vga qxl -spice port=3001,disable-ticketing -soundhw ac97 \
        -cdrom /path/to/your.iso /path/to/your.img</pre><p>
            Let's take  just briefly look trough used qemu options. Option -boot order=dc specifies that guest system
            should try to boot from first cdrom and then fallback to first disk, -vga qxl specifies that qemu should
            emulate qxl device adapter. 
        </p><p>
            There will be no running <a class="link" href="SpiceUserManual-Introduction.xml#vdagent" target="_top">agent</a> 
            on the <a class="link" href="guest" target="_top">guest</a> system so we don't have to emulate virtio device yet.
        </p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch03.html">Prev</a>&nbsp;</td><td width="20%" align="center"><a accesskey="u" href="ch03.html">Up</a></td><td width="40%" align="right">&nbsp;<a accesskey="n" href="ch04.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter&nbsp;3.&nbsp;Spice basics&nbsp;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&nbsp;Chapter&nbsp;4.&nbsp;References</td></tr></table></div></body></html>