diff --git a/src/vmm/XenDriver.cc b/src/vmm/XenDriver.cc index f4e8cd3ee6..1d51cfc1a6 100644 --- a/src/vmm/XenDriver.cc +++ b/src/vmm/XenDriver.cc @@ -581,6 +581,29 @@ int XenDriver::deployment_description( file <<"']" << endl; } } + else if ( is_hvm && (type == "spice" || type == "SPICE") ) + { + file << "spice = '1'" << endl; + + if ( !listen.empty() ) + { + file << "spicehost = '" << listen << "'" << endl; + } + + if ( !port.empty() ) + { + file << "spiceport = '" << port << "'" << endl; + } + + if ( !passwd.empty() ) + { + file << "spicepasswd = '" << passwd << "'" << endl; + } + else + { + file << "spicedisable_ticketing = '1'" << endl; + } + } else { vm->log("VMM", Log::WARNING,