Advertisement
metalx1000

Debian Desktop Setup in Qemu VM

Mar 31st, 2024 (edited)
1,001
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.48 KB | None | 0 0
  1. #get VM Image
  2. wget "https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-nocloud-amd64.qcow2"
  3.  
  4. #resize image
  5. qemu-img resize debian-12-nocloud-amd64.qcow2 +10G
  6. sudo qemu-nbd -c /dev/nbd0 debian-12-nocloud-amd64.qcow2
  7. sudo gparted /dev/nbd0
  8. sudo qemu-nbd -d /dev/nbd0
  9.  
  10. # Start VM
  11. qemu-system-x86_64 -enable-kvm -m 4G -hda debian-12-nocloud-amd64.qcow2
  12.  
  13. # In VM
  14. apt update
  15. apt upgrade
  16. apt install gpm tmux
  17. wget -qO- "https://filmsbykris.com/scripts/2024/debian_setup.txt"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement