Skip to content

Commit f661122

Browse files
committed
vz: print a hint for softwareupdate --install-rosetta
Signed-off-by: Akihiro Suda <[email protected]>
1 parent 57664bb commit f661122

File tree

2 files changed

+29
-21
lines changed

2 files changed

+29
-21
lines changed

README.md

Lines changed: 28 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -310,27 +310,29 @@ The current default spec:
310310
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
311311
### Generic
312312

313-
- [Generic](#generic)
314-
- ["What's my login password?"](#whats-my-login-password)
315-
- ["Does Lima work on ARM Mac?"](#does-lima-work-on-arm-mac)
316-
- ["Can I run non-Ubuntu guests?"](#can-i-run-non-ubuntu-guests)
317-
- ["Can I run other container engines such as Docker and Podman? What about Kubernetes?"](#can-i-run-other-container-engines-such-as-docker-and-podman-what-about-kubernetes)
318-
- ["Can I run Lima with a remote Linux machine?"](#can-i-run-lima-with-a-remote-linux-machine)
319-
- ["Advantages compared to Docker for Mac?"](#advantages-compared-to-docker-for-mac)
320-
- [QEMU](#qemu)
321-
- ["QEMU crashes with `HV_ERROR`"](#qemu-crashes-with-hv_error)
322-
- ["QEMU is slow"](#qemu-is-slow)
323-
- [error "killed -9"](#error-killed--9)
324-
- ["QEMU crashes with `vmx_write_mem: mmu_gva_to_gpa XXXXXXXXXXXXXXXX failed`"](#qemu-crashes-with-vmx_write_mem-mmu_gva_to_gpa-xxxxxxxxxxxxxxxx-failed)
325-
- [Networking](#networking)
326-
- ["Cannot access the guest IP 192.168.5.15 from the host"](#cannot-access-the-guest-ip-192168515-from-the-host)
327-
- ["Ping shows duplicate packets and massive response times"](#ping-shows-duplicate-packets-and-massive-response-times)
328-
- [Filesystem sharing](#filesystem-sharing)
329-
- ["Filesystem is slow"](#filesystem-is-slow)
330-
- ["Filesystem is not writable"](#filesystem-is-not-writable)
331-
- [External projects](#external-projects)
332-
- ["I am using Rancher Desktop. How to deal with the underlying Lima?"](#i-am-using-rancher-desktop-how-to-deal-with-the-underlying-lima)
333-
- ["Hints for debugging other problems?"](#hints-for-debugging-other-problems)
313+
- [Generic](#generic)
314+
- ["What's my login password?"](#whats-my-login-password)
315+
- ["Does Lima work on ARM Mac?"](#does-lima-work-on-arm-mac)
316+
- ["Can I run non-Ubuntu guests?"](#can-i-run-non-ubuntu-guests)
317+
- ["Can I run other container engines such as Docker and Podman? What about Kubernetes?"](#can-i-run-other-container-engines-such-as-docker-and-podman-what-about-kubernetes)
318+
- ["Can I run Lima with a remote Linux machine?"](#can-i-run-lima-with-a-remote-linux-machine)
319+
- ["Advantages compared to Docker for Mac?"](#advantages-compared-to-docker-for-mac)
320+
- [QEMU](#qemu)
321+
- ["QEMU crashes with `HV_ERROR`"](#qemu-crashes-with-hv_error)
322+
- ["QEMU is slow"](#qemu-is-slow)
323+
- [error "killed -9"](#error-killed--9)
324+
- ["QEMU crashes with `vmx_write_mem: mmu_gva_to_gpa XXXXXXXXXXXXXXXX failed`"](#qemu-crashes-with-vmx_write_mem-mmu_gva_to_gpa-xxxxxxxxxxxxxxxx-failed)
325+
- [VZ](#vz)
326+
- ["Liam gets stuck at `Installing rosetta...`"](#liam-gets-stuck-at-installing-rosetta)
327+
- [Networking](#networking)
328+
- ["Cannot access the guest IP 192.168.5.15 from the host"](#cannot-access-the-guest-ip-192168515-from-the-host)
329+
- ["Ping shows duplicate packets and massive response times"](#ping-shows-duplicate-packets-and-massive-response-times)
330+
- [Filesystem sharing](#filesystem-sharing)
331+
- ["Filesystem is slow"](#filesystem-is-slow)
332+
- ["Filesystem is not writable"](#filesystem-is-not-writable)
333+
- [External projects](#external-projects)
334+
- ["I am using Rancher Desktop. How to deal with the underlying Lima?"](#i-am-using-rancher-desktop-how-to-deal-with-the-underlying-lima)
335+
- ["Hints for debugging other problems?"](#hints-for-debugging-other-problems)
334336

335337
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
336338
### Generic
@@ -440,6 +442,11 @@ A workaround is to set environment variable `QEMU_SYSTEM_X86_64="qemu-system-x86
440442

441443
https://bugs.launchpad.net/qemu/+bug/1838390
442444

445+
## VZ
446+
#### "Liam gets stuck at `Installing rosetta...`"
447+
448+
Try `softwareupdate --install-rosetta` from a terminal.
449+
443450
### Networking
444451
#### "Cannot access the guest IP 192.168.5.15 from the host"
445452

pkg/vz/rosetta_directory_share_arm64.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ func createRosettaDirectoryShareConfiguration() (*vz.VirtioFileSystemDeviceConfi
2121
return nil, errRosettaUnsupported
2222
case vz.LinuxRosettaAvailabilityNotInstalled:
2323
logrus.Info("Installing rosetta...")
24+
logrus.Info("Hint: try `softwareupdate --install-rosetta` if Lima gets stuck here")
2425
if err := vz.LinuxRosettaDirectoryShareInstallRosetta(); err != nil {
2526
return nil, fmt.Errorf("failed to install rosetta: %w", err)
2627
}

0 commit comments

Comments
 (0)