<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://linux-kvm.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Pim</id>
	<title>KVM - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://linux-kvm.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Pim"/>
	<link rel="alternate" type="text/html" href="https://linux-kvm.org/page/Special:Contributions/Pim"/>
	<updated>2026-05-02T10:21:12Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.5</generator>
	<entry>
		<id>https://linux-kvm.org/index.php?title=HOWTO_VMGL&amp;diff=3467</id>
		<title>HOWTO VMGL</title>
		<link rel="alternate" type="text/html" href="https://linux-kvm.org/index.php?title=HOWTO_VMGL&amp;diff=3467"/>
		<updated>2011-01-12T09:39:59Z</updated>

		<summary type="html">&lt;p&gt;Pim: vmgl homepage moved&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= VMGL =&lt;br /&gt;
Most of these steps are covered in the README file in the vmgl tar ball&lt;br /&gt;
&lt;br /&gt;
Download VMGL from [http://sysweb.cs.toronto.edu/vmgl here]&lt;br /&gt;
&lt;br /&gt;
install libXaw, libXext, libjpeg, libXmu devel files for your distro. &#039;&#039;&#039;Warning:&#039;&#039;&#039; compile problems from missing libraries do not stop the Makefile and so keep an eye of out for them as the compile flies by.&lt;br /&gt;
&lt;br /&gt;
On 64-bit, I had to download and patch tightvnc with the patches provided in &#039;&#039;extra/patches/Xvnc.patch&#039;&#039; and &#039;&#039;extra/patches/vncviewer.patch&#039;&#039; as the provided code would not compile.  Everything went smoothly on 32-bit (Ubuntu).&lt;br /&gt;
&lt;br /&gt;
The vmglext module for Xorg is not compiled, but comes as a 32-bit binary in the download.  This will not work for 64-bit unless you patch Xorg.&lt;br /&gt;
&lt;br /&gt;
On the host, run &#039;&#039;&#039;make&#039;&#039;&#039; and &#039;&#039;&#039;make install-host&#039;&#039;&#039;, on the guest run &#039;&#039;&#039;make&#039;&#039;&#039; and &#039;&#039;&#039;make install-guest&#039;&#039;&#039;.  Requires sudo to install (if in a system path) and to change ldconfig to look for VMGL loadable modules.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Warning: Usermode network stack cripples performance, use Tap for now.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Using VNC ==&lt;br /&gt;
add&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;Module&amp;quot;&lt;br /&gt;
     Load &amp;quot;vmglext&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
to your &#039;&#039;/etc/X11/xorg.conf&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once you start kvm with the -vnc option, point your &#039;&#039;patched&#039;&#039; vncviewer to the appropriate display.&lt;br /&gt;
&lt;br /&gt;
When you start vncviewer you will see something in the output like this: &#039;&#039;Set GLSTUB var in guest to point to port 7001&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you don&#039;t see the above message (or vncviewer fails to start) you are probably using an unpatched vncviewer.&lt;br /&gt;
&lt;br /&gt;
In the guest then run: &#039;&#039;export GLSTUB=&amp;lt;host ip&amp;gt;:7001&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
As a test, running glxinfo and glxgears should work.  The output of glxinfo should refer to the fact that it is using VMGL. If you seen an error like this &#039;&#039;CR Error(3458): Need to know glStub environment variable&#039;&#039;, then you haven&#039;t set your GLSTUB environment variable properly.&lt;br /&gt;
&lt;br /&gt;
== Using X forwarding ==&lt;br /&gt;
Login in to the guest from the host with ssh using either the -X or -Y options to allow X forwarding. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;On the guest:&#039;&#039;&#039; run the &#039;&#039;stub-daemon&#039;&#039; program and then look in the file &#039;&#039;~/.stub-daemon&#039;&#039; to find out what to set your GLSTUB environment variable to. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;On the host:&#039;&#039;&#039; Set the GLSTUB variable appropriately and then run glxinfo or glxgears to test. See the VNC section above if you encounter errors.&lt;br /&gt;
&lt;br /&gt;
== Using SDL ==&lt;br /&gt;
&lt;br /&gt;
Currently, the QEMU/KVM standard SDL viewer does not work with VMGL.&lt;/div&gt;</summary>
		<author><name>Pim</name></author>
	</entry>
</feed>