If automating you probably want to replace -p with -q (quiet instead of progress).Convert the image: bash -c "qemu-img convert -p -f qcow2 -O vhdx focal-server-cloudimg-amd64.img focal-server-cloudimg-amd64.vhdx".Assuming Debian/Ubuntu WSL/WSL2, from a windows command prompt (Powershell or CMD) use: bash -c "apt update & apt install -y qemu-utils.Make sure qemu-utils is installed in your WSL/WSL2.Note that qemu-img for Windows currently has a known issue with vhdx files which is why we don’t use the native (Windows) version of qemu-img here. Convert the generic Ubuntu cloud image to VHDX Option 1: Using qemu-img in WSL/WLS2 The solution described here assumes you already have and know how to use Packer.įurther we assume the user running packer is a member of the ‘Hyper-V Administrators’ group.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |