ALSchwalm / transient

A wrapper for QEMU allowing the creation of virtual machines with shared folder, ssh, and disk creation support.
MIT License
104 stars 17 forks source link

`transient ssh -name` can produce confusing error messages #118

Closed ALSchwalm closed 3 years ago

ALSchwalm commented 3 years ago

If a transient instance is started without -ssh (or a flag that implies -ssh), the instance will appear as follows under transient list vm ...:

$ transient list vm
┌───────────────┬────────────────────────────┬────────┬──────────┐
│ VM Name       │ Start Time                 │    PID │ SSH Port │
├───────────────┼────────────────────────────┼────────┼──────────┤
│ upstream_test │ 2020-12-18 13:41:47.227715 │ 142598 │      N/A │
└───────────────┴────────────────────────────┴────────┴──────────┘

However, attempting to connect to a vm with that name using transient ssh -name ... will produce a confusing error:

$ transient ssh -name upstream_test
No running VMs found with the name 'upstream_test'

The error message should instead indicate that the VM does exist, but has no known ssh port.