rancher-sandbox / rancher-desktop

Container Management and Kubernetes on the Desktop
https://rancherdesktop.io
Apache License 2.0
5.93k stars 280 forks source link

Lima fails to re-start when using mount type virtiofs in Ventura #4694

Open IsaSih opened 1 year ago

IsaSih commented 1 year ago

Actual Behavior

when using apple virtualization framework in Ventura, lima fails to restart

Steps to Reproduce

  1. Fresh Install Rancher Desktop in Ventura
  2. Launch Preferences > Virtual Machine > Volumes > virtiofs
  3. Hit Apply
  4. Wait for lima to restart

Result

Last command run: limactl.ventura start --tty=false 0

Fatal error:

stderr: 'time="2023-05-16T19:20:28-06:00" level=info msg="Using the existing instance \\"0\\""\n' +
    'time="2023-05-16T19:20:28-06:00" level=info msg="Starting vde_switch daemon for \\"rancher-desktop-bridged_en5\\" network"\n' +
    'time="2023-05-16T19:20:28-06:00" level=info msg="Starting vde_vmnet daemon for \\"rancher-desktop-bridged_en5\\" network"\n' +
    'time="2023-05-16T19:20:28-06:00" level=info msg="Starting vde_switch daemon for \\"rancher-desktop-shared\\" network"\n' +
    'time="2023-05-16T19:20:28-06:00" level=info msg="Starting vde_vmnet daemon for \\"rancher-desktop-shared\\" network"\n' +
    'time="2023-05-16T19:20:28-06:00" level=fatal msg="field `mountType` must be \\"reverse-sshfs\\" or \\"9p\\" for QEMU driver , got \\"virtiofs\\""\n',
  code: 1,
  [Symbol(child-process.command)]: '/Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl.ventura start --tty=false 0'
}

Logs: lima logs.zip

logs.zip

Expected Behavior

virtiofs mount type should successfully start lima in Ventura.

Additional Information

No response

Rancher Desktop Version

1.7.0-1337-g7503f5b8

Rancher Desktop K8s Version

1.27.1

Which container engine are you using?

containerd (nerdctl)

What operating system are you using?

macOS

Operating System / Build Version

MacOS Ventura

What CPU architecture are you using?

x64

Linux only: what package format did you use to install Rancher Desktop?

None

Windows User Only

No response

IsaSih commented 1 year ago

mount type virtiofs works well after enabling the apple virtualization framework. I am not sure if they should work independently, otherwise i'd suggest a label instructing the user to enable the apple virtualization framework before the mount type virtiofs