1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

feature #2248: add --spice parameter to onevm/onetemplate create

This commit is contained in:
Javi Fontan 2013-08-20 17:03:09 +02:00
parent 4c67a68b0a
commit 28918af2a3

View File

@ -186,6 +186,11 @@ EOT
:large => '--vnc',
:description => 'Add VNC server to the VM'
},
{
:name => 'spice',
:large => '--spice',
:description => 'Add spice server to the VM'
},
{
:name => 'ssh',
:large => '--ssh [file]',
@ -816,6 +821,10 @@ EOT
template<<'GRAPHICS=[ TYPE="vnc", LISTEN="0.0.0.0" ]'<<"\n"
end
if options[:spice]
template<<'GRAPHICS=[ TYPE="spice", LISTEN="0.0.0.0" ]'<<"\n"
end
context=create_context(options)
template<<context if context