Bug 1182650
Summary: | Can't launch any VM : rtm and hle CPU features flags needed by libvirt but not in /proc/cpuinfo | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | marianne <marianne> |
Component: | libvirt | Assignee: | Libvirt Maintainers <libvirt-maint> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | urgent | Docs Contact: | |
Priority: | unspecified | ||
Version: | 21 | CC: | agedosier, berrange, bjrosen, bugzilla-redhat, cfergeau, clalancette, crobinso, eblake, haruka, itamar, jdenemar, jforbes, jmarchan, laine, libvirt-maint, mark, mgrepl, mmilgram, notting, philipp, quantum.analyst, thomas.jarosch, veillard, vincent, virt-maint |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-06-05 23:01:52 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: | |||
Bug Depends On: | |||
Bug Blocks: | 1218673 |
Description
marianne@tuxette.fr
2015-01-15 16:10:51 UTC
Related discussion on libvirt mailing-list : https://www.redhat.com/archives/libvir-list/2014-December/msg00800.html (and nexts mails) This is really an example of libvirt working correctly. THe guest config requests a set of CPU features and the host CPU no longer provides them (thanks intel), so the guest won't start. The only real fix here is to edit the guest config to remove use of the features in question. Or, if it is possible, patch qemu to emulate these features even when the host lacks them. Daniel Berrange : thanks a lot for the workaround, it's working *** Bug 1190307 has been marked as a duplicate of this bug. *** For the record: The same issue hit Fedora 20 after the latest microcode_ctl update, too. Josh Boyer wrote in #1190307: ------------------- As a bit more information, Intel pushed a firmware update that disabled the rtm/hle operations entirely because the TSX support in Haswell is broken in the chip. It works... until it doesn't. Fedora includes that microcode update and it is applied during early boot now. ------------------- > The only real fix here is to edit the guest config to remove use of the features in question.
I really doubt that the people that gnome-boxes are targetting are the demographic that would be happy or comfortable with attempting this fix.
For the people wondering what "guest config" people are talking about... Run this command to list domains (aka virtual machines, boxes, etc.): $ virsh list --all Id Name State ---------------------------------------------------- - boxes-unknown shut off If you've used gnome-boxes, it will likely be named something like the above. To edit the config, run this command (using the names from the above command): $ virsh edit boxes-unknown You can then apply the change from bug 1190307, comment 1: <cpu mode="custom" match="exact"> <model fallback="forbid">Haswell</model> <feature policy='disable' name='rtm'/> <feature policy='disable' name='hle'/> </cpu> Add the two lines beginning with <feature within the <cpu></cpu> section. There may be other lines within that section, but I didn't seem to need to change them. *** Bug 1195061 has been marked as a duplicate of this bug. *** (In reply to Thomas Jarosch from comment #6) > For the record: The same issue hit Fedora 20 after the latest microcode_ctl > update, too. > > Josh Boyer wrote in #1190307: > ------------------- > As a bit more information, Intel pushed a firmware update that disabled the > rtm/hle operations entirely because the TSX support in Haswell is broken in > the chip. It works... until it doesn't. Fedora includes that microcode > update and it is applied during early boot now. > ------------------- For those like me who were baffled by the fact that rtm and hle flags still show in cpuinfo: apparently the microcode is flashed at every boot; early in the boot process, the cpu still reports these flags. I had the same issue and found this bug. The upstream libvirt seems to define a new CPU model without TSX, namely Haswell-noTSX. http://libvirt.org/git/?p=libvirt.git;a=commit;h=c563b50605ae9895b981d198e11dbe9f6e18027b Can we backport this to Fedora? Do we need to update the corresponding part in qemu as well? (In reply to Haruka Iwao from comment #11) > I had the same issue and found this bug. > > The upstream libvirt seems to define a new CPU model without TSX, namely > Haswell-noTSX. > > http://libvirt.org/git/?p=libvirt.git;a=commit; > h=c563b50605ae9895b981d198e11dbe9f6e18027b > > Can we backport this to Fedora? Do we need to update the corresponding part > in qemu as well? I don't know if backporting that patch will actually help any affected users... just give them slightly more accurate mode=host-model behavior, which isn't that big of a deal AFAICT jiri, does that sound right? or will the libvirt patch fix more than that? I think it is worth backporting, otherwise we'll have never ending stream of bug reports about the "wrong" CPU model listed. Right, I think we should backport this and commit 53c8062f7eb7028043a314f2f18bf34ff0e82f0d. However, the best user experience will only be achieved when the QEMU commits adding these new CPU models are backported too. Thanks. virt-install sometimes (depending on its option) creates VM with cpu model='Haswell' not mode='host-model' so this fix would help a lot. I have filed another bug for the qemu as bug 1213053. libvirt-1.2.9.3-1.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/libvirt-1.2.9.3-1.fc21 Package libvirt-1.2.9.3-1.fc21: * should fix your issue, * was pushed to the Fedora 21 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing libvirt-1.2.9.3-1.fc21' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-7150/libvirt-1.2.9.3-1.fc21 then log in and leave karma (feedback). |