fix bug 4533 PMR: kvm vm can't be powered on when vmstoragemodel=virtio
This commit is contained in:
parent
7ebafe4ade
commit
26d4494c92
@ -549,9 +549,11 @@ sub build_diskstruct {
|
||||
}
|
||||
}
|
||||
my $cdprefix='hd';
|
||||
if ($storagemodel eq 'virtio') {
|
||||
$cdprefix='vd';
|
||||
} elsif ($storagemodel eq 'scsi') {
|
||||
# device name vd* doesn't work for CDROM, so delete it.
|
||||
#if ($storagemodel eq 'virtio') {
|
||||
# $cdprefix='vd';
|
||||
#} els
|
||||
if ($storagemodel eq 'scsi') {
|
||||
$cdprefix='sd';
|
||||
}
|
||||
$suffidx += 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user