patch-XenDriver-4.12.1.cc

Rolandas Naujikas, 04/21/2015 09:02 AM

Download (1.04 KB)

 
1
--- opennebula-4.12.1/src/vmm/XenDriver.cc.orig        2015-04-06 21:22:34.000000000 +0300
2
+++ opennebula-4.12.1/src/vmm/XenDriver.cc        2015-04-21 11:45:31.000000000 +0300
3
@@ -581,6 +581,29 @@
4
                     file <<"']" << endl;
5
                 }
6
             }
7
+            else if ( is_hvm && (type == "spice" || type == "SPICE") )
8
+            {
9
+                file << "spice = '1'" << endl;
10
+
11
+                if ( !listen.empty() )
12
+                {
13
+                    file << "spicehost = '" << listen << "'" << endl;
14
+                }
15
+
16
+                if ( !port.empty() )
17
+                {
18
+                    file << "spiceport = '" << port << "'" << endl;
19
+                }
20
+
21
+                if ( !passwd.empty() )
22
+                {
23
+                    file << "spicepasswd = '" << passwd << "'" << endl;
24
+                }
25
+                else
26
+                {
27
+                    file << "spicedisable_ticketing = '1'" << endl;
28
+                }
29
+            }
30
             else
31
             {
32
                 vm->log("VMM", Log::WARNING,