Permalink
Browse files

Azure: switch back to qemu 2.2.0 for generating image. Seems to work …

…best.

(cherry picked from commit 2da8a5d)
  • Loading branch information...
1 parent eff0752 commit af3732b6c6adb11f45cc9d72c3ddf33fd51c47e0 @rbvermaa rbvermaa committed Feb 13, 2017
Showing with 2 additions and 2 deletions.
  1. +2 −2 nixos/modules/virtualisation/azure-image.nix
@@ -16,14 +16,14 @@ in
cyl=$(((${diskSize}*1024*1024)/(512*63*255)))
size=$(($cyl*255*63*512))
roundedsize=$((($size/(1024*1024)+1)*(1024*1024)))
- ${pkgs.vmTools.qemu}/bin/qemu-img create -f raw $diskImage $roundedsize
+ ${pkgs.vmTools.qemu-220}/bin/qemu-img create -f raw $diskImage $roundedsize
mv closure xchg/
'';
postVM =
''
mkdir -p $out
- ${pkgs.qemu}/bin/qemu-img convert -f raw -o force_size -O vpc $diskImage $out/disk.vhd
+ ${pkgs.vmTools.qemu-220}/bin/qemu-img convert -f raw -o subformat=fixed -O vpc $diskImage $out/disk.vhd
rm $diskImage
'';
diskImageBase = "nixos-image-${config.system.nixosLabel}-${pkgs.stdenv.system}.raw";

0 comments on commit af3732b

Please sign in to comment.