Is launching qemu with -cpu = "something else than host" possible ? #6297
-
The use case is to be able to see, from within the VM, the architecture as |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
This is not supported by Rancher Desktop. What would be the benefit of doing this? |
Beta Was this translation helpful? Give feedback.
-
@jandubois well, for my specific use case, I'm using the Spack package manager, which builds mainly from source (which is very flexible but of course very slow as well) but can also use some build caches. But to get the relevant binaries from the build caches one crucial point is the (micro)architecture that must match that of the build machine. And on most (?) modern Intel machines that microarchitecture is x86_64_v3 (and even v4), not the baseline x86_64. If I understand correctly the qemu doc it seems qemu is indeed able to emulate those different versions. And some programs (Spack being one of those) can make (good) use of that. |
Beta Was this translation helpful? Give feedback.
You need to install the
util-linux
package for that:The package will be cached, but you need to reinstall it after each VM restart (because it runs from an ISO image).
Oh, in that case you are not using the host CPU anyways, which would be
aarch64
instead ofx86_64
. So overriding the CPU for the VM will no have any effect for you:When you are running
x86_64
containe…