Add empty optical drives to KVM guests

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9453 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2011-05-01 17:40:04 +00:00
parent 3ebf425b4c
commit 7a942ea926

View File

@ -404,6 +404,13 @@ sub build_diskstruct {
$cdhash->{readonly};
$cdhash->{target}->{dev}='hdc';
push @returns,$cdhash;
} else { #give the VM an empty optical drive, to allow chvm live attach/remove
my $cdhash;
$cdhash->{device}='cdrom';
$cdhash->{type}='block';
$cdhash->{readonly};
$cdhash->{target}->{dev}='hdc';
push @returns,$cdhash;
}