From 6a7b71378ed2942b3c726f8bad12eaf23f40415a Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 30 Jan 2012 22:10:23 +0000 Subject: [PATCH] Update kvm plugin to handle issues with later spice protocol and video ram git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11438 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/kvm.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/kvm.pm b/xCAT-server/lib/xcat/plugins/kvm.pm index 989d912d2..574ea7e5e 100644 --- a/xCAT-server/lib/xcat/plugins/kvm.pm +++ b/xCAT-server/lib/xcat/plugins/kvm.pm @@ -642,7 +642,8 @@ sub build_xmldesc { if (defined ($confdata->{vm}->{$node}->[0]->{vidmodel})) { my $model = $confdata->{vm}->{$node}->[0]->{vidmodel}; my $vram = '8192'; - $xtree{devices}->{video}= [ { 'content'=>'','model'=> {type=>$model,vram=>8192}}]; + if ($model eq 'qxl') { $vram = 65536; } #surprise, spice blows up with less vram than this after version 0.6 and up + $xtree{devices}->{video}= [ { 'content'=>'','model'=> {type=>$model,vram=>$vram}}]; } else { $xtree{devices}->{video}= [ { 'content'=>'','model'=> {type=>'vga',vram=>8192}}]; }