Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Multipass dropped support for Ubuntu 23.10 base images which we had pinned to so the latest version of Multipass gave errors when trying to provision a VM saying that Ubuntu version didn't exist. After changing to the latest LTS 24.04 a VM could be created but the provision script failed to execute with a permission error. It looks like the way mounts work has totally changed in this version of Multipass because now all mounts are unable to be read inside the VM. You can't even fix it with permissions, even root cannot read the files and you can't chown/chmod etc. Multipass has another mount type called `native` (https://multipass.run/docs/mount#native-mounts) which works for me on Mac, however you can't specify this mount type at VM creation and also can't create this mount type while the VM is running. So we now, create the VM, wait for it to boot, then stop it, then setup the native mount, then start it again, then run the provision script. The provision script then fails because the version of Docker we use (25.0.4) does not exist in the Ubuntu 24.04 repos because that Ubuntu version came out after that Docker version. This was fixed by rolling the Ubuntu version back to the previous LTS version 22.04. This is now working for but since we've changed Ubuntu versions every single package on the system will now be a different version to what we've tested before. Also the native mount type acts differently on different systems and doesn't always work if the native platform doesn't support it. It's unclear how well this will work on other platforms but it appears to work well for me on arm macOS.
- Loading branch information