Skip to content

Instantly share code, notes, and snippets.

@quark-zju
quark-zju / create_machine.sh
Last active Aug 29, 2015 — forked from AVGP/create_machine.sh
Script to create a user-mode linux machine (tested under Debian 7)
View create_machine.sh
#!/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