Bug#844446: linux-image-4.8.0-1-amd64: Fails to boot on qemu/kvm
On Thursday, 17 November 2016 22:55:07 CET Jose R R wrote: > Please upgrade to version 4.8.7-1 > as it does not exhibit issue you mentioned in a default settings It still happens with 4.8.7-1 for me. But switching the cpu model from Broadwell to Westmere or core2duo fixes the issue. Haswell and SandyBridge do not work. So it's related to some feature that is in SandyBridge but not in Westmere. Cheers, Stefan
Bug#844446: linux-image-4.8.0-1-amd64: Fails to boot on qemu/kvm
On Tue, Nov 15, 2016 at 11:12 AM, Stefan Fritschwrote: > Package: src:linux > Version: 4.8.5-1 Please upgrade to version 4.8.7-1 as it does not exhibit issue you mentioned in a default settings QEMU/KVM executing in Oracle Linux environment. < https://pbs.twimg.com/media/CxhnBQAWQAAb8Xw.jpg:large > -- even when Reiser4 -patched ;-) > Severity: important > > Dear Maintainer, > > I am running a stretch VM on a jessie KVM/qemu/libvirt host. After the > upgrade to 4.8.5 the system does not boot anymore. Booting the 4.7 kernel > works. > > If I start normally, systemd hangs starting some early units (like > keyboard layout). The console log from 'emergency' boot is attached and > shows various oopses and backtraces. > > The qemu command line on the host is (with some ids replaced): > > qemu-system-x86_64 -enable-kvm -name XXX -S -machine > pc-i440fx-2.1,accel=kvm,usb=off -cpu Broadwell -m 1024 -realtime > mlock=off -smp 2,sockets=2,cores=1,threads=1 -uuid > b2d87a70-469f-4433-- -nographic -no-user-config > -nodefaults -device sga -chardev > socket,id=charmonitor,path=/home/XXX/.config/libvirt/qemu/lib/XXX.monitor,server,nowait > -mon chardev=charmonitor,id=monitor,mode=control -rtc > base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=discard -no-hpet > -no-shutdown -boot strict=on -device > ich9-usb-ehci1,id=usb,bus=pci.0,addr=0x3.0x7 -device > ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pci.0,multifunction=on,addr=0x3 > -device > ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pci.0,addr=0x3.0x1 > -device > ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pci.0,addr=0x3.0x2 -drive > file=/dev/vg0/kvm-XXX,if=none,id=drive-virtio-disk0,format=raw,cache=none,aio=native > -device > virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 > -drive if=none,id=drive-ide0-0-0,readonly=on,format=raw -device > ide-cd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -netdev > tap,ifname=v0,id=hostnet0 -device > virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:12:xx:xx,bus=pci.0,addr=0x2 > -chardev pty,id=charserial0 -device > isa-serial,chardev=charserial0,id=serial0 -device usb-tablet,id=input0 > -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5 -object > rng-random,id=rng0,filename=/dev/random -device > virtio-rng-pci,rng=rng0,bus=pci.0,addr=0x6 -msg timestamp=on > > The KVM host is a i7-6700 running linux 3.16.36-1+deb8u2 > > Cheers, > Stefan > > -- Package-specific info: > > ** Model information > sys_vendor: QEMU > product_name: Standard PC (i440FX + PIIX, 1996) > product_version: pc-i440fx-2.1 > chassis_vendor: QEMU > chassis_version: pc-i440fx-2.1 > bios_vendor: SeaBIOS > bios_version: 1.7.5-20140531_083030-gandalf > > ** PCI devices: > 00:00.0 Host bridge [0600]: Intel Corporation 440FX - 82441FX PMC [Natoma] > [8086:1237] (rev 02) > Subsystem: Red Hat, Inc Qemu virtual machine [1af4:1100] > Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- > Stepping- SERR+ FastB2B- DisINTx- > Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- > SERR- > 00:01.0 ISA bridge [0601]: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton > II] [8086:7000] > Subsystem: Red Hat, Inc Qemu virtual machine [1af4:1100] > Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- > Stepping- SERR+ FastB2B- DisINTx- > Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- > SERR- > 00:01.1 IDE interface [0101]: Intel Corporation 82371SB PIIX3 IDE > [Natoma/Triton II] [8086:7010] (prog-if 80 [Master]) > Subsystem: Red Hat, Inc Qemu virtual machine [1af4:1100] > Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- > Stepping- SERR+ FastB2B- DisINTx- > Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- > SERR- Latency: 0 > Region 0: [virtual] Memory at 01f0 (32-bit, non-prefetchable) > [size=8] > Region 1: [virtual] Memory at 03f0 (type 3, non-prefetchable) > Region 2: [virtual] Memory at 0170 (32-bit, non-prefetchable) > [size=8] > Region 3: [virtual] Memory at 0370 (type 3, non-prefetchable) > Region 4: I/O ports at c100 [size=16] > Kernel driver in use: ata_piix > Kernel modules: ata_piix, ata_generic > > 00:01.3 Bridge [0680]: Intel Corporation 82371AB/EB/MB PIIX4 ACPI [8086:7113] > (rev 03) > Subsystem: Red Hat, Inc Qemu virtual machine [1af4:1100] > Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- > Stepping- SERR+ FastB2B- DisINTx- > Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- > SERR- Interrupt: pin A routed to IRQ 9 > Kernel driver in use: piix4_smbus > Kernel modules: i2c_piix4 > > 00:02.0 Ethernet controller [0200]: Red Hat, Inc Virtio network device > [1af4:1000] > Subsystem: Red Hat, Inc Virtio
Bug#844446: linux-image-4.8.0-1-amd64: Fails to boot on qemu/kvm
Hi. The following workaround worked for me: Try setting the CPU type to be a "simple old CPU" without a lot of features. For example, the following change fixed the problem in my case: --- a/libvirt/qemu/machine.xml +++ b/libvirt/qemu/machine.xml @@ -19,8 +19,8 @@ or other application using the libvirt API. - - + +core2duo Can you try that and see what happens? Thanks.
Bug#844446: linux-image-4.8.0-1-amd64: Fails to boot on qemu/kvm
I can reproduce this as well. Also running a stretch VM on a jessie KVM/qemu/libvirt host. My KVM host is a i5-6400 running linux 3.16.36-1+deb8u2. Thanks.
Bug#844446: linux-image-4.8.0-1-amd64: Fails to boot on qemu/kvm
Package: src:linux Version: 4.8.5-1 Severity: important Dear Maintainer, I am running a stretch VM on a jessie KVM/qemu/libvirt host. After the upgrade to 4.8.5 the system does not boot anymore. Booting the 4.7 kernel works. If I start normally, systemd hangs starting some early units (like keyboard layout). The console log from 'emergency' boot is attached and shows various oopses and backtraces. The qemu command line on the host is (with some ids replaced): qemu-system-x86_64 -enable-kvm -name XXX -S -machine pc-i440fx-2.1,accel=kvm,usb=off -cpu Broadwell -m 1024 -realtime mlock=off -smp 2,sockets=2,cores=1,threads=1 -uuid b2d87a70-469f-4433-- -nographic -no-user-config -nodefaults -device sga -chardev socket,id=charmonitor,path=/home/XXX/.config/libvirt/qemu/lib/XXX.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=discard -no-hpet -no-shutdown -boot strict=on -device ich9-usb-ehci1,id=usb,bus=pci.0,addr=0x3.0x7 -device ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pci.0,multifunction=on,addr=0x3 -device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pci.0,addr=0x3.0x1 -device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pci.0,addr=0x3.0x2 -drive file=/dev/vg0/kvm-XXX,if=none,id=drive-virtio-disk0,format=raw,cache=none,aio=native -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -drive if=none,id=drive-ide0-0-0,readonly=on,format=raw -device ide-cd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -netdev tap,ifname=v0,id=hostnet0 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:12:xx:xx,bus=pci.0,addr=0x2 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -device usb-tablet,id=input0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5 -object rng-random,id=rng0,filename=/dev/random -device virtio-rng-pci,rng=rng0,bus=pci.0,addr=0x6 -msg timestamp=on The KVM host is a i7-6700 running linux 3.16.36-1+deb8u2 Cheers, Stefan -- Package-specific info: ** Model information sys_vendor: QEMU product_name: Standard PC (i440FX + PIIX, 1996) product_version: pc-i440fx-2.1 chassis_vendor: QEMU chassis_version: pc-i440fx-2.1 bios_vendor: SeaBIOS bios_version: 1.7.5-20140531_083030-gandalf ** PCI devices: 00:00.0 Host bridge [0600]: Intel Corporation 440FX - 82441FX PMC [Natoma] [8086:1237] (rev 02) Subsystem: Red Hat, Inc Qemu virtual machine [1af4:1100] Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx- Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- Kernel driver in use: virtio-pci Kernel modules: virtio_pci 00:03.0 USB controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 [8086:2934] (rev 03) (prog-if 00 [UHCI]) Subsystem: Red Hat, Inc QEMU Virtual Machine [1af4:1100] Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx- Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- Kernel driver in use: virtio-pci Kernel modules: virtio_pci 00:05.0 Unclassified device [00ff]: Red Hat, Inc Virtio memory balloon [1af4:1002] Subsystem: Red Hat, Inc Virtio memory balloon [1af4:0005] Physical Slot: 5 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx- Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- TAbort- SERR- ii grub-pc 2.02~beta3-3 pn linux-doc-4.8 Versions of packages linux-image-4.8.0-1-amd64 is related to: pn firmware-amd-graphics pn firmware-atheros pn firmware-bnx2 pn firmware-bnx2x pn firmware-brcm80211 pn firmware-cavium pn firmware-intel-sound pn firmware-intelwimax pn firmware-ipw2x00 pn firmware-ivtv pn firmware-iwlwifi pn firmware-libertas pn firmware-linux-nonfree pn firmware-misc-nonfree pn firmware-myricom pn firmware-netxen pn firmware-qlogic pn firmware-realtek pn firmware-samsung pn firmware-siano pn firmware-ti-connectivity pn xen-hypervisor -- no debconf informationLoading Linux 4.8.0-1-amd64 ... Loading initial ramdisk ... [0.00] Linux version 4.8.0-1-amd64 (debian-ker...@lists.debian.org) (gcc version 5.4.1 20161019 (Debian 5.4.1-3) ) #1 SMP Debian 4.8.5-1 (2016-10-28) [0.00] Command line: BOOT_IMAGE=/vmlinuz-4.8.0-1-amd64 root=/dev/mapper/serval--vg-root ro console=ttyS0,115200 emergency [0.00] [ cut here ] [0.00]