From 26d4494c92f51f14e33b0945b641ebe11ea2eece Mon Sep 17 00:00:00 2001 From: ertaozh Date: Fri, 23 Jan 2015 03:28:46 -0500 Subject: [PATCH] fix bug 4533 PMR: kvm vm can't be powered on when vmstoragemodel=virtio --- xCAT-server/lib/xcat/plugins/kvm.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/kvm.pm b/xCAT-server/lib/xcat/plugins/kvm.pm index 1f1e8694e..2e010fe84 100755 --- a/xCAT-server/lib/xcat/plugins/kvm.pm +++ b/xCAT-server/lib/xcat/plugins/kvm.pm @@ -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;