- pre
- qemu-system-x86-64
- packer
- command
packer build qemu.json(Take about 10 minutes in a low configuration machine.)qemu-img convert -f raw -O vpc -o subformat=fixed,force_size output-qemu/alpine alpine.vhd
- shell
- run.sh
- pre
- packer.exe
- hyper-V enabled:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
- command
packer.exe build hyperv.json
- batch
- run.bat
- Boot the vm
parted --script /dev/sda resizepart 1 100%resize2fs /dev/sda1