For testing purposes, you will want to quickly spawn blank VMs with an ssh access to try out some stuff. This Gist from @smoser allows you to do just that. It:
- Provides a script to automatically download, install and configure an ubuntu base VM from your terminal using qemu/kvm
- Spawn blank and dispensable VMs from that base read-only VM