Skip to content

Is launching qemu with -cpu = "something else than host" possible ? #6297

Answered by jandubois
aphecetche asked this question in Q&A
Discussion options

You must be logged in to vote

You need to install the util-linux package for that:

rdctl shell sudo apk add util-linux

The package will be cached, but you need to reinstall it after each VM restart (because it runs from an ISO image).

I'm on a macOS (M1) machine

Oh, in that case you are not using the host CPU anyways, which would be aarch64 instead of x86_64. So overriding the CPU for the VM will no have any effect for you:

lima-rancher-desktop:~# lscpu
Architecture:            aarch64
  CPU op-mode(s):        64-bit
  Byte Order:            Little Endian
CPU(s):                  2
  On-line CPU(s) list:   0,1
Vendor ID:               Apple
  BIOS Vendor ID:        Apple Inc.
...

When you are running x86_64 containe…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@jandubois
Comment options

@aphecetche
Comment options

@jandubois
Comment options

Answer selected by aphecetche
@aphecetche
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants