diff --git a/src/vmm/LibVirtDriverKVM.cc b/src/vmm/LibVirtDriverKVM.cc index 587462147c..d3821d180d 100644 --- a/src/vmm/LibVirtDriverKVM.cc +++ b/src/vmm/LibVirtDriverKVM.cc @@ -86,10 +86,11 @@ int LibVirtDriver::deployment_description_kvm( const VectorAttribute * graphics; - string listen = ""; - string port = ""; - string passwd = ""; - string keymap = ""; + string listen = ""; + string port = ""; + string passwd = ""; + string keymap = ""; + string spice_options = ""; const VectorAttribute * input; @@ -686,6 +687,16 @@ int LibVirtDriver::deployment_description_kvm( } file << "/>" << endl; + + if ( type == "spice" ) + { + get_default("SPICE_OPTIONS", spice_options); + + if ( spice_options != "" ) + { + file << "\t\t" << spice_options << endl; + } + } } else { diff --git a/src/vmm_mad/exec/vmm_exec_kvm.conf b/src/vmm_mad/exec/vmm_exec_kvm.conf index 1a6f4e9e3c..8e068e40f7 100644 --- a/src/vmm_mad/exec/vmm_exec_kvm.conf +++ b/src/vmm_mad/exec/vmm_exec_kvm.conf @@ -40,3 +40,16 @@ DISK = [ driver = "raw" , cache = "none"] #RAW = [ type = "kvm", data = "" ] HYPERV_OPTIONS="" + +SPICE_OPTIONS=" + + + + + + + + " +