I wanted to post this as a new topic, but for the life of me - I could not find that button.
I am looking for someone who can either help me understand it, or willing to collaborate to realize the workflow described below in case it is not possible now.
I hope the end result of this exercise can be:
- A multipass command OR a script OR a collection of scripts.
- If this is not possible, at least a clear “Guide for Dummies” on how to set it up.
The problem
I am a long time Vagrant user. I am using a Windows host, and launching an Ubuntu guest. This has worked fine for years, but it gradually becomes more difficult with compatibility issues, and “lazily maintained” Vagrant components and plugins.
What seems to be the final nail in the coffin, is the fact that Ubuntu 21 and up no longer supports UDP for NFS.
I am hoping that multipass can serve as a replacement for my Vagrant setup.
The requirements
- Host is Windows (Home edition, no NFS built in - solved in Vagrant by vagrant-winnfsd, which uses this winnfsd.exe).
- Guest is Ubuntu (headless).
- Set up multiple port forwarding.
- Set up file sharing via NFS, using UDP (everything else is too slow).
- Logging into the guest is done via SSH using a key file, and not any of the Windows terminal apps.
- Have all configuration (ports, mounting directories) inside a configuration file or script (like Vagrantfile).
The dream
Ideally, I would like to get as close as possible to something like this:
# multipass-config.yml
name: "Ubuntu Jammy Box"
version: jammy64
disk: 40GB
memory: 4GB
ports: [80, 443, 3000, 4000]
keyfile: /path/to/private.key
mounts:
- host: ./
guest: /path/on/guest
then run multipass up
in the same directory as this file.