Skip to content

Instantly share code, notes, and snippets.

@unicolet
Last active January 10, 2016 16:19
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 unicolet/865cdd24295664d19c6f to your computer and use it in GitHub Desktop.
Save unicolet/865cdd24295664d19c6f to your computer and use it in GitHub Desktop.
A one-liner to create a new KVM guest, including guest agent support
virt-install --name "guest01" --memory 2048
-l http://your.ris.server/ris/centos71
-x "ks=http://your.ris.server/ris/ks.cfg console=ttyS0"
--disk size=8,pool=your_pool,bus=virtio,format=qcow2
-w default
--graphics vnc
--channel unix,mode=bind,path=/var/lib/libvirt/qemu/guest01.agent,target_type=virtio,name=org.qemu.guest_agent.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment