fix bug 4533 PMR: kvm vm can't be powered on when vmstoragemodel=virtio

This commit is contained in:
ertaozh 2015-01-23 03:28:46 -05:00
parent 7ebafe4ade
commit 26d4494c92

View File

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