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
This commit is contained in:
jbjohnso 2013-05-31 18:47:53 +00:00
parent a11e9f3242
commit bbfe35a452

View File

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