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}}];