|
9 | 9 | "os"
|
10 | 10 | "os/exec"
|
11 | 11 | "path/filepath"
|
12 |
| - "runtime" |
13 |
| - "strings" |
14 | 12 | "text/template"
|
15 | 13 | "time"
|
16 | 14 |
|
@@ -150,8 +148,6 @@ func Start(ctx context.Context, inst *store.Instance) error {
|
150 | 148 | return err
|
151 | 149 | }
|
152 | 150 |
|
153 |
| - showUbuntuMarch2022Warning(inst) // remove when Ubuntu fixes https://github.com/lima-vm/lima/issues/712 |
154 |
| - |
155 | 151 | watchErrCh := make(chan error)
|
156 | 152 | go func() {
|
157 | 153 | watchErrCh <- watchHostAgentEvents(ctx, inst, haStdoutPath, haStderrPath, begin)
|
@@ -275,60 +271,3 @@ func ShowMessage(inst *store.Instance) error {
|
275 | 271 | }
|
276 | 272 | return nil
|
277 | 273 | }
|
278 |
| - |
279 |
| -// showUbuntuMarch2022Warning shows warning for https://github.com/lima-vm/lima/issues/712 |
280 |
| -func showUbuntuMarch2022Warning(inst *store.Instance) { |
281 |
| - if runtime.GOARCH != "arm64" { |
282 |
| - return |
283 |
| - } |
284 |
| - if unlikelyUbuntu(inst.Name) { |
285 |
| - return |
286 |
| - } |
287 |
| - display := "sdl" |
288 |
| - if runtime.GOOS == "darwin" { |
289 |
| - display = "cocoa" |
290 |
| - } |
291 |
| - s := fmt.Sprintf(` |
292 |
| -============ ⚠️ March 2022 update of Ubuntu does not work on ARM ⚠️ ============ |
293 |
| -Ubuntu kernel 5.13.0-35.40 (5.4.0-103.117 for 20.04 LTS) released in March 2022 |
294 |
| -is not bootable on ARM hosts. |
295 |
| -(EFI stub: ERROR: FIRMWARE BUG: kernel image not aligned on 64k boundary |
296 |
| -
|
297 |
| -Until the issue gets resolved, it is HIGHLY RECOMMENDED to run the following |
298 |
| -command in the Ubuntu shell (NOT the host shell) to avoid upgrading the kernel: |
299 |
| -
|
300 |
| ------------------------------------------------------------- |
301 |
| -sudo apt-mark hold linux-image-$(uname -r) |
302 |
| ------------------------------------------------------------- |
303 |
| -
|
304 |
| -If your kernel was already upgraded and the VM does not boot, try running Lima |
305 |
| -with the following environment variable to show the QEMU video display: |
306 |
| -
|
307 |
| ------------------------------------------------------------- |
308 |
| -export QEMU_SYSTEM_AARCH64="qemu-system-aarch64 -display %s" |
309 |
| ------------------------------------------------------------- |
310 |
| -
|
311 |
| -After the display is shown, press the Esc key several times to show the GRUB |
312 |
| -prompt for choosing an older kernel. |
313 |
| -
|
314 |
| -To receive updates about this issue, subscribe to the following issue tickets: |
315 |
| -- https://github.com/lima-vm/lima/issues/712 |
316 |
| -- https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1947046 |
317 |
| -
|
318 |
| -If you are not using Ubuntu, you can ignore this warning message. |
319 |
| -============ ⚠️ March 2022 update of Ubuntu does not work on ARM ⚠️ ============ |
320 |
| -`, display) |
321 |
| - logrus.Warn(s) |
322 |
| -} |
323 |
| - |
324 |
| -func unlikelyUbuntu(instName string) bool { |
325 |
| - dict := []string{ |
326 |
| - "alma", "alpine", "archlinux", "centos", "debian", "fedora", "red", "rhel", "suse", "oracle", "rocky", |
327 |
| - } |
328 |
| - for _, f := range dict { |
329 |
| - if strings.Contains(instName, f) { |
330 |
| - return true |
331 |
| - } |
332 |
| - } |
333 |
| - return false |
334 |
| -} |
0 commit comments