Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal glibc error: CPU does not support x86-64-v2 #1313

Closed
renich opened this issue Mar 9, 2023 · 5 comments
Closed

Fatal glibc error: CPU does not support x86-64-v2 #1313

renich opened this issue Mar 9, 2023 · 5 comments

Comments

@renich
Copy link

renich commented Mar 9, 2023

Hello,

It seems that livemedia-creator is running into this issue.

If I could pass -cpu host to qemu-system-<arch> this would not happen.

I looked in the documentation and couldn't find how to do this.
Screenshot from 2023-03-09 13-56-34

The command I'm using is:

sudo livemedia-creator --iso boot.iso --ks my.ks --resultdir result/ --make-iso --iso-only --vcpus=8 --ram=8192 --virt-uefi
@renich
Copy link
Author

renich commented Mar 9, 2023

forgot to mention that this happens when using the CentOS Stream 9 boot.iso: https://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os/images/boot.iso

@bcl
Copy link
Contributor

bcl commented Mar 13, 2023

Thanks for the report. There's currently no way to add to the qemu cmdline, but if you manually edit it you should be able to get it working. See https://github.com/weldr/lorax/blob/rhel9-branch/src/pylorax/installer.py#L179 for where it sets the machine type for UEFI.

@bcl
Copy link
Contributor

bcl commented Mar 13, 2023

Actually, I just realized that the rhel9 branch already includes -cpu host, make sure you are using v34.9.1 or later.

@bcl bcl closed this as completed Mar 13, 2023
@renich
Copy link
Author

renich commented Mar 13, 2023

Well, thank you @bcl for pointing me in the right direction. In the end, it worked just by adding:

if boot_uefi:
    ...
    qemu_cmd += ["-cpu", "host"]

This did the trick. Also, I wanted to clarify that I am trying to build a custom LiveCD for CentOS Stream 9 but from a Fedora 37 workstation. My lorax version is: lorax-37.8-1.fc37.x86_64

Thank you.

@bcl
Copy link
Contributor

bcl commented Mar 14, 2023

Ah, that would explain it. So, FYI, usually you want to use the matching distribution/release version of lorax-composer to build things. It may mostly work enough of the time when cross-building, but it isn't tested that way, and has no provisions for checking the distribution or release being built.

Also, see PR #1315 for a fix for this problem on Fedora :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants