Skip to content
This repository has been archived by the owner on Jan 12, 2025. It is now read-only.

Add guest hostname to /etc/hosts #4

Merged
merged 1 commit into from
Nov 19, 2023

Conversation

zevweiss
Copy link
Contributor

Some programs (e.g. 'sudo' in some configurations) apparently get confused if they can't resolve the hostname. To avoid such problems, if a hostname for the guest has been specified, bind-mount a replacement version of /etc/hosts with a pair of entries (IPv4 and IPv6) added for the given hostname.

Some programs (e.g. 'sudo' in some configurations) apparently get
confused if they can't resolve the hostname.  To avoid such problems,
if a hostname for the guest has been specified, bind-mount a
replacement version of /etc/hosts with a pair of entries (IPv4 and
IPv6) added for the given hostname.

Signed-off-by: Zev Weiss <[email protected]>
@zevweiss zevweiss force-pushed the add-hostname-to-etc-hosts branch from 5fdddaa to a1eb25c Compare November 19, 2023 00:18
@arighi arighi merged commit 6b4f5c1 into arighi:main Nov 19, 2023
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants