Running colima with --arch x86_64 --vm-type=vz --vz-rosetta
does not actually run Ubuntu VM on Rosetta
#1150
Replies: 3 comments 1 reply
-
I got answer to my first question in this issue in lima's github Lima only allows "aarch64" for VZ. |
Beta Was this translation helpful? Give feedback.
-
For the 2nd question, I also found out the reason why So the condition also needs to check if architecture is not x86_64. |
Beta Was this translation helpful? Give feedback.
-
Qemu is always available, so Colima will fall back to qemu when VZ requirements are not met. However, I admit the user experience could be better and the behaviour can be more transparent by notifying the user accordingly. |
Beta Was this translation helpful? Give feedback.
-
I wanted to run the "guest" Ubuntu VM in x86_64 architecture, on rosetta.
At first I ran
colima start -p ubuntu-arm --vm-type=vz --vz-rosetta
, and then rancolima status
, it showed that architecture isaarch64
. I thought it would bex86_64
because Rosetta is used to emulate it on arm.In above case I could also see a
com.apple.Virtualization.VirtualMachine
process running inhtop
.Then I added the extra option
--arch x86_64
, but then it started the VM withqemu
engine.As per lima's VM types docs, Rosetta is only supported on
vz
engine.I got x86_64 Ubuntu, but it is very slow, as it is also mentioned in the lima docs.
Additionally, no
com.apple.Virtualization.VirtualMachine
process was running. Inhtop
I could only see aqemu-system-x86_64
process running. This means that Rosetta was not running?Another weird thing, running
colima status
on this new VM shows "running using macOS Virtualization.Framework"Although no related process is running on my mac.
Just to compare, here's what we see in
colima status
, when colima is started using commandcolima start --arch x86_64
i.e. no options corresponding to rosetta:I want to know if
Beta Was this translation helpful? Give feedback.
All reactions