Before creating the guest VM, we need to ensure the Guest OS is supported by the KVM, can check by running the following command :
osinfo-query os
Create a Guest VM
virt-install --network bridge:virbr0 --name testvm1 \
--os-variant=centos7.0 --ram=1024 --vcpus=1 \
--disk path=/var/lib/libvirt/images/testvm1-os.qcow2,format=qcow2,bus=virtio,size=5 \
--graphics none --location=/osmedia/CentOS-7-x86_64-DVD-1511.iso \
--extra-args="console=tty0 console=ttyS0,115200" --check all=off
Watch the video for details: