Blog: 2023-09-13: Difference between revisions

From razwiki
Jump to navigation Jump to search
(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 -...")
 
No edit summary
Line 14: Line 14:


I also tried the <code>-nographic</code> 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.
I also tried the <code>-nographic</code> 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.

Taken from: https://drewdevault.com/2018/09/10/Getting-started-with-qemu.html

Revision as of 01:37, 13 September 2023

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.

Taken from: https://drewdevault.com/2018/09/10/Getting-started-with-qemu.html