-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
You need to specify ❯ limactl create -y --vm-type qemu --arch x86_64 template://debian-12
INFO[0000] Terminal is not available, proceeding without opening an editor
INFO[0000] Attempting to download the image arch=x86_64 digest="sha512:ee35c87b8a0c67eb67a169beec3bef5d6868957c1d31374797ef37072650c5067094c50ca293d7b926a967d07515abf1845f515084e3a192c7c69df75e84c95a" location="https://cloud.debian.org/images/cloud/bookworm/20250519-2117/debian-12-genericcloud-amd64-20250519-2117.qcow2"
Downloading the image (debian-12-genericcloud-amd64-20250519-2117.qcow2)
331.59 MiB / 331.59 MiB [----------------------------------] 100.00% 17.70 MiB/s
INFO[0020] Downloaded the image from "https://cloud.debian.org/images/cloud/bookworm/20250519-2117/debian-12-genericcloud-amd64-20250519-2117.qcow2"
INFO[0021] Attempting to download the nerdctl archive arch=x86_64 digest="sha256:b3ab8564c8fa6feb89d09bee881211b700b047373c767bec38256d0d68f93074" location="https://github.com/containerd/nerdctl/releases/download/v2.1.2/nerdctl-full-2.1.2-linux-amd64.tar.gz"
Downloading the nerdctl archive (nerdctl-full-2.1.2-linux-amd64.tar.gz)
243.19 MiB / 243.19 MiB [----------------------------------] 100.00% 27.80 MiB/s
INFO[0031] Downloaded the nerdctl archive from "https://github.com/containerd/nerdctl/releases/download/v2.1.2/nerdctl-full-2.1.2-linux-amd64.tar.gz"
INFO[0031] Run `limactl start debian-12` to start the instance.
❯ limactl start debian-12
INFO[0000] Using the existing instance "debian-12"
INFO[0000] Starting the instance "debian-12" with VM driver "qemu"
INFO[0000] [hostagent] hostagent socket created at /Users/jan/.lima/debian-12/ha.sock
INFO[0001] [hostagent] Using system firmware ("/opt/homebrew/share/qemu/edk2-x86_64-code.fd")
INFO[0001] [hostagent] Starting QEMU (hint: to watch the boot progress, see "/Users/jan/.lima/debian-12/serial*.log")
INFO[0002] SSH Local Port: 51224
INFO[0001] [hostagent] Waiting for the essential requirement 1 of 4: "ssh"
INFO[0033] [hostagent] The essential requirement 1 of 4 is satisfied
INFO[0033] [hostagent] Waiting for the essential requirement 2 of 4: "user session is ready for ssh"
INFO[0044] [hostagent] Waiting for the essential requirement 2 of 4: "user session is ready for ssh"
INFO[0044] [hostagent] The essential requirement 2 of 4 is satisfied
INFO[0044] [hostagent] Waiting for the essential requirement 3 of 4: "sshfs binary to be installed"
INFO[0060] [hostagent] The essential requirement 3 of 4 is satisfied
INFO[0060] [hostagent] Waiting for the essential requirement 4 of 4: "fuse to \"allow_other\" as user"
INFO[0100] [hostagent] Waiting for the essential requirement 4 of 4: "fuse to \"allow_other\" as user"
INFO[0103] [hostagent] The essential requirement 4 of 4 is satisfied
INFO[0103] [hostagent] Mounting "/Users/jan" on "/Users/jan"
INFO[0103] [hostagent] Mounting "/tmp/lima" on "/tmp/lima"
INFO[0103] [hostagent] Waiting for the optional requirement 1 of 2: "systemd must be available"
INFO[0103] [hostagent] Forwarding "/run/lima-guestagent.sock" (guest) to "/Users/jan/.lima/debian-12/ga.sock" (host)
INFO[0103] [hostagent] Guest agent is running
INFO[0103] [hostagent] The optional requirement 1 of 2 is satisfied
INFO[0103] [hostagent] Waiting for the optional requirement 2 of 2: "containerd binaries to be installed"
INFO[0103] [hostagent] Forwarding TCP from [::]:5355 to 127.0.0.1:5355
INFO[0103] [hostagent] Not forwarding TCP [::]:22
INFO[0103] [hostagent] Not forwarding UDP 0.0.0.0:5355
INFO[0103] [hostagent] Not forwarding UDP 127.0.0.54:53
INFO[0103] [hostagent] Not forwarding UDP 127.0.0.53:53
INFO[0103] [hostagent] Not forwarding UDP 192.168.5.15:68
INFO[0103] [hostagent] Not forwarding UDP [::]:5355
INFO[0103] [hostagent] Forwarding TCP from 0.0.0.0:5355 to 127.0.0.1:5355
INFO[0103] [hostagent] Not forwarding TCP 127.0.0.54:53
INFO[0103] [hostagent] Not forwarding TCP 127.0.0.53:53
INFO[0103] [hostagent] Not forwarding TCP 0.0.0.0:22
INFO[0143] [hostagent] Waiting for the optional requirement 2 of 2: "containerd binaries to be installed"
INFO[0144] [hostagent] The optional requirement 2 of 2 is satisfied
INFO[0144] [hostagent] Waiting for the guest agent to be running
INFO[0144] [hostagent] Waiting for the final requirement 1 of 1: "boot scripts must have finished"
INFO[0151] [hostagent] Forwarding TCP from 127.0.0.1:33845 to 127.0.0.1:33845
INFO[0162] [hostagent] The final requirement 1 of 1 is satisfied
INFO[0163] READY. Run `limactl shell debian-12` to open the shell.
❯ uname -m
arm64
❯ limactl shell debian-12 uname -m
x86_64 |
Beta Was this translation helpful? Give feedback.
-
It will automatically pick qemu for you, as long as you specify the arch in the initial command:
It is quite slow to run full system emulation, though. https://lima-vm.io/docs/config/multi-arch/ So if you can use a amd64 container, or even better just a amd64 binary, that will be faster (with Rosetta). The best would of course be to run a native binary, I think it is unfortunate that many recommend emulation... |
Beta Was this translation helpful? Give feedback.
-
Got it: |
Beta Was this translation helpful? Give feedback.
You need to specify
--vm-type qemu
. The Apple virtualization framework doesn't do emulation; it just virtualizes the host processor. And Rosetta doesn't have support for virtualization instructions.