mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-17 20:00:19 +00:00
fix bug 4533 PMR: kvm vm can't be powered on when vmstoragemodel=virtio
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user