[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [OSSTEST PATCH] TestSupport: use qemu-img to create vhd image
We would like to delete blktap2 from xen.git at some point, but vhd-util is part of blktap2. Let's switch to use qemu-img to create vhd image to remove the dependency on blktap2 in osstest. Note that vhd format is named "vpc" in qemu-img. Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> --- Osstest/TestSupport.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index 7eb7bc4..3da36da 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -1750,7 +1750,8 @@ sub prepareguest_part_lvmdisk ($$$) { sub make_vhd ($$$) { my ($ho, $gho, $disk_mb) = @_; - target_cmd_root($ho, "vhd-util create -n $gho->{Rootimg} -s $disk_mb"); + my disk_mb_s = sprintf("%dM", $disk_mb); + target_cmd_root($ho, "qemu-img create -f vpc $gho->{Rootimg} $disk_mb_s"); } sub make_qcow2 ($$$) { my ($ho, $gho, $disk_mb) = @_; -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |