Bug 2047271
| Summary: | [RHEL9] Libvirt can't start a guest if virtio-mem/virtio-pmem is on PCI bus != 0 | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Michal Privoznik <mprivozn> | |
| Component: | libvirt | Assignee: | Michal Privoznik <mprivozn> | |
| libvirt sub component: | General | QA Contact: | Jing Qi <jinqi> | |
| Status: | CLOSED ERRATA | Docs Contact: | ||
| Severity: | unspecified | |||
| Priority: | unspecified | CC: | dhildenb, jdenemar, jinqi, jsuchane, lcheng, lcong, lmen, mprivozn, pkrempa, virt-maint, xuzhang, yanghliu | |
| Version: | 9.0 | Keywords: | AutomationBackLog, Triaged, Upstream | |
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
|
| Target Release: | --- | |||
| Hardware: | x86_64 | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | libvirt-8.0.0-4.el9 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | 2014487 | |||
| : | 2048435 2050702 (view as bug list) | Environment: | ||
| Last Closed: | 2022-05-17 12:46:34 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: | 8.1.0 | |
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 2014487, 2047797 | |||
|
Description
Michal Privoznik
2022-01-27 13:46:52 UTC
Patch posted on the list: https://listman.redhat.com/archives/libvir-list/2022-January/msg01234.html Michal,can you please help to make sure if the migration issue also be fixed in above patch? Thanks
<memory model='virtio-mem'>
<source>
<pagesize unit='KiB'>2048</pagesize>
</source>
<target>
<size unit='KiB'>131072</size>
<node>0</node>
<block unit='KiB'>2048</block>
<requested unit='KiB'>131072</requested>
</target>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
</memory>
virsh migrate rhel9 qemu+ssh://dell-per740xd-27.lab.eng.pek2.redhat.com/system --live --
error: internal error: qemu unexpectedly closed the monitor: 2022-01-29T01:57:12.336180Z qemu-kvm: -device virtio-mem-pci,node=0,block-size=2097152,requested-size=134217728,memdev=memvirtiomem0,id=virtiomem0,bus=pcie.0,addr=0x1: 'virtio-mem-pci' is not a valid device model name
More info about above comment, the vm is migrated from rhel9 to rhel8.6. But rhel8.6 still doesn't support virtio-mem. The error message can to be enhanced. For migrating vm with virtio-mem from rhel9 to rhel9, I filed a new bug 2048022. (In reply to Jing Qi from comment #2) > > error: internal error: qemu unexpectedly closed the monitor: > 2022-01-29T01:57:12.336180Z qemu-kvm: -device > virtio-mem-pci,node=0,block-size=2097152,requested-size=134217728, > memdev=memvirtiomem0,id=virtiomem0,bus=pcie.0,addr=0x1: 'virtio-mem-pci' is > not a valid device model name Huh, so this indeed is a problem, but again not specific to virtio-mem. It only demonstrates itself via virtio-mem because that's one of the few differences between RHEL-9 and RHEL-8.6 QEMUs. But in general, XMLs used in migration or save/restore of domain are not validated. Let me open it as a new bug. Merged upstream as: af23241cfe qemu_command: Generate memory only after controllers v8.0.0-260-gaf23241cfe Tested with version- libvirt-daemon-8.0.0-4.el9.x86_64 & qemu-kvm-6.2.0-7.el9.x86_64
1. Start vm with virtio-mem device with below pci address
<memory model='virtio-mem'>
<target>
<size unit='KiB'>131072</size>
<node>0</node>
<block unit='KiB'>2048</block>
<requested unit='KiB'>131072</requested>
<current unit='KiB'>131072</current>
</target>
<alias name='virtiomem0'/>
<address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/>
</memory>
# virsh start rhel_i
Domain 'rhel_i' started
2. Attach device and dumpxml to check the memory device is attached.
#virsh attach-device rhel_i virtiomem.xml
Device attached successfully
virtiomem.xml -
<memory model='virtio-mem'>
<target>
<size unit='KiB'>131072</size>
<node>0</node>
<block unit='KiB'>2048</block>
<requested unit='KiB'>131072</requested>
<current unit='KiB'>131072</current>
</target>
<alias name='virtiomem1'/>
<address type='pci' domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
</memory>
Mark it to verified according to Comment 7 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (new packages: libvirt), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2022:2390 |