Blog: 2023-09-13

From razwiki
Revision as of 01:36, 13 September 2023 by Razzi (talk | contribs) (Created page with "qemu... at long last... even under wsl qemu-img create -f qcow2 alpine.qcow2 16G Then I downloaded an alpine ISO from their website, then qemu-system-x86_64 -enable-kvm -...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

qemu... at long last... even under wsl

qemu-img create -f qcow2 alpine.qcow2 16G

Then I downloaded an alpine ISO from their website, then

qemu-system-x86_64 -enable-kvm -m 2048 -nic user,model=virtio -drive file=alpine.qcow2,media=disk,if=virtio -cdrom alpine-standard-3.18.3-x86_64.iso

Then I ran setup-alpine, shoulda got a screenshot or something. Bunch of prompts, even enabled disk encryption for my virtual disk.

Finally I ran reboot, and it booted again fine. The next time I ran the command I could "remove" the cdrom :)

sudo qemu-system-x86_64 -enable-kvm -m 2048 -nic user,model=virtio -drive file=alpine.qcow2,media=disk,if=virtio

I also tried the -nographic flag, which sorta worked but at one point I got a blank screen, I guess the output of the terminal wasn't cleanly displayed and I couldn't see the prompt for password to unlock my disk, or something.