[one-users] SPICE support

Daniel Dehennin daniel.dehennin at baby-gnu.org
Thu Feb 6 13:05:56 PST 2014


Javier Fontan <jfontan at opennebula.org> writes:

> Hi,

Hello,

[...]

> The proposed solution is adding an special raw parameter that is
> automatically added when SPICE is selected. Another option is having a
> predefined set of options that can be configured like the number of
> USBs or the sound card model.
>
> I am not used to SPICE and can not set the parameters more used nor
> understand values like the channel name (is it always the same?).
>
> Could you help me selecting which parameters should we add? Do you
> prefer a RAW like value where to add anything you want?

To use it, I would like to make a selection in some predefined items.

1. select SPICE graphics, this display a list of predefined items

2. checkbox “enable vdagent support”, if selected: display the channel
   name with a default to “com.redhat.spice.0” which seems to be the
   default, at leat on Debian[1]

3. checkbox “enable guest agent”, if selected, the target name must be
   “org.qemu.guest_agent.0” to communicate with guest agent[2]

4. checkbox “enable USB ports”, if selected: ask the number of ports

5. checkbox “enable sound”, if selected: list card models, with a
   default selected

For the UI, I'm not sure about the fixed list of checkboxes, maybe some
kind of list to select items to enable which add a bloc in the
wizard:

1. select SPICE graphics

2. display a list: “Enable <list of items>”

3. user select one item in the list, for example “vdagent support”

4. a bloc is added in the wizard:
   * with the title “vdagent support (X)”, the (X) represent a “remove
     this items”
   * with an input field labeled “channel name:” and a default value of
     “com.redhat.spice.0”

5. the “vdagent support” is removed from the selection list to avoid
   adding several times the same item

Then, we could be mad and imagine some kind of “RAW wizard creator”, to
let users define their own RAW templates:

- define a type: “KVM”

- define label: “enable USB ports”

- checkbox “require user input”, if selected, for each input
  * define id: “usb_port_numbers”
  * define label: “number of port”
  * define type: “integer”
  * define default: “3”

- define a RAW template (as Jinja template since I don't know ruby ones):
    <devices>
       {% for port in usb_port_numbers %}
        <redirdev bus='usb' type='spicevmc'/>
       {% endfor %}
    </devices>  

But I'm getting off-topic of the thread ;-)

Regards.

Footnotes: 
[1]  http://anonscm.debian.org/gitweb/?p=collab-maint/spice-vdagent.git;a=blob;f=debian/spice-vdagent.init#l28

[2]  http://libvirt.org/formatdomain.html#elementCharChannel

-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x7A6FE2DF
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 229 bytes
Desc: not available
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140206/bdbf4827/attachment-0002.pgp>


More information about the Users mailing list