Skip to content

Instantly share code, notes, and snippets.

@takatoshiono
Created July 28, 2008 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takatoshiono/2910 to your computer and use it in GitHub Desktop.
Save takatoshiono/2910 to your computer and use it in GitHub Desktop.
#!/bin/sh
if [ $# -gt 0 ]; then
NAME=$1
virt-install \
--paravirt \
--name=$NAME \
--vcpus=1 \
--ram=256 \
--file=/var/xen/$NAME \
--file-size=5 \
--location=http://localhost/centos5-x86_64 \
--nographics \
--nonsparse
else
echo "Usage: $0 vm_name"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment