diff --git a/xCAT-server/lib/xcat/plugins/kvm.pm b/xCAT-server/lib/xcat/plugins/kvm.pm index 84e4b1faf..cc40295b1 100644 --- a/xCAT-server/lib/xcat/plugins/kvm.pm +++ b/xCAT-server/lib/xcat/plugins/kvm.pm @@ -269,6 +269,9 @@ sub get_filepath_by_url { #at the end of the day, the libvirt storage api gives my $create = $args{create}; my $force = $args{force}; my $format = $args{format}; + if ($url =~ /^lvm:/) { + $format = 'raw'; + } unless ($format) { $format = 'qcow2'; } @@ -1610,7 +1613,7 @@ sub chvm { } elsif ($suffix =~ /vd/) { $bus='virtio'; } - my $xml = ""; + my $xml = ""; if ($currstate eq 'on') { #attempt live attach eval { $dom->attach_device($xml);