Draft
Conversation
Replace the legacy basedisk/diffdisk naming with self-documenting filenames: "image" (downloaded VM image), "disk" (VM disk), and "iso" (optional CDROM). New instances download to "image" and create symlinks: non-ISO images get disk→image; ISO images get iso→image plus a real empty disk. QEMU no longer creates a qcow2 overlay backed by basedisk; it symlinks disk→image directly. Existing instances are migrated by MigrateDiskLayout, which creates disk→diffdisk and (for ISO basedisks) iso→basedisk symlinks. The original files remain so older Lima versions can still use them. Boot paths now check for the "iso" symlink via osutil.FileExists instead of calling iso9660util.IsISO9660 at startup. Both QEMU and VZ attach the VM disk before the ISO. Signed-off-by: Jan Dubois <jan.dubois@suse.com>
Usage:
```
limactl start --video template:macos
limactl shell macos
```
The password prompt is shown during creating an instance,
so as to run `chown root:wheel ~/.lima/_mnt/0/Library/LaunchDaemons/...`,
which is required for the `lima-macos-init` launch daemon to run.
The password for GUI login is randomly generated and
stored in `/Users/${USER}.guest/password` in the VM.
Fix issue 3618
TODOs (maybe in follow-up PRs):
- [ ] Docs
- [ ] Switch back the default shell to `zsh`
- [ ] Graceful `limactl stop` (currently it has to be stopped from the guest)
- [ ] Propagate additional cloud-init data
- [ ] Hostname
- [ ] Timezone
- [ ] DNS
- [ ] CA Certificates
- [ ] Support non-plain mode
- [ ] mounts
- [ ] port forwards
- [ ] Let `limactl sudoers` generate the entry for chowning files
(`chown root:wheel ~/.lima/_mnt/0/Library/LaunchDaemons/...`)
- [ ] Support headless mode (`--video=false`)
- [ ] Support macOS in `hack/update-template.sh`
- - -
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Usage:
The password prompt is shown during creating an instance, so as to run
chown root:wheel ~/.lima/_mnt/0/Library/LaunchDaemons/..., which is required for thelima-macos-initlaunch daemon to run.The password for GUI login is randomly generated and stored in
/Users/${USER}.guest/passwordin the VM.Fix #3618
TODOs (maybe in follow-up PRs):
zshlimactl stop(currently it has to be stopped from the guest)limactl sudoersgenerate the entry for chowning files(
chown root:wheel ~/.lima/_mnt/0/Library/LaunchDaemons/...)--video=false)hack/update-template.shDepends on: