Skip to content

Instantly share code, notes, and snippets.

@quark-zju
quark-zju / create_machine.sh
Last active August 29, 2015 14:10 — forked from AVGP/create_machine.sh
Script to create a user-mode linux machine (tested under Debian 7)
#!/bin/sh
### functions
f() { echo "Failed."; exit; }
check_packages()
{
hash linux || apt-get install user-mode-linux || f
hash debootstrap || apt-get install debootstrap || f