open-power-host-os / qemu

OpenPOWER Host OS qemu repository
Other
2 stars 3 forks source link

`efi-virtio.rom` file missing in latest hostos devel leads to VM boot failure with virtio devices #39

Closed sathnaga closed 6 years ago

sathnaga commented 6 years ago
Mirrored with LTC bug https://bugzilla.linux.ibm.com/show_bug.cgi?id=167875 Looks like recent hostos devel builds removes the `qemu-system-x86-2.11.91-1.dev.git46a0689.el7.centos.ppc64le` which has the rom files ``` rpm -ql qemu-system-x86-2.11.91-1.dev.git46a0689.el7.centos.ppc64le /usr/share/qemu/bios-256k.bin /usr/share/qemu/bios.bin /usr/share/qemu/efi-e1000.rom /usr/share/qemu/efi-e1000e.rom /usr/share/qemu/efi-ne2k_pci.rom /usr/share/qemu/efi-pcnet.rom /usr/share/qemu/efi-rtl8139.rom /usr/share/qemu/efi-virtio.rom /usr/share/qemu/efi-vmxnet3.rom /usr/share/qemu/kvmvapic.bin /usr/share/qemu/linuxboot.bin /usr/share/qemu/linuxboot_dma.bin /usr/share/qemu/multiboot.bin /usr/share/qemu/pxe-e1000.rom /usr/share/qemu/pxe-ne2k_pci.rom /usr/share/qemu/pxe-pcnet.rom /usr/share/qemu/pxe-rtl8139.rom /usr/share/qemu/pxe-virtio.rom /usr/share/qemu/qemu-icon.bmp /usr/share/qemu/qemu_vga.ndrv /usr/share/qemu/sgabios.bin /usr/share/qemu/vgabios-cirrus.bin /usr/share/qemu/vgabios-qxl.bin /usr/share/qemu/vgabios-stdvga.bin /usr/share/qemu/vgabios-vmware.bin /usr/share/qemu/vgabios.bin ``` When I have flashed the host with latest devel branch repo, that seems not have the above package and hence the vm start fails ``` usr/bin/virt-install --connect=qemu:///system --hvm --accelerate --name 'avocado-vt-vm1' --memory=1024 --vcpu=2 --import --vnc --serial pty --memballoon model=virtio --controller type=scsi,model=virtio-scsi --disk path=/home/sath/avocado-fvt-wrapper/data/avocado-vt/images/hostos-ppc64le.qcow2,bus=scsi,size=10,format=qcow2 --network=bridge=virbr0,model=virtio,mac=52:54:00:a6:a7:a8 --noautoconsole WARNING No operating system detected, VM performance may suffer. Specify an OS with --os-variant for optimal results. Starting install... ERROR internal error: qemu unexpectedly closed the monitor: fd=27 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:a6:a7:a8,bus=pci.0,addr=0x1 -chardev pty,id=charserial0 -device spapr-vty,chardev=charserial0,id=serial0,reg=0x30000000 -device usb-kbd,id=input0,bus=usb.0,port=1 -device usb-mouse,id=input1,bus=usb.0,port=2 -vnc 127.0.0.1:0 -device VGA,id=video0,vgamem_mb=16,bus=pci.0,addr=0x5 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4 -msg timestamp=on 2018-05-15T12:58:24.408932Z qemu-system-ppc64: -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:a6:a7:a8,bus=pci.0,addr=0x1: failed to find romfile "efi-virtio.rom" Domain installation does not appear to have been successful. If it was, you can restart your domain by running: virsh --connect qemu:///system start avocado-vt-vm1 otherwise, please restart your installation. ```
farosas commented 6 years ago

Yes, we removed the qemu-system-x86 package since it was just packaging the roms:

https://github.com/open-power-host-os/versions/pull/263

Some of the roms should have been packaged along with qemu-system-ppc instead of being removed. I'll include them once again.

Thanks @sathnaga

cdeadmin commented 6 years ago

------- Comment From seg@us.ibm.com 2018-05-15 09:53:54 EDT------- Murilo? I assume this is related to the recent packaging changes in CentOS.

sathnaga commented 6 years ago

@fabianorosas older systems which already installed(CI) during yum update will fail like this I hope this will also get resolved with this? if not can you please take care, thanks!

--> Finished Dependency Resolution
Error: Package: 15:qemu-system-x86-2.11.91-1.dev.git46a0689.el7.centos.ppc64le (@hostos)
           Requires: qemu-common = 15:2.11.91-1.dev.git46a0689.el7.centos
           Removing: 15:qemu-common-2.11.91-1.dev.git46a0689.el7.centos.ppc64le (@hostos)
               qemu-common = 15:2.11.91-1.dev.git46a0689.el7.centos
           Updated By: 15:qemu-common-2.12.0-1.dev.gitd36f3ee.el7.centos.p.ppc64le (hostos)
               qemu-common = 15:2.12.0-1.dev.gitd36f3ee.el7.centos.p
sathnaga commented 6 years ago

@fabianorosas I suggest to include all the roms available from qemu-system-x86-2.11.91-1.dev.git46a0689.el7.centos.ppc64le that way we will not break any unknown areas later.

farosas commented 6 years ago

https://github.com/open-power-host-os/versions/pull/266 should fix the issues reported here. I reverted all the roms back to qemu-system-x86 package.

We will at another opportunity update HostOS qemu spec file to match what Fedora is doing https://src.fedoraproject.org/rpms/qemu/raw/f28/f/qemu.spec . I hope to have all files in their correct places so we can stop pulling in the qemu-system-x86 package.

@sathnaga please give a try and report back if you find any issues. Thanks!

sathnaga commented 6 years ago

After the latest devel update,we do not see this issue.