<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://linux-kvm.org/index.php?action=history&amp;feed=atom&amp;title=SPICE</id>
	<title>SPICE - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://linux-kvm.org/index.php?action=history&amp;feed=atom&amp;title=SPICE"/>
	<link rel="alternate" type="text/html" href="https://linux-kvm.org/index.php?title=SPICE&amp;action=history"/>
	<updated>2026-04-26T14:24:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.5</generator>
	<entry>
		<id>https://linux-kvm.org/index.php?title=SPICE&amp;diff=173583&amp;oldid=prev</id>
		<title>Ormaaj at 10:24, 26 December 2015</title>
		<link rel="alternate" type="text/html" href="https://linux-kvm.org/index.php?title=SPICE&amp;diff=173583&amp;oldid=prev"/>
		<updated>2015-12-26T10:24:59Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 06:24, 26 December 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l48&quot;&gt;Line 48:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 48:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;And we need a spicevmc chardev for that port: &amp;lt;code&amp;gt;-chardev spicevmc,id=spicechannel0,name=vdagent&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;And we need a spicevmc chardev for that port: &amp;lt;code&amp;gt;-chardev spicevmc,id=spicechannel0,name=vdagent&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It&amp;#039;s important that the virserialport &amp;lt;code&amp;gt;chardev=&amp;lt;/code&amp;gt; option matches the &amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;cdoe&lt;/del&gt;&amp;gt;id=&amp;lt;/code&amp;gt; given the chardev (&amp;lt;code&amp;gt;spicechannel0&amp;lt;/code&amp;gt; in this example).  It&amp;#039;s also important that the port&amp;#039;s &amp;lt;code&amp;gt;name=&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;com.redhat.spice.0&amp;lt;/code&amp;gt;, because that&amp;#039;s the namespace spice-vdagentd is looking for in the guest. And finally, you need to specify &amp;lt;code&amp;gt;name=vdagent&amp;lt;/code&amp;gt; so spice knows what this channel is for.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It&amp;#039;s important that the virserialport &amp;lt;code&amp;gt;chardev=&amp;lt;/code&amp;gt; option matches the &amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code&lt;/ins&gt;&amp;gt;id=&amp;lt;/code&amp;gt; given the chardev (&amp;lt;code&amp;gt;spicechannel0&amp;lt;/code&amp;gt; in this example).  It&amp;#039;s also important that the port&amp;#039;s &amp;lt;code&amp;gt;name=&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;com.redhat.spice.0&amp;lt;/code&amp;gt;, because that&amp;#039;s the namespace spice-vdagentd is looking for in the guest. And finally, you need to specify &amp;lt;code&amp;gt;name=vdagent&amp;lt;/code&amp;gt; so spice knows what this channel is for.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;So we launch the guest one last time with the complete command line:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;So we launch the guest one last time with the complete command line:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key kvmwiki-kvmwiki_:diff::1.12:old-4521:rev-173583 --&gt;
&lt;/table&gt;</summary>
		<author><name>Ormaaj</name></author>
	</entry>
	<entry>
		<id>https://linux-kvm.org/index.php?title=SPICE&amp;diff=4521&amp;oldid=prev</id>
		<title>Rwh: fix opening &lt;code&gt; tag</title>
		<link rel="alternate" type="text/html" href="https://linux-kvm.org/index.php?title=SPICE&amp;diff=4521&amp;oldid=prev"/>
		<updated>2012-04-04T15:49:50Z</updated>

		<summary type="html">&lt;p&gt;fix opening &amp;lt;code&amp;gt; tag&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:49, 4 April 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l8&quot;&gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Manually, using qemu-kvm command line directly ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Manually, using qemu-kvm command line directly ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The simplest part is adding the qxl graphics device to the guest.  By adding &amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;cdoe&lt;/del&gt;&amp;gt;-vga qxl&amp;lt;/code&amp;gt;:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The simplest part is adding the qxl graphics device to the guest.  By adding &amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code&lt;/ins&gt;&amp;gt;-vga qxl&amp;lt;/code&amp;gt;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  # /usr/bin/qemu-kvm -m 1024 -name f15 -drive file=/images/f15.img,if=virtio -vga qxl&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  # /usr/bin/qemu-kvm -m 1024 -name f15 -drive file=/images/f15.img,if=virtio -vga qxl&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key kvmwiki-kvmwiki_:diff::1.12:old-4016:rev-4521 --&gt;
&lt;/table&gt;</summary>
		<author><name>Rwh</name></author>
	</entry>
	<entry>
		<id>https://linux-kvm.org/index.php?title=SPICE&amp;diff=4016&amp;oldid=prev</id>
		<title>Chrisw at 00:23, 16 September 2011</title>
		<link rel="alternate" type="text/html" href="https://linux-kvm.org/index.php?title=SPICE&amp;diff=4016&amp;oldid=prev"/>
		<updated>2011-09-16T00:23:05Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:23, 15 September 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l52&quot;&gt;Line 52:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 52:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;So we launch the guest one last time with the complete command line:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;So we launch the guest one last time with the complete command line:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  # /usr/bin/qemu-kvm -m 1024 -name f15 -drive file=/images/f15&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-live&lt;/del&gt;.img,if=virtio -vga qxl -spice port=5900,addr=127.0.0.1,disable-ticketing -device virtio-serial-pci -device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 -chardev spicevmc,id=spicechannel0,name=vdagent&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  # /usr/bin/qemu-kvm -m 1024 -name f15 -drive file=/images/f15.img,if=virtio -vga qxl -spice port=5900,addr=127.0.0.1,disable-ticketing -device virtio-serial-pci -device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 -chardev spicevmc,id=spicechannel0,name=vdagent&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;And kick off a spice client:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;And kick off a spice client:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key kvmwiki-kvmwiki_:diff::1.12:old-4015:rev-4016 --&gt;
&lt;/table&gt;</summary>
		<author><name>Chrisw</name></author>
	</entry>
	<entry>
		<id>https://linux-kvm.org/index.php?title=SPICE&amp;diff=4015&amp;oldid=prev</id>
		<title>Chrisw at 00:22, 16 September 2011</title>
		<link rel="alternate" type="text/html" href="https://linux-kvm.org/index.php?title=SPICE&amp;diff=4015&amp;oldid=prev"/>
		<updated>2011-09-16T00:22:24Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:22, 15 September 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l52&quot;&gt;Line 52:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 52:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;So we launch the guest one last time with the complete command line:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;So we launch the guest one last time with the complete command line:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  # /usr/bin/qemu-kvm -m 1024 -name f15 -drive file=&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;/var/lib/libvirt&lt;/del&gt;/images/f15-live.img,if=virtio -vga qxl -spice port=5900,addr=127.0.0.1,disable-ticketing -device virtio-serial-pci -device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 -chardev spicevmc,id=spicechannel0,name=vdagent&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  # /usr/bin/qemu-kvm -m 1024 -name f15 -drive file=/images/f15-live.img,if=virtio -vga qxl -spice port=5900,addr=127.0.0.1,disable-ticketing -device virtio-serial-pci -device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 -chardev spicevmc,id=spicechannel0,name=vdagent&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;And kick off a spice client:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;And kick off a spice client:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key kvmwiki-kvmwiki_:diff::1.12:old-4009:rev-4015 --&gt;
&lt;/table&gt;</summary>
		<author><name>Chrisw</name></author>
	</entry>
	<entry>
		<id>https://linux-kvm.org/index.php?title=SPICE&amp;diff=4009&amp;oldid=prev</id>
		<title>Chrisw at 22:07, 15 September 2011</title>
		<link rel="alternate" type="text/html" href="https://linux-kvm.org/index.php?title=SPICE&amp;diff=4009&amp;oldid=prev"/>
		<updated>2011-09-15T22:07:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Example using SPICE and QXL for improved Graphics experience in the guest ==&lt;br /&gt;
&lt;br /&gt;
This example is based on qemu-kvm (0.15.0) as installed in Fedora 15.&lt;br /&gt;
Will first show how to do this manually, and second how to do it using the virt-manager tool.&lt;br /&gt;
&lt;br /&gt;
For extensive details on SPICE, visit http://spice-space.org&lt;br /&gt;
&lt;br /&gt;
== Manually, using qemu-kvm command line directly ==&lt;br /&gt;
&lt;br /&gt;
The simplest part is adding the qxl graphics device to the guest.  By adding &amp;lt;cdoe&amp;gt;-vga qxl&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
 # /usr/bin/qemu-kvm -m 1024 -name f15 -drive file=/images/f15.img,if=virtio -vga qxl&lt;br /&gt;
&lt;br /&gt;
You&amp;#039;ll see a normal SDL window pop up, and if you poke inside the guest you&amp;#039;ll find that X is using the qxl device to display:&lt;br /&gt;
&lt;br /&gt;
 $ lspci&lt;br /&gt;
 ...&lt;br /&gt;
 00:02.0 VGA compatible controller: Red Hat, Inc. Device 0100 (rev 03)&lt;br /&gt;
&lt;br /&gt;
 $ grep QXL /var/log/Xorg.0.log&lt;br /&gt;
 [    15.878] (II) qxl: Driver for QXL virtual graphics: QXL 1&lt;br /&gt;
 &lt;br /&gt;
However, this is not enough to use SPICE.  We need to enable the spice server in qemu-kvm.  We also need a client to view the guest.  So first be sure the client is installed:&lt;br /&gt;
&lt;br /&gt;
 # yum install spice-client&lt;br /&gt;
&lt;br /&gt;
To keep it simple, we&amp;#039;ll not require authentication and simply bind the server to 127.0.0.1 on port 5900.&lt;br /&gt;
&lt;br /&gt;
 # /usr/bin/qemu-kvm -m 1024 -name f15 -drive file=/images/f15.img,if=virtio -vga qxl  -spice port=5900,addr=127.0.0.1,disable-ticketing&lt;br /&gt;
&lt;br /&gt;
This will not pop up an SDL window, so launch the client to connect to the guest.&lt;br /&gt;
&lt;br /&gt;
 $ spicec -h 127.0.0.1 -p 5900&lt;br /&gt;
&lt;br /&gt;
We&amp;#039;re getting closer.  Now the only thing left is to improve the experience by&lt;br /&gt;
enabling the spice agent communication channel between the host and the guest (you wanted copy and paste between host and guest right? ;)&lt;br /&gt;
&lt;br /&gt;
This part is a bit arcane.  We need to add a virtio-serial device to the guest, and open a port for the spice vdagent.  We also need to install the spice vdagent in guest.  Be sure the agent is running (and for future, started automatically).&lt;br /&gt;
&lt;br /&gt;
First the guest side, since the guest is running.&lt;br /&gt;
&lt;br /&gt;
 # yum install spice-vdagent&lt;br /&gt;
 # chkconfig --add spice-vdagentd&lt;br /&gt;
&lt;br /&gt;
Now stop the guest and we&amp;#039;ll build up the hostside qemu-kvm commandline.&lt;br /&gt;
We need to add the virtio-serial device: &amp;lt;code&amp;gt;-device virtio-serial-pci&amp;lt;/code&amp;gt;&lt;br /&gt;
We need to add a port for spice in that device: &amp;lt;code&amp;gt;-device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0&amp;lt;/code&amp;gt;&lt;br /&gt;
And we need a spicevmc chardev for that port: &amp;lt;code&amp;gt;-chardev spicevmc,id=spicechannel0,name=vdagent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It&amp;#039;s important that the virserialport &amp;lt;code&amp;gt;chardev=&amp;lt;/code&amp;gt; option matches the &amp;lt;cdoe&amp;gt;id=&amp;lt;/code&amp;gt; given the chardev (&amp;lt;code&amp;gt;spicechannel0&amp;lt;/code&amp;gt; in this example).  It&amp;#039;s also important that the port&amp;#039;s &amp;lt;code&amp;gt;name=&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;com.redhat.spice.0&amp;lt;/code&amp;gt;, because that&amp;#039;s the namespace spice-vdagentd is looking for in the guest. And finally, you need to specify &amp;lt;code&amp;gt;name=vdagent&amp;lt;/code&amp;gt; so spice knows what this channel is for.&lt;br /&gt;
&lt;br /&gt;
So we launch the guest one last time with the complete command line:&lt;br /&gt;
&lt;br /&gt;
 # /usr/bin/qemu-kvm -m 1024 -name f15 -drive file=/var/lib/libvirt/images/f15-live.img,if=virtio -vga qxl -spice port=5900,addr=127.0.0.1,disable-ticketing -device virtio-serial-pci -device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 -chardev spicevmc,id=spicechannel0,name=vdagent&lt;br /&gt;
&lt;br /&gt;
And kick off a spice client:&lt;br /&gt;
&lt;br /&gt;
 $ spicec -h 127.0.0.1 -p 5900&lt;br /&gt;
&lt;br /&gt;
Now you can login to the guest, and you&amp;#039;ll still see the qxl display device.  In addition, you&amp;#039;ll see the virtio-serial port:&lt;br /&gt;
&lt;br /&gt;
 $ ls /dev/virtio-ports/&lt;br /&gt;
 com.redhat.spice.0&lt;br /&gt;
&lt;br /&gt;
Now test it out.  Grab some text and copy it to the clipboard in the guest.&lt;br /&gt;
(In gnome-terminal it&amp;#039;s Shift-Ctrl-C to copy).  And paste it in the host (again, Shift-Ctrl-V to paste in gnome-terminal).&lt;br /&gt;
&lt;br /&gt;
== Enabling SPICE using virt-manager ==&lt;br /&gt;
&lt;br /&gt;
This assumes you&amp;#039;ve already installed a guest with virt-manager or virt-install and it&amp;#039;s shut off.&lt;br /&gt;
&lt;br /&gt;
Start virt-manager, and open your VM by double clicking on it.  Click the virtual hardware details (lightbulb).&lt;br /&gt;
&lt;br /&gt;
First we need to make the Video card a qxl device.  Click on Video, and in the Model pulldown, choose, qxl.  And Apply.&lt;br /&gt;
&lt;br /&gt;
[[Image:Screenshot-video-qxl.png]]&lt;br /&gt;
&lt;br /&gt;
Next we need to change the display from VNC to Spice.  Click on Display VNC, and in the Type pulldown, choose Spice.  And Apply.  You&amp;#039;ll be prompted to add the Spice agent channels, click Yes. (notice the additional Controller Virtio Serial too).&lt;br /&gt;
&lt;br /&gt;
[[Image:Screenshot-display-Spice.png]]&lt;br /&gt;
&lt;br /&gt;
Now start the VM.  virt-manager has a spice-gtk client built-in.  So you don&amp;#039;t need to fuss with a manual spice client like you did above.  You still need to be sure that the guest has spice-vdagent installed and running.  In the guest:&lt;br /&gt;
&lt;br /&gt;
 # yum install spice-vdagent&lt;br /&gt;
 # chkconfig --add spice-vdagentd&lt;br /&gt;
 # service start spice-vdagentd&lt;br /&gt;
 ... log out of X, and log back in, verify agent is running...&lt;br /&gt;
 $ ps -ef | grep vdagent&lt;br /&gt;
 root      1653     1  0 14:54 ?        00:00:00 /usr/sbin/spice-vdagentd&lt;br /&gt;
 gdm       1703     1  0 14:54 ?        00:00:00 /usr/bin/spice-vdagent&lt;br /&gt;
 chrisw    1932     1  0 14:55 ?        00:00:00 /usr/bin/spice-vdagent&lt;br /&gt;
&lt;br /&gt;
And you&amp;#039;re done.  Test copy and paste and enjoy.&lt;/div&gt;</summary>
		<author><name>Chrisw</name></author>
	</entry>
</feed>