Virter: a couple of questions about VM ID and SSH host keys

Apologies if this forum isn’t the right place for virter discussion. I don’t see that the discussions feature is turned on for the GitHub repo.

I have a couple of questions:

  • When running virter vm run, the --help says that the --id is “ID for VM which determines the IP address.” From what I can tell, this just means that the value is used as the last octet of the IP address. Is there more to it than that? So by extension, is the valid range of values something like 1…254?
  • Occasionally when running virter image build or virter vm run even if no other VMs are currently running, I get an error like Failed to build image: preset ID '160' already used. What does this mean? Where in my system are these IDs persisted? I can get this error even if virter vm ls or virter network list-attached default show empty lists.
  • Even more frequently, during a virter image build or a virter ssh I’ll get something like: ssh: handshake failed: ssh: host key mismatch. What does this mean, and what can I do to avoid it?

Thanks!

-SG

Following up on my own post, I learned by reading through the code that I can use 0 for the required --id parameter and it will pick an available ID, which seems to at least have helped with the preset already used error I was getting.

1 Like