feature #2485: add extra spice options to KVM

This commit is contained in:
Javi Fontan committed 2014-02-10 16:56:04 +01:00
1 parent f9c6ac386e
commit e95fa8fb7e
2 files changed
+28 -4

No files matched your search

+15 -4
View File
@@ -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
{
+13
View File
@@ -40,3 +40,16 @@ DISK = [ driver = "raw" , cache = "none"]
#RAW = [ type = "kvm", data = "<devices><serial type=\"pty\"><source path=\"/dev/pts/5\"/><target port=\"0\"/></serial><console type=\"pty\" tty=\"/dev/pts/5\"><source path=\"/dev/pts/5\"/><target port=\"0\"/></console></devices>" ]
HYPERV_OPTIONS="<relaxed state='on'/><vapic state='on'/><spinlocks state='on' retries='4096'/>"
SPICE_OPTIONS="
<video>
<model type='qxl' heads='1'/>
</video>
<sound model='ich6' />
<channel type='spicevmc'>
<target type='virtio' name='com.redhat.spice.0'/>
</channel>
<redirdev bus='usb' type='spicevmc'/>
<redirdev bus='usb' type='spicevmc'/>
<redirdev bus='usb' type='spicevmc'/>"