Blog: 2023-09-15

From razwiki
Revision as of 01:28, 15 September 2023 by Razzi (talk | contribs) (Created page with "Setting up debian with qemu First I made a larger qcow disk than the default cloud image: qemu-img resize debian-12-larger-disk-amd64.qcow2 10G Then I ran the installer...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Setting up debian with qemu

First I made a larger qcow disk than the default cloud image:

qemu-img resize debian-12-larger-disk-amd64.qcow2 10G

Then I ran the installer

virt-install --memory 2048 --vcpus 2 --name qemu-debian-12 --disk debian-12-larger-disk-amd64.qcow2,device=disk,bus=virtio --graphics none --import --os-variant=debian12

When I was all done, I exited with CTRL-] - https://www.reddit.com/r/linuxadmin/comments/5gzdtk/properly_exiting_virtinstall/

Then I can boot the system with:

qemu-system-x86_64 -hda debian-12-larger-disk-amd64.qcow2 -nographic -m 2048

Finally...