Skip to content

Examples

Copy/paste fragments for user-owned setup scripts. They are not DVM runtime code. Review and adapt before use.

All examples assume the Fedora guest with dnf5. They run during dvm sync, as the Lima login user with sudo available. DVM prepends set -Eeuo pipefail and exports these variables (see the config reference):

DVM_NAME DVM_VM DVM_LIMA_NAME DVM_USER DVM_CODE_DIR DVM_PORTS DVM_SUBUID_COUNT DVM_SUBGID_COUNT

Run a command as the dev user, not root: sudo -u "$DVM_USER" -H ....

TopicWhat it covers
PackagesFedora and Copr packages
Verified binary downloadVerified upstream binary download
Default shellSet zsh as the default shell
SSH keysVM-local SSH keys, private repos
GPG signing keyVM-local GPG signing key
Dotfileschezmoi dotfiles
AI CLIsClaude Code and Codex CLIs
Rootless DockerRootless Docker (recommended)
Rootless PodmanRootless Podman
Rootful DockerRootful Docker (guest-root risk)
TailscaleTailscale
Cloudflare TunnelCloudflare Tunnel
One user per projectOne VM, one user per project

Built and maintained by eshlox.