mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-26 06:50:09 +03:00
feature #1045: Support for spice type in KVM driver
This commit is contained in:
parent
f645213add
commit
53d26da631
@ -530,9 +530,17 @@ int LibVirtDriver::deployment_description_kvm(
|
||||
passwd = graphics->vector_value("PASSWD");
|
||||
keymap = graphics->vector_value("KEYMAP");
|
||||
|
||||
if ( type == "vnc" || type == "VNC" )
|
||||
if (type.empty() != false)
|
||||
{
|
||||
file << "\t\t<graphics type='vnc'";
|
||||
transform(type.begin(),
|
||||
type.end(),
|
||||
type.begin(),
|
||||
(int(*)(int))tolower);
|
||||
}
|
||||
|
||||
if ( type == "vnc" || type == "spice" )
|
||||
{
|
||||
file << "\t\t<graphics type='" << type << "'";
|
||||
|
||||
if ( !listen.empty() )
|
||||
{
|
||||
@ -559,7 +567,7 @@ int LibVirtDriver::deployment_description_kvm(
|
||||
else
|
||||
{
|
||||
vm->log("VMM", Log::WARNING,
|
||||
"Not supported graphics type, ignored.");
|
||||
"Graphics not supported or undefined, ignored.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user