lima-vm / lima-vm/lima

Issues with SELinux wtih v 2.1.0

Open
#4,779 1 comment 0 reactions 0 assignees View on GitHub
guest/fedora status/more-info-needed
Dominant language
Go
Stars
21.9k
Forks
957
Avg merge
2d 6h
Merged PRs (30d)
53

Description

### Description

Hey, I've been using lima for long. My VM is a Fedora 42.

I upgraded Lima to 2.1.0. After the upgrade I started having issue with a simple `limactl start `. The command is never able to establish an SSH connection to the VM.

Also, if I ssh manually to the VM with `-vvv`, these are the last lines:

```
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
Connection closed by 127.0.0.1 port 2242
```

As a workaround I added the following in the config:

```
provision:
- mode: boot
script: |
#!/bin/sh
setenforce 0
pkill -x sshd 2>/dev/null; sleep 1
/usr/sbin/sshd
```

This essentially disables SELinux.

Given this, SSH to the VM works.

I wonder if this change can be intentional.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.