KVM on debian 13

As root install:

aptitude install qemu-kvm qemu-utils qemu-system-gui

Then, as a regular user create the img file:

qemu-img create -f qcow2 hda/debian.qcow2 20G

Installing the OS without network:

kvm -m 4096 -hda hda/debian.qcow2 -boot d -cdrom iso/debian-13.0.0-amd64-DVD-1.iso -nic none

Running the VM:

kvm -m 2048 -hda hda/debian.qcow2

Running the VM without display and with SSH access:

kvm -m 2048 -hda hda/debian.qcow2 -net nic -net user,hostfwd=tcp::2222-:22 -display none

Running the VM without display, with a web server and with SSH access:

kvm -m 2048 -hda hda/debian.qcow2 -net nic -net user,hostfwd=tcp::2222-:22,hostfwd=tcp::8080-:80 -display none