Skip to content

Instantly share code, notes, and snippets.

@aussielunix
Created July 30, 2010 04:03
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 aussielunix/499875 to your computer and use it in GitHub Desktop.
Save aussielunix/499875 to your computer and use it in GitHub Desktop.
virt-install from mirror Ubunut + CentOS
# install a ubuntu VM booting direct from mirror. no media needed.
virt-install --accelerate -n ubuntu-dev01 -r 1024 --vcpus=1 --disk pool=lvm,bus=virtio,size=10 --vnc --os-type linux --os-variant=generic26 --network=bridge:br0 -l http://ubuntu.intergenia.de/ubuntu/dists/lucid/main/installer-amd64/
# install a CentOS VM booting direct from mirror. no media needed. plus kickstart
virt-install --accelerate -n centos-dev01 -r 1024 --vcpus=1 --disk pool=lvm,bus=virtio,size=10 --vnc --os-type linux --os-variant=rhel5 --network=bridge:br0 -l http://192.168.1.250/os/centos/5.5/os/x86_64/ -x "ks=http://192.168.1.250/ks/centos-dev01.ks"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment