Last active
January 10, 2016 16:19
-
-
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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment