Skip to content

Instantly share code, notes, and snippets.

@abenbachir
Created March 8, 2017 20:45
Show Gist options
  • Save abenbachir/6bee7ae0ae6569df54f3500683f2ae32 to your computer and use it in GitHub Desktop.
Save abenbachir/6bee7ae0ae6569df54f3500683f2ae32 to your computer and use it in GitHub Desktop.
# inspired from https://www.itfromallangles.com/2011/03/kvm-guests-using-virt-install-to-install-vms-from-a-cd-or-iso-imag/
virt-install --name=ubuntu15 \
--description "Test VM ubuntu 15" \
--os-type=linux \
--memory 1024 \
--disk path=/var/lib/libvirt/images/ubuntu15.img,device=disk,bus=virtio,size=10,sparse=true,format=raw \
--graphics vnc \
--cdrom ~/Downloads/ubuntu-15.04-server-amd64.iso \
# --network bridge=br0 \
--virt-type kvm
# --print-xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment