Skip to content

Debug kickstart change failure for microshift

Praveen Kumar edited this page Jul 19, 2023 · 2 revisions

First run the microshift.sh script and let it fail to start the VM and then there will be a kickstart file in the snc/microshift/_output/image-builder/kickstart.ks which you can edit this kickstart file as per your changes and then use following steps to debug if those changes are working or not.

$ sudo virsh destroy crc && sudo virsh undefine crc && sudo virsh vol-delete crc.qcow2 images
$ sudo virt-install --name crc --vcpus 2 --memory 2048 --arch=x86_64 \
   --disk path=/var/lib/libvirt/images/crc.qcow2,size=31 \
   --network network=default,model=virtio \
   --os-variant rhel9-unknown \
   --location /var/lib/libvirt/images/microshift-installer.iso \
   --initrd-inject=${HOME}/snc/microshift/_output/image-builder/kickstart.ks \
   --extra-args="inst.ks=file:/kickstart.ks console=ttyS0,115200n8" \
   --events on_reboot=restart --wait 5 --nographics