Use QEMU

sudo apt-get install qemu

Create disk

# Create base VM image
qemu-img create -f qcow2 debian.qcow2 2G
 
# Install Debian
qemu -enable-kvm -k tr -cdrom debian-504-i386-businesscard.iso -hda debian.qcow2 -boot d
 
 
dpkg-reconfigure console-data
aptitude install ssh sudo
 
# Create the actual VM's disk
qemu-img create -f qcow2 -o backing_file=debian.qcow2 actual.qcow2
 
qemu -enable-kvm -k tr -hda actual.qcow2 -net user -net nic \
                                         -redir tcp:5022::22 \
                                         -redir tcp:9080::80
 
# SSH into the VM
ssh -p 5022 www@localhost