From cae9b54ce9e4366dfd0d298493ca55110e69a793 Mon Sep 17 00:00:00 2001 From: Sven Riwoldt Date: Sat, 2 May 2026 17:40:06 +0200 Subject: [PATCH] Lima und MAC begonnen --- Lima.md | 91 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ MAC.md | 5 ++++ 2 files changed, 96 insertions(+) create mode 100644 Lima.md create mode 100644 MAC.md diff --git a/Lima.md b/Lima.md new file mode 100644 index 0000000..bcfb620 --- /dev/null +++ b/Lima.md @@ -0,0 +1,91 @@ +# Lima + +## Arbeitspfad + +`export LIMA_HOME=/Volumes/untitled/lima` + +## Konfig-File +```yaml +images: + - location: "https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-genericcloud-arm64.qcow2" + arch: aarch64 + +cpus: 4 +memory: "8GiB" +disk: "50GiB" + +mounts: + - location: "~/projects" + writable: true + +ssh: + loadDotSSHPubKeys: true + +provision: + - mode: system + script: | + #!/bin/bash + apt-get update + apt-get install -y \ + curl \ + git \ + vim \ + build-essential + +containerd: + system: false + user: false +``` + +## Start + +`limactl start debian12.yaml` + +später nur + +`limactl start debian12` + +## Stop + +``` +limactl stop debian12 +``` + +## Löschen + +``` +limactl delete debian12 +``` + +## Liste + +``` +limactl list +``` + +## Einloggen + +``` +limactl shell debian12 +``` + +(Instanzname standardmäßig aus Dateiname) + +## SSH kontrollieren + +`limactl show-ssh debian12` + +``` +`WARN[0000] `limactl show-ssh` is deprecated. Instead, use `ssh -F /Volumes/untitled/lima/debian12/ssh.config lima-debian12`. +ssh -o 'IdentityFile="/Volumes/untitled/lima/_config/user"' -o 'IdentityFile="/Users/svenriwoldt/.ssh/id_rsa"' -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o NoHostAuthenticationForLocalhost=yes -o PreferredAuthentications=publickey -o Compression=no -o BatchMode=yes -o IdentitiesOnly=yes -o GSSAPIAuthentication=no -o 'Ciphers="^aes128-gcm@openssh.com,aes256-gcm@openssh.com"' -o User=svenriwoldt -o ControlMaster=auto -o 'ControlPath="/Volumes/untitled/lima/debian12/ssh.sock"' -o ControlPersist=yes -o Hostname=127.0.0.1 -o Port=61315 lima-debian12 +``` + + + +## SCP + +scp -P 61315 -i /Users/svenriwoldt/.ssh/id_rsa PF_neu.tgz 127.0.0.1: + +## Editieren der Instanz + +limactl edit debian12 diff --git a/MAC.md b/MAC.md new file mode 100644 index 0000000..b42695c --- /dev/null +++ b/MAC.md @@ -0,0 +1,5 @@ +# MAC + +Kontrolle Filesystem + +diskutil info "/Volumes/NO NAME" \ No newline at end of file