Skip to content

Instantly share code, notes, and snippets.

@fanweixiao
Created April 16, 2012 11:48
Show Gist options
  • Save fanweixiao/2398039 to your computer and use it in GitHub Desktop.
Save fanweixiao/2398039 to your computer and use it in GitHub Desktop.
Create new kvm virtual machine
qemu-img create -f raw NAME.img 8G
virt-install --name='VNAME' --ram=512 --vcpus=1 --description='' --cdrom=/share/downloads/centos-6.2-x86_64-minimal.iso --disk=/share/vos/VNAME.img --vnc --noautoconsole --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment