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:
parent
3ebf425b4c
commit
7a942ea926
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user