#!/bin/bash # To reproduce, # 1) save job-script and this script (both are attached in 0day report email) # 2) run this script with your compiled kernel and optional env $INSTALL_MOD_PATH kernel=$1 initrds=( /osimage/debian/debian-x86_64-2016-08-31.cgz /lkp/lkp/lkp-x86_64.cgz /osimage/deps/debian-x86_64-2016-08-31.cgz/lkp_2017-08-01.cgz /osimage/deps/debian-x86_64-2016-08-31.cgz/rsync-rootfs_2016-11-15.cgz /osimage/deps/debian-x86_64-2016-08-31.cgz/run-ipconfig_2016-11-15.cgz /osimage/deps/debian-x86_64-2016-08-31.cgz/fs_2016-11-15.cgz /osimage/deps/debian-x86_64-2016-08-31.cgz/xfstests_2017-08-04.cgz /osimage/pkg/debian-x86_64-2016-08-31.cgz/xfstests-x86_64-14d31842_2017-08-04.cgz ) HTTP_PREFIX=https://github.com/0day-ci/lkp-qemu/raw/master wget --timestamping "${initrds[@]/#/$HTTP_PREFIX}" { cat "${initrds[@]//*\//}" [[ $INSTALL_MOD_PATH ]] && ( cd "$INSTALL_MOD_PATH" find lib | cpio -o -H newc --quiet | gzip ) echo job-script | cpio -o -H newc --quiet | gzip } > initrd.img qemu-img create -f qcow2 disk-vm-kbuild-4G-1-0 256G qemu-img create -f qcow2 disk-vm-kbuild-4G-1-1 256G qemu-img create -f qcow2 disk-vm-kbuild-4G-1-2 256G qemu-img create -f qcow2 disk-vm-kbuild-4G-1-3 256G qemu-img create -f qcow2 disk-vm-kbuild-4G-1-4 256G qemu-img create -f qcow2 disk-vm-kbuild-4G-1-5 256G qemu-img create -f qcow2 disk-vm-kbuild-4G-1-6 256G kvm=( qemu-system-x86_64 -enable-kvm -cpu qemu64,+ssse3 -kernel $kernel -initrd initrd.img -m 4096 -smp 4 -device e1000,netdev=net0 -netdev user,id=net0,hostfwd=tcp::23032-:22 -boot order=nc -no-reboot -watchdog i6300esb -watchdog-action debug -rtc base=localtime -drive file=disk-vm-kbuild-4G-1-0,media=disk,if=virtio -drive file=disk-vm-kbuild-4G-1-1,media=disk,if=virtio -drive file=disk-vm-kbuild-4G-1-2,media=disk,if=virtio -drive file=disk-vm-kbuild-4G-1-3,media=disk,if=virtio -drive file=disk-vm-kbuild-4G-1-4,media=disk,if=virtio -drive file=disk-vm-kbuild-4G-1-5,media=disk,if=virtio -drive file=disk-vm-kbuild-4G-1-6,media=disk,if=virtio -serial stdio -display none -monitor null ) append=( ip=::::vm-kbuild-4G-1::dhcp root=/dev/ram0 user=lkp job=/job-script ARCH=x86_64 kconfig=x86_64-rhel-7.2 branch=linus/master commit=4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323 BOOT_IMAGE=/pkg/linux/x86_64-rhel-7.2/gcc-6/4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323/vmlinuz-4.15.0-rc1 max_uptime=3600 RESULT_ROOT=/result/xfstests/6HDD-btrfs-btrfs-mid2/vm-kbuild-4G/debian-x86_64-2016-08-31.cgz/x86_64-rhel-7.2/gcc-6/4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323/0 result_service=tmpfs debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 net.ifnames=0 printk.devkmsg=on panic=-1 softlockup_panic=1 nmi_watchdog=panic oops=panic load_ramdisk=2 prompt_ramdisk=0 drbd.minor_count=8 systemd.log_level=err ignore_loglevel console=tty0 earlyprintk=ttyS0,115200 console=ttyS0,115200 vga=normal rw ) "${kvm[@]}" -append "${append[*]}"