lima-vm / lima-vm/lima

Ability to set a VM hostname during the provisioning

Open
#1,467 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
21.9k
Forks
957
Avg merge
2d 6h
Merged PRs (30d)
53

Description

### Description

As I see a VM hostname is hardcoded to `lima-` in the `cidata.TEMPLATE.d/meta-data`. That causes some inconvenience in a complex scenarios when multiple VMs are clustered because internal hostname doesn't match the name used to refer a VM from outside.

I can work this around by calling the `hostnamectl set-hostname {{.Name}}` in a provisioning script but this might cause some issues with services started before.. so ideally reboot is required to be on a safe side.

So it'd be much nicer to either a) set the hostname to the VM name by default or b) to be able to configure the hostname in the VM YAML definition or c) to be able to set it via cmdline flag of `limactl start` command.

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.