diff --git a/xCAT-server/lib/xcat/plugins/kvm.pm b/xCAT-server/lib/xcat/plugins/kvm.pm index 384d63b47..04a95cf0a 100644 --- a/xCAT-server/lib/xcat/plugins/kvm.pm +++ b/xCAT-server/lib/xcat/plugins/kvm.pm @@ -326,7 +326,13 @@ sub get_filepath_by_url { #at the end of the day, the libvirt storage api gives # 4) qemu-img was so much more transparent and easy to figure out than this # additionally, when mastering a powered down node, we should rebase the node to be a cow clone of the master it just spawned } else { - my $vol = $poolobj->create_volume("".$desiredname."".getUnits($create,"G",1)."1"); + my $vol; + if ($format eq 'raw') { #skip allocation specification for now + #currently, LV can have reduced allocation, but *cannot* grow..... + $vol = $poolobj->create_volume("".$desiredname."".getUnits($create,"G",1).""); + } else { + $vol = $poolobj->create_volume("".$desiredname."".getUnits($create,"G",1)."0"); + } if ($vol) { return $vol->get_path(); } } } else {