From bbfe35a452888241ba5499e09b14ae00bf12f205 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 31 May 2013 18:47:53 +0000 Subject: [PATCH] Serial console and vdagent support git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16507 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/kvm.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/kvm.pm b/xCAT-server/lib/xcat/plugins/kvm.pm index cd24eac13..26ef07969 100644 --- a/xCAT-server/lib/xcat/plugins/kvm.pm +++ b/xCAT-server/lib/xcat/plugins/kvm.pm @@ -441,6 +441,7 @@ sub reconfigvm { sub build_oshash { my %rethash; $rethash{type}->{content}='hvm'; + $rethash{bios}->{useserial}='yes'; if (defined $confdata->{vm}->{$node}->[0]->{bootorder}) { my $bootorder = $confdata->{vm}->{$node}->[0]->{bootorder}; my @bootdevs = split(/[:,]/,$bootorder); @@ -694,7 +695,11 @@ sub build_xmldesc { if (defined ($confdata->{vm}->{$node}->[0]->{vidmodel})) { my $model = $confdata->{vm}->{$node}->[0]->{vidmodel}; my $vram = '8192'; - if ($model eq 'qxl') { $vram = 65536; } #surprise, spice blows up with less vram than this after version 0.6 and up + if ($model eq 'qxl') { + $xtree{devices}->{channel}->{type}='spicevmc'; + $xtree{devices}->{channel}->{target}->{type}='virtio'; + $xtree{devices}->{channel}->{target}->{name}='com.redhat.spice.0'; + $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}}];