Bug 1460923
| Summary: | libvirt failed to find romfile "pxe-virtio.rom" when using guestfish --network on aarch64 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Xianghua Chen <xchen> | ||||
| Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> | ||||
| Status: | CLOSED DUPLICATE | QA Contact: | Virtualization Bugs <virt-bugs> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 7.4 | CC: | abologna, ptoscano, rjones, yoguo | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | aarch64 | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2017-06-13 10:09:32 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Xianghua Chen
2017-06-13 07:31:28 UTC
Created attachment 1287180 [details]
log.network.aarch64
The XML that we are generating, from the log file formatted to make it a bit more readable: <?xml version="1.0"?> <domain type="kvm" xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0"> <name>guestfs-qks4gse4jzbqqvn9</name> <memory unit="MiB">768</memory> <currentMemory unit="MiB">768</currentMemory> <cpu mode="host-passthrough"> <model fallback="allow"/> </cpu> <vcpu>1</vcpu> <clock offset="utc"> <timer name="rtc" tickpolicy="catchup"/> <timer name="pit" tickpolicy="delay"/> </clock> <os> <type machine="virt">hvm</type> <loader readonly="yes" type="pflash">/usr/share/AAVMF/AAVMF_CODE.verbose.fd</loader> <nvram>/tmp/libguestfsvSaKTy/vars.fd.1</nvram> <kernel>/var/tmp/.guestfs-0/appliance.d/kernel</kernel> <initrd>/var/tmp/.guestfs-0/appliance.d/initrd</initrd> <cmdline>panic=1 console=ttyAMA0 earlyprintk=pl011,0x9000000 ignore_loglevel efi-rtc=noprobe edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=/dev/sdb selinux=0 guestfs_verbose=1 guestfs_network=1 TERM=xterm-256color</cmdline> </os> <on_reboot>destroy</on_reboot> <devices> <rng model="virtio"> <backend model="random">/dev/urandom</backend> </rng> <controller type="scsi" index="0" model="virtio-scsi"/> <disk device="disk" type="file"> <source file="/home/git/libguestfs.autotest/client/tests/libguestfs/misc.ext2.raw"/> <target dev="sda" bus="scsi"/> <driver name="qemu" type="raw" cache="writeback"/> <address type="drive" controller="0" bus="0" target="0" unit="0"/> </disk> <disk type="file" device="disk"> <source file="/tmp/libguestfsvSaKTy/overlay2"/> <target dev="sdb" bus="scsi"/> <driver name="qemu" type="qcow2" cache="unsafe"/> <address type="drive" controller="0" bus="0" target="1" unit="0"/> <shareable/> </disk> <serial type="unix"> <source mode="connect" path="/tmp/libguestfssCsJt7/console.sock"/> <target port="0"/> </serial> <channel type="unix"> <source mode="connect" path="/tmp/libguestfssCsJt7/guestfsd.sock"/> <target type="virtio" name="org.libguestfs.channel.0"/> </channel> <controller type="usb" model="none"/> <memballoon model="none"/> </devices> <qemu:commandline> <qemu:env name="TMPDIR" value="/var/tmp"/> <qemu:arg value="-netdev"/> <qemu:arg value="user,id=usernet,net=169.254.0.0/16"/> <qemu:arg value="-device"/> <qemu:arg value="virtio-net-pci,netdev=usernet"/> </qemu:commandline> Other related packages: libvirt-3.2.0-7.el7.aarch64 qemu-kvm-rhev-2.6.0-28.el7_3.10.aarch64 My cut and paste missed out the closing </domain> from there (it's
present in the original XML). But the important part seems to be:
<qemu:commandline>
<qemu:env name="TMPDIR" value="/var/tmp"/>
<qemu:arg value="-netdev"/>
<qemu:arg value="user,id=usernet,net=169.254.0.0/16"/>
<qemu:arg value="-device"/>
<qemu:arg value="virtio-net-pci,netdev=usernet"/>
</qemu:commandline>
which comes from this code:
https://github.com/libguestfs/libguestfs/blob/rhel-7.4/lib/launch-libvirt.c#L1750-L1769
This XML is not generated by upstream libguestfs (which uses bridged
networking instead). The reason it is present in RHEL 7.4 is because
we revert the following patch downstream:
https://github.com/libguestfs/libguestfs/commit/706ec2c841cda0de58a52001b1567d2b72fdacdf
However I still think this must be a bug/missing file in qemu, or perhaps a
missing dependency.
(In reply to Richard W.M. Jones from comment #4) > My cut and paste missed out the closing </domain> from there (it's > present in the original XML). But the important part seems to be: > > <qemu:commandline> > <qemu:env name="TMPDIR" value="/var/tmp"/> > <qemu:arg value="-netdev"/> > <qemu:arg value="user,id=usernet,net=169.254.0.0/16"/> > <qemu:arg value="-device"/> > <qemu:arg value="virtio-net-pci,netdev=usernet"/> > </qemu:commandline> > > which comes from this code: > > > https://github.com/libguestfs/libguestfs/blob/rhel-7.4/lib/launch-libvirt. > c#L1750-L1769 > > This XML is not generated by upstream libguestfs (which uses bridged > networking instead). The reason it is present in RHEL 7.4 is because > we revert the following patch downstream: > > > https://github.com/libguestfs/libguestfs/commit/ > 706ec2c841cda0de58a52001b1567d2b72fdacdf > > However I still think this must be a bug/missing file in qemu, or perhaps a > missing dependency. So do you need me to change the component to qemu-kvm-rhev? Works with: qemu-kvm-rhev-2.9.0-9.el7.aarch64 I believe this is a duplicate of bug 1337510. In any case I cannot reproduce it with the newer qemu-kvm-rhev. Andrea, what do you think? I vote for duplicate as well. Marking as duplicate. Xiang Hua, can you try with the newer qemu, and if you still see the problem reopen/unduplicate. *** This bug has been marked as a duplicate of bug 1337510 *** |