afbjorklund / lima-gui

Making a GUI for lima VM

Home Page:https://github.com/lima-vm/lima

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The parameters in "Quick Start" are not implemented yet (grayed out)

afbjorklund opened this issue · comments

Use the "Edit YAML" as a workaround, for now. See "default.yaml" for options

https://github.com/lima-vm/lima/blob/master/pkg/limayaml/default.yaml

# Arch: "default", "x86_64", "aarch64".
# Default: "default" (corresponds to the host architecture)
arch: "default"

# CPUs: if you see performance issues, try limiting cpus to 1.
# Default: 4
cpus: 4

# Memory size
# Default: "4GiB"
memory: "4GiB"

# Disk size
# Default: "100GiB"
disk: "100GiB"

It is possible to get the default values, from limactl info.

        "cpus": 4,
        "memory": "4GiB",
        "disk": "100GiB",

Should do that, instead of hardcoding them in the GUI.

The vmTypes are also available, since lima version 0.14.2

    "vmTypes": [
        "qemu"
    ]

The cpuTypes are not exported yet, it's a text field for now.

The available architectures are currently hardcoded.

type Arch = string

const (
        X8664   Arch = "x86_64"
        AARCH64 Arch = "aarch64"
        RISCV64 Arch = "riscv64"
)

The emulator-only RISC-V was added in version 0.11.0