One-liner libvirt KVM guest

Tested on a Centos 7.1 host creating a Centos 7.1 guest from a basic Kickstart file.
Parameters should be quite self-explanatory, in any case here's the documentation for virt-install. Important: remember to change the unix socket path on the last line.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |