[et-mgmt-tools] [PATCH 2/2] Virt-viewer browser plugin

Richard W.M. Jones rjones at redhat.com
Fri Jan 25 16:22:21 UTC 2008


This adds a virt-viewer browser plugin which works on Firefox / Mozilla 
and probably other NPAPI-based browsers on Unix-like systems.

The plugin is placed in the plugin/ subdirectory.

Libtool is required (since the plugin is a shared library).

The plugin is disabled by default.  To enable it you have to do 
'./configure --enable-plugin'.

To use the plugin, place code such as this in a web page:

   <embed type="application/x-virt-viewer"
     width="800"
     height="600"
     uri="qemu:///system"
     name="1">
   </embed>

The width & height are required, and should be at least as large as the 
virtual machine's console.  (Because Gecko + Gtk plugins are really 
buggy we are unable to place scrollbars or a menubar around the VNC widget).

'uri' (libvirt URI) and 'name' (domain name/ID/UUID) are required.

Optionally you can also have waitvnc="1" and direct="1" which have the 
same effect as the equivalent virt-viewer command line options.

Screenshot: http://annexia.org/tmp/Screenshot-SeaMonkey.png

Known bugs, at least 4 at the moment:

(1) There's a strange race condition where Gecko renders the plugin 
before rendering the surrounding page.  This results in a segfault 
because the browser sends uninitialized private data to the plugin.

(2) The plugin cannot grab the mouse, so mouse handling is erratic.

(3) Virt-viewer menubar doesn't render correctly, so in this version it 
is disabled.  Appears to be a general problem with Gecko + Gtk.

(4) There are various rendering artifacts on framebuffer updates, but 
they only affect movement/animation, eg. dragging windows.  When the 
animation has finished the rendering artifacts disappear.

Rich.

-- 
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in
England and Wales under Company Registration No. 03798903
-------------- next part --------------
A non-text attachment was scrubbed...
Name: virt-viewer-2.patch
Type: text/x-patch
Size: 39807 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/et-mgmt-tools/attachments/20080125/64b9e9a3/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/et-mgmt-tools/attachments/20080125/64b9e9a3/attachment-0001.bin>


More information about the et-mgmt-tools mailing list