create kvm vm from iso plus kickstart

download centos7 iso move iso to /var/lib/libvirt/boot ## prepare centos 7 kickstart file insert below line to standard kickstart file, to setup console mode for kickstart, %post –logfile=/root/grubby.log /sbin/grubby –update-kernel=ALL –args=”console=ttyS0″ %end create vm from iso + ks virt-install –name testvm-ks \ –nographics \ –location /var/lib/libvirt/boot/CentOS-7-x86_64-Minimal-1708.iso \ –initrd-inject /root/centos7-ks.cfg \ …

virt-install mis-setting driver type to raw when import qcow2

generate qcow2 base image virt-builder centos-7.6 \ –format qcow2 \ –size 20G -o /var/lib/libvist/boot/centos-7.6-20G.qcow2 verified type of disk is qcow2 by qemu-img info /var/lib/libvist/boot/centos-7.6-20G.qcow2 will use this base image as template for future vm quick launch. clone base image disk to vm disk cp /var/lib/libvist/boot/centos-7.6-20G.qcow2 /var/lib/libvist/images/testvm.qcow2 create vm testvm by …

libvirtd failure after latest upgrade in rhel/centos7

libvirtd down after upgrade [root@tripleo ~]# systemctl status libvirtd.service ● libvirtd.service – Virtualization daemon Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled) Active: failed (Result: start-limit) since Sat 2018-12-15 11:10:40 EST; 10s ago Docs: man:libvirtd(8) https://libvirt.org Process: 2507 ExecStart=/usr/sbin/libvirtd $LIBVIRTD_ARGS (code=exited, status=3) Main PID: 2507 (code=exited, status=3) Tasks: 2 (limit: 32768) …